diff options
author | Hu Tao | 2013-07-01 12:18:22 +0200 |
---|---|---|
committer | Andreas Färber | 2013-07-23 00:37:34 +0200 |
commit | ce88812f576a0d5b172f99b253bcdc1dc37f86f2 (patch) | |
tree | 0d796d0e285510bb220cfd26b314b2a415e354f0 /include/hw/pci-host/q35.h | |
parent | i440fx-pcihost: Use QOM realize for i440fx-pcihost (diff) | |
download | qemu-ce88812f576a0d5b172f99b253bcdc1dc37f86f2.tar.gz qemu-ce88812f576a0d5b172f99b253bcdc1dc37f86f2.tar.xz qemu-ce88812f576a0d5b172f99b253bcdc1dc37f86f2.zip |
q35: Use type-safe cast instead of direct access of parent dev
And remove variables if possible.
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
[AF: Converted remaining access and renamed to parent_obj]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/pci-host/q35.h')
-rw-r--r-- | include/hw/pci-host/q35.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/hw/pci-host/q35.h b/include/hw/pci-host/q35.h index b0838319a9..3cb631eeae 100644 --- a/include/hw/pci-host/q35.h +++ b/include/hw/pci-host/q35.h @@ -43,7 +43,10 @@ OBJECT_CHECK(MCHPCIState, (obj), TYPE_MCH_PCI_DEVICE) typedef struct MCHPCIState { - PCIDevice d; + /*< private >*/ + PCIDevice parent_obj; + /*< public >*/ + MemoryRegion *ram_memory; MemoryRegion *pci_address_space; MemoryRegion *system_memory; @@ -59,7 +62,10 @@ typedef struct MCHPCIState { } MCHPCIState; typedef struct Q35PCIHost { - PCIExpressHost host; + /*< private >*/ + PCIExpressHost parent_obj; + /*< public >*/ + MCHPCIState mch; } Q35PCIHost; |