Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc - Always config_found() PCI busses, s...
details: https://anonhg.NetBSD.org/src/rev/fd24f0f47f1d
branches: trunk
changeset: 472703:fd24f0f47f1d
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 05 04:40:00 1999 +0000
description:
- Always config_found() PCI busses, so we know if present PCI busses
aren't configured.
- Grab the bus's memory space tag from the pci_bridge structure for
the bus.
diffstat:
sys/arch/macppc/macppc/mainbus.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (34 lines):
diff -r 5c83d9599632 -r fd24f0f47f1d sys/arch/macppc/macppc/mainbus.c
--- a/sys/arch/macppc/macppc/mainbus.c Wed May 05 04:37:19 1999 +0000
+++ b/sys/arch/macppc/macppc/mainbus.c Wed May 05 04:40:00 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.4 1998/10/15 14:39:53 tsubai Exp $ */
+/* $NetBSD: mainbus.c,v 1.5 1999/05/05 04:40:00 thorpej Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -90,13 +90,12 @@
pci_init();
-#if NPCI > 0
- for (n = 0; n < 2; n++)
+ for (n = 0; n < 2; n++) {
if (pci_bridges[n].addr) {
bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = pci_bridges[n].iot;
- pba.pba_memt = (bus_space_tag_t)0;
+ pba.pba_memt = pci_bridges[n].memt;
pba.pba_dmat = &pci_bus_dma_tag;
pba.pba_bus = pci_bridges[n].bus;
pba.pba_pc = pci_bridges[n].pc;
@@ -104,7 +103,7 @@
PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED;
config_found(self, &pba, mainbus_print);
}
-#endif
+ }
}
int
Home |
Main Index |
Thread Index |
Old Index