aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/ahci.h
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2013-06-24 16:55:45 +1000
committerAndreas Färber <afaerber@suse.de>2013-07-23 00:37:33 +0200
commitfd58922cf4ea09c8dbd2d46dd61e50e6559bf447 (patch)
treef728d3861c3f72adabd2dea6a406f5fe46b5ea38 /hw/ide/ahci.h
parent4e5dcc774a4003e313b6eec823067b3980b0bc91 (diff)
downloadqemu-fd58922cf4ea09c8dbd2d46dd61e50e6559bf447.zip
qemu-fd58922cf4ea09c8dbd2d46dd61e50e6559bf447.tar.gz
qemu-fd58922cf4ea09c8dbd2d46dd61e50e6559bf447.tar.bz2
ide/ich: QOM Upcast Sweep
Define and use standard QOM cast macro. Remove usages of DO_UPCAST() and direct -> style upcasting. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> [AF: Renamed to TYPE_ICH9_AHCI and used typedef in pci_ich9_reset()] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/ide/ahci.h')
-rw-r--r--hw/ide/ahci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h
index 341a571..f997c67 100644
--- a/hw/ide/ahci.h
+++ b/hw/ide/ahci.h
@@ -305,6 +305,11 @@ typedef struct AHCIPCIState {
AHCIState ahci;
} AHCIPCIState;
+#define TYPE_ICH9_AHCI "ich9-ahci"
+
+#define ICH_AHCI(obj) \
+ OBJECT_CHECK(AHCIPCIState, (obj), TYPE_ICH9_AHCI)
+
extern const VMStateDescription vmstate_ahci;
#define VMSTATE_AHCI(_field, _state) { \