Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/macppc/macppc pullup 1.4->1.5 (thorpej)



details:   https://anonhg.NetBSD.org/src/rev/0765430ed68a
branches:  netbsd-1-4
changeset: 468673:0765430ed68a
user:      perry <perry%NetBSD.org@localhost>
date:      Thu May 06 02:23:56 1999 +0000

description:
pullup 1.4->1.5 (thorpej)

diffstat:

 sys/arch/macppc/macppc/mainbus.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r b549d8ced60f -r 0765430ed68a sys/arch/macppc/macppc/mainbus.c
--- a/sys/arch/macppc/macppc/mainbus.c  Thu May 06 02:22:03 1999 +0000
+++ b/sys/arch/macppc/macppc/mainbus.c  Thu May 06 02:23:56 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.4.6.1 1999/05/06 02:23:56 perry 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