Fix an uninitialised variable which affected probing on some machines.
Approved by: jkh Reviewed by: gallatin
This commit is contained in:
parent
05181f633f
commit
9a1498a435
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57181
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user