mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
Use DECLARE_*CHECKER* macros
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-12-ehabkost@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-13-ehabkost@redhat.com> Message-Id: <20200831210740.126168-14-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
db1015e92e
commit
8110fa1d94
791 changed files with 1987 additions and 2423 deletions
|
@ -47,7 +47,8 @@ struct CRBState {
|
|||
};
|
||||
typedef struct CRBState CRBState;
|
||||
|
||||
#define CRB(obj) OBJECT_CHECK(CRBState, (obj), TYPE_TPM_CRB)
|
||||
DECLARE_INSTANCE_CHECKER(CRBState, CRB,
|
||||
TYPE_TPM_CRB)
|
||||
|
||||
#define CRB_INTF_TYPE_CRB_ACTIVE 0b1
|
||||
#define CRB_INTF_VERSION_CRB 0b1
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
#define DEBUG_SPAPR 0
|
||||
|
||||
typedef struct SpaprTpmState SpaprTpmState;
|
||||
#define VIO_SPAPR_VTPM(obj) \
|
||||
OBJECT_CHECK(SpaprTpmState, (obj), TYPE_TPM_SPAPR)
|
||||
DECLARE_INSTANCE_CHECKER(SpaprTpmState, VIO_SPAPR_VTPM,
|
||||
TYPE_TPM_SPAPR)
|
||||
|
||||
typedef struct TpmCrq {
|
||||
uint8_t valid; /* 0x80: cmd; 0xc0: init crq */
|
||||
|
|
|
@ -40,7 +40,8 @@ struct TPMStateISA {
|
|||
};
|
||||
typedef struct TPMStateISA TPMStateISA;
|
||||
|
||||
#define TPM_TIS_ISA(obj) OBJECT_CHECK(TPMStateISA, (obj), TYPE_TPM_TIS_ISA)
|
||||
DECLARE_INSTANCE_CHECKER(TPMStateISA, TPM_TIS_ISA,
|
||||
TYPE_TPM_TIS_ISA)
|
||||
|
||||
static int tpm_tis_pre_save_isa(void *opaque)
|
||||
{
|
||||
|
|
|
@ -40,7 +40,8 @@ struct TPMStateSysBus {
|
|||
};
|
||||
typedef struct TPMStateSysBus TPMStateSysBus;
|
||||
|
||||
#define TPM_TIS_SYSBUS(obj) OBJECT_CHECK(TPMStateSysBus, (obj), TYPE_TPM_TIS_SYSBUS)
|
||||
DECLARE_INSTANCE_CHECKER(TPMStateSysBus, TPM_TIS_SYSBUS,
|
||||
TYPE_TPM_TIS_SYSBUS)
|
||||
|
||||
static int tpm_tis_pre_save_sysbus(void *opaque)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue