mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
c702ddb8da
commit
bc927e488c
2 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue