mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
pci: introduce a helper function to convert qdev id to PCIDevice
This patch introduce a helper function to get PCIDevice from qdev id. This function will be used later. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
a2ee6b4fcb
commit
f3006dd1e6
2 changed files with 36 additions and 0 deletions
1
hw/pci.h
1
hw/pci.h
|
@ -252,6 +252,7 @@ PCIBus *pci_find_root_bus(int domain);
|
|||
int pci_find_domain(const PCIBus *bus);
|
||||
PCIBus *pci_find_bus(PCIBus *bus, int bus_num);
|
||||
PCIDevice *pci_find_device(PCIBus *bus, int bus_num, int slot, int function);
|
||||
int pci_qdev_find_device(const char *id, PCIDevice **pdev);
|
||||
PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr);
|
||||
|
||||
int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue