aboutsummaryrefslogtreecommitdiff
path: root/hw/spapr_pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/spapr_pci.h')
-rw-r--r--hw/spapr_pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/spapr_pci.h b/hw/spapr_pci.h
index 7518899b85..4140ee67af 100644
--- a/hw/spapr_pci.h
+++ b/hw/spapr_pci.h
@@ -29,6 +29,11 @@
#define SPAPR_MSIX_MAX_DEVS 32
+#define TYPE_SPAPR_PCI_HOST_BRIDGE "spapr-pci-host-bridge"
+
+#define SPAPR_PCI_HOST_BRIDGE(obj) \
+ OBJECT_CHECK(sPAPRPHBState, (obj), TYPE_SPAPR_PCI_HOST_BRIDGE)
+
typedef struct sPAPRPHBState {
PCIHostState host_state;