diff options
author | Jason Baron <jbaron@redhat.com> | 2012-10-19 16:43:33 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-10-29 17:59:45 +0200 |
commit | bc927e488c040c8ef2faed323e8a1a3d0ebbfb62 (patch) | |
tree | 0bae0ef76cf648f4e898328eaa6bd9b49d7a977e /hw/pcie_host.h | |
parent | c702ddb8daece08b16fce9d6654b38304d385f93 (diff) | |
download | qemu-bc927e488c040c8ef2faed323e8a1a3d0ebbfb62.zip qemu-bc927e488c040c8ef2faed323e8a1a3d0ebbfb62.tar.gz qemu-bc927e488c040c8ef2faed323e8a1a3d0ebbfb62.tar.bz2 |
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.h')
-rw-r--r-- | hw/pcie_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/pcie_host.h b/hw/pcie_host.h index 73e88db..3921935 100644 --- a/hw/pcie_host.h +++ b/hw/pcie_host.h @@ -24,6 +24,10 @@ #include "pci_host.h" #include "memory.h" +#define TYPE_PCIE_HOST_BRIDGE "pcie-host-bridge" +#define PCIE_HOST_BRIDGE(obj) \ + OBJECT_CHECK(PCIExpressHost, (obj), TYPE_PCIE_HOST_BRIDGE) + struct PCIExpressHost { PCIHostState pci; |