diff options
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/pci/pcibios.c | 13 | ||||
-rw-r--r-- | sys/arch/i386/pci/pcibios.h | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/sys/arch/i386/pci/pcibios.c b/sys/arch/i386/pci/pcibios.c index 1f54eb77463..7d265a1ea11 100644 --- a/sys/arch/i386/pci/pcibios.c +++ b/sys/arch/i386/pci/pcibios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcibios.c,v 1.7 2000/08/17 20:15:40 mickey Exp $ */ +/* $OpenBSD: pcibios.c,v 1.8 2000/09/04 16:58:41 mickey Exp $ */ /* $NetBSD: pcibios.c,v 1.4 2000/07/18 11:15:25 soda Exp $ */ /* @@ -174,6 +174,8 @@ pcibiosprobe(parent, match, aux) &scmech1, &scmech2, &maxbus) == PCIBIOS_SUCCESS); } +int pcibios_flags; + void pcibiosattach(parent, self, aux) struct device *parent, *self; @@ -182,7 +184,8 @@ pcibiosattach(parent, self, aux) struct pcibios_softc *sc = (struct pcibios_softc *)self; struct bios32_entry_info ei; u_int32_t rev_maj, rev_min, mech1, mech2, scmech1, scmech2; - int flags = sc->sc_dev.dv_cfdata->cf_flags; + + pcibios_flags = sc->sc_dev.dv_cfdata->cf_flags; bios32_service(PCIBIOS_SIGNATURE, &pcibios_entry, &ei); pcibios_get_status(&rev_maj, &rev_min, &mech1, &mech2, @@ -213,7 +216,7 @@ pcibiosattach(parent, self, aux) */ pcibios_pir_init(); - if (!(flags & PCIBIOS_INTR_FIXUP) && + if (!(pcibios_flags & PCIBIOS_INTR_FIXUP) && pcibios_pir_table != NULL) { int rv; u_int16_t pciirq; @@ -241,12 +244,12 @@ pcibiosattach(parent, self, aux) */ } - if (!(flags & PCIBIOS_BUS_FIXUP)) { + if (!(pcibios_flags & PCIBIOS_BUS_FIXUP)) { pcibios_max_bus = pci_bus_fixup(NULL, 0); printf("PCI bus #%d is the last bus\n", pcibios_max_bus); } - if (!(flags & PCIBIOS_ADDR_FIXUP)) + if (!(pcibios_flags & PCIBIOS_ADDR_FIXUP)) pci_addr_fixup(NULL, pcibios_max_bus); } diff --git a/sys/arch/i386/pci/pcibios.h b/sys/arch/i386/pci/pcibios.h index 1949811a319..e8a94841463 100644 --- a/sys/arch/i386/pci/pcibios.h +++ b/sys/arch/i386/pci/pcibios.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcibios.h,v 1.5 2000/08/17 20:15:40 mickey Exp $ */ +/* $OpenBSD: pcibios.h,v 1.6 2000/09/04 16:58:41 mickey Exp $ */ /* $NetBSD: pcibios.h,v 1.2 2000/04/28 17:15:16 uch Exp $ */ /* @@ -117,3 +117,5 @@ extern int pcibiosverbose; void pci_device_foreach __P((pci_chipset_tag_t, int, void (*) __P((pci_chipset_tag_t, pcitag_t)))); + +int pcibios_flags; |