Prefer the physical bus number of the PCI bus as the unit of the pciX

device created.
This commit is contained in:
John Baldwin 2002-09-06 16:09:07 +00:00
parent da14ac9fce
commit cea0a89545
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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