aboutsummaryrefslogtreecommitdiff
path: root/hw/pci/pci.h
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-03-14 16:01:29 -0600
committerMichael S. Tsirkin <mst@redhat.com>2013-03-26 21:02:18 +0200
commit0889464a5050c25611d08ca33d8447796c88c7f7 (patch)
tree13747521c0ea4664f51a6f7b50ce308fa0900f0c /hw/pci/pci.h
parent8c0bf9e24242c89c1abbd708c714dd2a89febbd2 (diff)
pci: Create and use API to determine root buses
Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci/pci.h')
-rw-r--r--hw/pci/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci/pci.h b/hw/pci/pci.h
index d715e6f09d..774369cd9e 100644
--- a/hw/pci/pci.h
+++ b/hw/pci/pci.h
@@ -345,6 +345,7 @@ typedef int (*pci_hotplug_fn)(DeviceState *qdev, PCIDevice *pci_dev,
#define TYPE_PCIE_BUS "PCIE"
bool pci_bus_is_express(PCIBus *bus);
+bool pci_bus_is_root(PCIBus *bus);
void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent,
const char *name,
MemoryRegion *address_space_mem,