aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/pci.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-07-17 18:44:48 +0200
committerAndreas Färber <afaerber@suse.de>2013-07-29 20:41:49 +0200
commitf6c11d56442fafa5357ef1f1659b9e39e7bf578d (patch)
tree4a460ecf0691a5f901efdace7f7cc74d856c9c33 /hw/ide/pci.h
parent02a9594b4f0cb8a341fe91edb41c6424ad5ae4f9 (diff)
downloadqemu-f6c11d56442fafa5357ef1f1659b9e39e7bf578d.zip
qemu-f6c11d56442fafa5357ef1f1659b9e39e7bf578d.tar.gz
qemu-f6c11d56442fafa5357ef1f1659b9e39e7bf578d.tar.bz2
ide: Introduce abstract QOM type for PCIIDEState
Needed for QOM casts. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/ide/pci.h')
-rw-r--r--hw/ide/pci.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/hw/ide/pci.h b/hw/ide/pci.h
index a694e54..2428275 100644
--- a/hw/ide/pci.h
+++ b/hw/ide/pci.h
@@ -37,8 +37,14 @@ typedef struct CMD646BAR {
struct PCIIDEState *pci_dev;
} CMD646BAR;
+#define TYPE_PCI_IDE "pci-ide"
+#define PCI_IDE(obj) OBJECT_CHECK(PCIIDEState, (obj), TYPE_PCI_IDE)
+
typedef struct PCIIDEState {
- PCIDevice dev;
+ /*< private >*/
+ PCIDevice parent_obj;
+ /*< public >*/
+
IDEBus bus[2];
BMDMAState bmdma[2];
uint32_t secondary; /* used only for cmd646 */