diff options
Diffstat (limited to 'sys/i386/pci')
-rw-r--r-- | sys/i386/pci/pci_bus.c | 1 | ||||
-rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 1 | ||||
-rw-r--r-- | sys/i386/pci/pci_pir.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index eaad794..fd34ad8 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/pci/pci_bus.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index eaad794..fd34ad8 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index eaad794..fd34ad8 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; |