Revision 6fa84913 hw/pci.c
b/hw/pci.c | ||
---|---|---|
227 | 227 |
const char *name, int devfn_min) |
228 | 228 |
{ |
229 | 229 |
qbus_create_inplace(&bus->qbus, &pci_bus_info, parent, name); |
230 |
assert(PCI_FUNC(devfn_min) == 0); |
|
230 | 231 |
bus->devfn_min = devfn_min; |
231 | 232 |
|
232 | 233 |
/* host bridge */ |
... | ... | |
608 | 609 |
{ |
609 | 610 |
if (devfn < 0) { |
610 | 611 |
for(devfn = bus->devfn_min ; devfn < ARRAY_SIZE(bus->devices); |
611 |
devfn += 8) {
|
|
612 |
devfn += PCI_FUNC_MAX) {
|
|
612 | 613 |
if (!bus->devices[devfn]) |
613 | 614 |
goto found; |
614 | 615 |
} |
Also available in: Unified diff