aboutsummaryrefslogtreecommitdiff
path: root/hw/pcie_host.c
diff options
context:
space:
mode:
authorJason Baron <jbaron@redhat.com>2012-10-19 16:43:33 -0400
committerMichael S. Tsirkin <mst@redhat.com>2012-10-29 17:59:45 +0200
commitbc927e488c040c8ef2faed323e8a1a3d0ebbfb62 (patch)
tree0bae0ef76cf648f4e898328eaa6bd9b49d7a977e /hw/pcie_host.c
parentc702ddb8daece08b16fce9d6654b38304d385f93 (diff)
pcie: Convert PCIExpressHost to use the QOM.
Let's use PCIExpressHost with QOM. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Jason Baron <jbaron@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pcie_host.c')
-rw-r--r--hw/pcie_host.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/pcie_host.c b/hw/pcie_host.c
index 2231d28ec3..c257fb43ca 100644
--- a/hw/pcie_host.c
+++ b/hw/pcie_host.c
@@ -145,3 +145,17 @@ void pcie_host_mmcfg_update(PCIExpressHost *e,
pcie_host_mmcfg_map(e, addr, size);
}
}
+
+static const TypeInfo pcie_host_type_info = {
+ .name = TYPE_PCIE_HOST_BRIDGE,
+ .parent = TYPE_PCI_HOST_BRIDGE,
+ .abstract = true,
+ .instance_size = sizeof(PCIExpressHost),
+};
+
+static void pcie_host_register_types(void)
+{
+ type_register_static(&pcie_host_type_info);
+}
+
+type_init(pcie_host_register_types)