Revision 5256d8bf hw/pci.c
b/hw/pci.c | ||
---|---|---|
1603 | 1603 |
return NULL; |
1604 | 1604 |
} |
1605 | 1605 |
|
1606 |
PCIDevice *pci_find_device(PCIBus *bus, int bus_num, int slot, int function)
|
|
1606 |
PCIDevice *pci_find_device(PCIBus *bus, int bus_num, uint8_t devfn)
|
|
1607 | 1607 |
{ |
1608 | 1608 |
bus = pci_find_bus(bus, bus_num); |
1609 | 1609 |
|
1610 | 1610 |
if (!bus) |
1611 | 1611 |
return NULL; |
1612 | 1612 |
|
1613 |
return bus->devices[PCI_DEVFN(slot, function)];
|
|
1613 |
return bus->devices[devfn];
|
|
1614 | 1614 |
} |
1615 | 1615 |
|
1616 | 1616 |
static int pci_qdev_init(DeviceState *qdev, DeviceInfo *base) |
Also available in: Unified diff