Fix an uninitialised variable which affected probing on some machines.

Approved by: jkh
Reviewed by: gallatin
This commit is contained in:
Doug Rabson 2000-02-13 09:49:05 +00:00
parent 05181f633f
commit 9a1498a435
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57181
6 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;