Prefer the physical bus number of the PCI bus as the unit of the pciX
device created.
This commit is contained in:
parent
da14ac9fce
commit
cea0a89545
@ -441,7 +441,7 @@ nexus_pcib_attach(device_t dev)
|
||||
{
|
||||
device_t child;
|
||||
|
||||
child = device_add_child(dev, "pci", device_get_unit(dev));
|
||||
child = device_add_child(dev, "pci", pcib_get_bus(dev));
|
||||
|
||||
return bus_generic_attach(dev);
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ pcib_attach(device_t dev)
|
||||
pcib_attach_common(dev);
|
||||
sc = device_get_softc(dev);
|
||||
if (sc->secbus != 0) {
|
||||
child = device_add_child(dev, "pci", -1);
|
||||
child = device_add_child(dev, "pci", sc->secbus);
|
||||
if (child != NULL)
|
||||
return(bus_generic_attach(dev));
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ nexus_pcib_attach(device_t dev)
|
||||
{
|
||||
device_t child;
|
||||
|
||||
child = device_add_child(dev, "pci", device_get_unit(dev));
|
||||
child = device_add_child(dev, "pci", pcib_get_bus(dev));
|
||||
|
||||
return bus_generic_attach(dev);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user