mirror of
https://github.com/qemu/qemu.git
synced 2025-07-27 03:38:45 +00:00
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>
This commit is contained in:
parent
fe47ad3aa9
commit
cb8cf86b3e
@ -45,8 +45,6 @@
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define TYPE_AUXTOI2C "aux-to-i2c-bridge"
|
|
||||||
#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C)
|
|
||||||
|
|
||||||
static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent);
|
static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent);
|
||||||
static inline I2CBus *aux_bridge_get_i2c_bus(AUXTOI2CState *bridge);
|
static inline I2CBus *aux_bridge_get_i2c_bus(AUXTOI2CState *bridge);
|
||||||
|
@ -32,7 +32,10 @@ typedef struct AUXBus AUXBus;
|
|||||||
typedef struct AUXSlave AUXSlave;
|
typedef struct AUXSlave AUXSlave;
|
||||||
typedef enum AUXCommand AUXCommand;
|
typedef enum AUXCommand AUXCommand;
|
||||||
typedef enum AUXReply AUXReply;
|
typedef enum AUXReply AUXReply;
|
||||||
|
|
||||||
|
#define TYPE_AUXTOI2C "aux-to-i2c-bridge"
|
||||||
typedef struct AUXTOI2CState AUXTOI2CState;
|
typedef struct AUXTOI2CState AUXTOI2CState;
|
||||||
|
#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C)
|
||||||
|
|
||||||
enum AUXCommand {
|
enum AUXCommand {
|
||||||
WRITE_I2C = 0,
|
WRITE_I2C = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user