From e075e788c9e882f5bebfb350f725ee7e4273033f Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Fri, 28 May 2010 18:30:46 +0900 Subject: pci-hotplug: make them aware of pci domain. add helper function which converts root bus to pci domain. make them aware of pci domain. Signed-off-by: Isaku Yamahata Signed-off-by: Michael S. Tsirkin --- hw/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/pci.h') diff --git a/hw/pci.h b/hw/pci.h index b803593..3a15bd4 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -218,6 +218,7 @@ PCIDevice *pci_nic_init_nofail(NICInfo *nd, const char *default_model, int pci_bus_num(PCIBus *s); void pci_for_each_device(PCIBus *bus, int bus_num, void (*fn)(PCIBus *bus, PCIDevice *d)); 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); PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr); -- cgit v1.1