Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari fix atari builds in two ways:
details: https://anonhg.NetBSD.org/src/rev/a174cd837b6e
branches: trunk
changeset: 746899:a174cd837b6e
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Aug 23 01:27:12 2009 +0000
description:
fix atari builds in two ways:
- isa_detach_hook() was missing a parameter name (hi dyoung!)
- PCI_CONF_SIZE -> PCI_CONFIG_SIZE; pcivar.h has a PCI_CONF_SIZE now (hi jak!)
diffstat:
sys/arch/atari/atari/atari_init.c | 10 +++++-----
sys/arch/atari/include/iomap.h | 6 +++---
sys/arch/atari/isa/isa_machdep.c | 6 +++---
3 files changed, 11 insertions(+), 11 deletions(-)
diffs (87 lines):
diff -r 8fe9e27d1514 -r a174cd837b6e sys/arch/atari/atari/atari_init.c
--- a/sys/arch/atari/atari/atari_init.c Sat Aug 22 23:31:16 2009 +0000
+++ b/sys/arch/atari/atari/atari_init.c Sun Aug 23 01:27:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atari_init.c,v 1.85 2009/08/22 18:26:42 tsutsui Exp $ */
+/* $NetBSD: atari_init.c,v 1.86 2009/08/23 01:27:13 mrg Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.85 2009/08/22 18:26:42 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atari_init.c,v 1.86 2009/08/23 01:27:13 mrg Exp $");
#include "opt_ddb.h"
#include "opt_mbtype.h"
@@ -324,7 +324,7 @@
* If present, add pci areas
*/
if (machineid & ATARI_HADES)
- ptextra += btoc(PCI_CONF_SIZE + PCI_IO_SIZE + PCI_MEM_SIZE);
+ ptextra += btoc(PCI_CONFIG_SIZE + PCI_IO_SIZE + PCI_MEM_SIZE);
if (machineid & ATARI_MILAN)
ptextra += btoc(PCI_IO_SIZE + PCI_MEM_SIZE);
ptextra += btoc(BOOTM_VA_POOL);
@@ -776,9 +776,9 @@
* Only Hades maps the PCI-config space!
*/
pci_conf_addr = ioaddr;
- ioaddr += PCI_CONF_SIZE;
+ ioaddr += PCI_CONFIG_SIZE;
pg = &pt[pci_conf_addr / PAGE_SIZE];
- epg = &pg[btoc(PCI_CONF_SIZE)];
+ epg = &pg[btoc(PCI_CONFIG_SIZE)];
mask = PCI_CONFM_PHYS;
pg_proto = PCI_CONFB_PHYS | PG_RW | PG_CI | PG_V;
for (; pg < epg; mask <<= 1)
diff -r 8fe9e27d1514 -r a174cd837b6e sys/arch/atari/include/iomap.h
--- a/sys/arch/atari/include/iomap.h Sat Aug 22 23:31:16 2009 +0000
+++ b/sys/arch/atari/include/iomap.h Sun Aug 23 01:27:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iomap.h,v 1.12 2003/04/02 07:35:55 thorpej Exp $ */
+/* $NetBSD: iomap.h,v 1.13 2009/08/23 01:27:12 mrg Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -81,9 +81,9 @@
/*
* Pre-allocated PCI-memory regions (atari_init.c). We need those in the
* boot-stages.
- * XXX: Can probably be reduced to only PCI_CONF_SIZE (Leo).
+ * XXX: Can probably be reduced to only PCI_CONFIG_SIZE (Leo).
*/
-#define PCI_CONF_SIZE (4 * PAGE_SIZE)
+#define PCI_CONFIG_SIZE (4 * PAGE_SIZE)
#define PCI_IO_SIZE (PAGE_SIZE)
#define PCI_MEM_SIZE (PAGE_SIZE)
diff -r 8fe9e27d1514 -r a174cd837b6e sys/arch/atari/isa/isa_machdep.c
--- a/sys/arch/atari/isa/isa_machdep.c Sat Aug 22 23:31:16 2009 +0000
+++ b/sys/arch/atari/isa/isa_machdep.c Sun Aug 23 01:27:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isa_machdep.c,v 1.35 2009/08/19 15:15:21 dyoung Exp $ */
+/* $NetBSD: isa_machdep.c,v 1.36 2009/08/23 01:27:13 mrg Exp $ */
/*
* Copyright (c) 1997 Leo Weppelman. All rights reserved.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.35 2009/08/19 15:15:21 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.36 2009/08/23 01:27:13 mrg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -155,7 +155,7 @@
}
void
-isa_detach_hook(isa_chipset_tag_t, device_t self)
+isa_detach_hook(isa_chipset_tag_t ic, device_t self)
{
}
Home |
Main Index |
Thread Index |
Old Index