mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -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
|
@ -62,12 +62,8 @@
|
|||
|
||||
typedef struct AwRtcClass AwRtcClass;
|
||||
typedef struct AwRtcState AwRtcState;
|
||||
#define AW_RTC(obj) \
|
||||
OBJECT_CHECK(AwRtcState, (obj), TYPE_AW_RTC)
|
||||
#define AW_RTC_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(AwRtcClass, (klass), TYPE_AW_RTC)
|
||||
#define AW_RTC_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(AwRtcClass, (obj), TYPE_AW_RTC)
|
||||
DECLARE_OBJ_CHECKERS(AwRtcState, AwRtcClass,
|
||||
AW_RTC, TYPE_AW_RTC)
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ struct AspeedRtcState {
|
|||
typedef struct AspeedRtcState AspeedRtcState;
|
||||
|
||||
#define TYPE_ASPEED_RTC "aspeed.rtc"
|
||||
#define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
|
||||
DECLARE_INSTANCE_CHECKER(AspeedRtcState, ASPEED_RTC,
|
||||
TYPE_ASPEED_RTC)
|
||||
|
||||
#endif /* HW_RTC_ASPEED_RTC_H */
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
#define TYPE_GOLDFISH_RTC "goldfish_rtc"
|
||||
typedef struct GoldfishRTCState GoldfishRTCState;
|
||||
#define GOLDFISH_RTC(obj) \
|
||||
OBJECT_CHECK(GoldfishRTCState, (obj), TYPE_GOLDFISH_RTC)
|
||||
DECLARE_INSTANCE_CHECKER(GoldfishRTCState, GOLDFISH_RTC,
|
||||
TYPE_GOLDFISH_RTC)
|
||||
|
||||
struct GoldfishRTCState {
|
||||
SysBusDevice parent_obj;
|
||||
|
|
|
@ -32,10 +32,8 @@
|
|||
#define TYPE_NVRAM "nvram"
|
||||
|
||||
typedef struct NvramClass NvramClass;
|
||||
#define NVRAM_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(NvramClass, (klass), TYPE_NVRAM)
|
||||
#define NVRAM_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(NvramClass, (obj), TYPE_NVRAM)
|
||||
DECLARE_CLASS_CHECKERS(NvramClass, NVRAM,
|
||||
TYPE_NVRAM)
|
||||
#define NVRAM(obj) \
|
||||
INTERFACE_CHECK(Nvram, (obj), TYPE_NVRAM)
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
|
||||
#define TYPE_MC146818_RTC "mc146818rtc"
|
||||
typedef struct RTCState RTCState;
|
||||
#define MC146818_RTC(obj) OBJECT_CHECK(RTCState, (obj), TYPE_MC146818_RTC)
|
||||
DECLARE_INSTANCE_CHECKER(RTCState, MC146818_RTC,
|
||||
TYPE_MC146818_RTC)
|
||||
|
||||
struct RTCState {
|
||||
ISADevice parent_obj;
|
||||
|
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
#define TYPE_PL031 "pl031"
|
||||
typedef struct PL031State PL031State;
|
||||
#define PL031(obj) OBJECT_CHECK(PL031State, (obj), TYPE_PL031)
|
||||
DECLARE_INSTANCE_CHECKER(PL031State, PL031,
|
||||
TYPE_PL031)
|
||||
|
||||
struct PL031State {
|
||||
SysBusDevice parent_obj;
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
#define TYPE_XLNX_ZYNQMP_RTC "xlnx-zynmp.rtc"
|
||||
|
||||
typedef struct XlnxZynqMPRTC XlnxZynqMPRTC;
|
||||
#define XLNX_ZYNQMP_RTC(obj) \
|
||||
OBJECT_CHECK(XlnxZynqMPRTC, (obj), TYPE_XLNX_ZYNQMP_RTC)
|
||||
DECLARE_INSTANCE_CHECKER(XlnxZynqMPRTC, XLNX_ZYNQMP_RTC,
|
||||
TYPE_XLNX_ZYNQMP_RTC)
|
||||
|
||||
REG32(SET_TIME_WRITE, 0x0)
|
||||
REG32(SET_TIME_READ, 0x4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue