summaryrefslogtreecommitdiffstats
path: root/hw/ide
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-25 21:20:26 +0200
committerEduardo Habkost2020-08-27 20:04:54 +0200
commit5e748ffbbf027ad1a8fcc41a24376d63d48992ac (patch)
tree646ccaedbb9a0b5c12f8523f1ece7009fc4f9cc9 /hw/ide
parentvhost-user-gpu: Move QOM macro to header (diff)
downloadqemu-5e748ffbbf027ad1a8fcc41a24376d63d48992ac.tar.gz
qemu-5e748ffbbf027ad1a8fcc41a24376d63d48992ac.tar.xz
qemu-5e748ffbbf027ad1a8fcc41a24376d63d48992ac.zip
ahci: Move QOM macros to header
The TYPE_* constants and the typedefs are defined in ahci.h, so we can move the type checking macros there too. This will make future conversion to OBJECT_DECLARE* easier. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Tested-By: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200825192110.3528606-31-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/ide')
-rw-r--r--hw/ide/ahci_internal.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/ide/ahci_internal.h b/hw/ide/ahci_internal.h
index bab0459774..ac9bdead7b 100644
--- a/hw/ide/ahci_internal.h
+++ b/hw/ide/ahci_internal.h
@@ -332,9 +332,6 @@ struct AHCIPCIState {
AHCIState ahci;
};
-#define ICH_AHCI(obj) \
- OBJECT_CHECK(AHCIPCIState, (obj), TYPE_ICH9_AHCI)
-
extern const VMStateDescription vmstate_ahci;
#define VMSTATE_AHCI(_field, _state) { \
@@ -394,6 +391,4 @@ void ahci_uninit(AHCIState *s);
void ahci_reset(AHCIState *s);
-#define SYSBUS_AHCI(obj) OBJECT_CHECK(SysbusAHCIState, (obj), TYPE_SYSBUS_AHCI)
-
#endif /* HW_IDE_AHCI_INTERNAL_H */