summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-25 21:20:33 +0200
committerEduardo Habkost2020-08-27 20:04:55 +0200
commitcb8cf86b3e4a9384f847c05e3825a20a0786efd0 (patch)
treedf2db31830752371865c6dae8720493495e70100 /include
parentpiix: Move QOM macros to header (diff)
downloadqemu-cb8cf86b3e4a9384f847c05e3825a20a0786efd0.tar.gz
qemu-cb8cf86b3e4a9384f847c05e3825a20a0786efd0.tar.xz
qemu-cb8cf86b3e4a9384f847c05e3825a20a0786efd0.zip
auxbus: Move QOM macros to header
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-38-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/misc/auxbus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/misc/auxbus.h b/include/hw/misc/auxbus.h
index 15a8973517..041edfc9e9 100644
--- a/include/hw/misc/auxbus.h
+++ b/include/hw/misc/auxbus.h
@@ -32,7 +32,10 @@ typedef struct AUXBus AUXBus;
typedef struct AUXSlave AUXSlave;
typedef enum AUXCommand AUXCommand;
typedef enum AUXReply AUXReply;
+
+#define TYPE_AUXTOI2C "aux-to-i2c-bridge"
typedef struct AUXTOI2CState AUXTOI2CState;
+#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C)
enum AUXCommand {
WRITE_I2C = 0,