mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03: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
|
@ -28,8 +28,8 @@
|
|||
#define TYPE_PNV_PSI "pnv-psi"
|
||||
typedef struct PnvPsi PnvPsi;
|
||||
typedef struct PnvPsiClass PnvPsiClass;
|
||||
#define PNV_PSI(obj) \
|
||||
OBJECT_CHECK(PnvPsi, (obj), TYPE_PNV_PSI)
|
||||
DECLARE_OBJ_CHECKERS(PnvPsi, PnvPsiClass,
|
||||
PNV_PSI, TYPE_PNV_PSI)
|
||||
|
||||
#define PSIHB_XSCOM_MAX 0x20
|
||||
|
||||
|
@ -54,8 +54,8 @@ struct PnvPsi {
|
|||
|
||||
#define TYPE_PNV8_PSI TYPE_PNV_PSI "-POWER8"
|
||||
typedef struct Pnv8Psi Pnv8Psi;
|
||||
#define PNV8_PSI(obj) \
|
||||
OBJECT_CHECK(Pnv8Psi, (obj), TYPE_PNV8_PSI)
|
||||
DECLARE_INSTANCE_CHECKER(Pnv8Psi, PNV8_PSI,
|
||||
TYPE_PNV8_PSI)
|
||||
|
||||
struct Pnv8Psi {
|
||||
PnvPsi parent;
|
||||
|
@ -65,8 +65,8 @@ struct Pnv8Psi {
|
|||
|
||||
#define TYPE_PNV9_PSI TYPE_PNV_PSI "-POWER9"
|
||||
typedef struct Pnv9Psi Pnv9Psi;
|
||||
#define PNV9_PSI(obj) \
|
||||
OBJECT_CHECK(Pnv9Psi, (obj), TYPE_PNV9_PSI)
|
||||
DECLARE_INSTANCE_CHECKER(Pnv9Psi, PNV9_PSI,
|
||||
TYPE_PNV9_PSI)
|
||||
|
||||
struct Pnv9Psi {
|
||||
PnvPsi parent;
|
||||
|
@ -76,10 +76,6 @@ struct Pnv9Psi {
|
|||
|
||||
#define TYPE_PNV10_PSI TYPE_PNV_PSI "-POWER10"
|
||||
|
||||
#define PNV_PSI_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(PnvPsiClass, (klass), TYPE_PNV_PSI)
|
||||
#define PNV_PSI_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(PnvPsiClass, (obj), TYPE_PNV_PSI)
|
||||
|
||||
struct PnvPsiClass {
|
||||
SysBusDeviceClass parent_class;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue