mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33: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
|
@ -27,8 +27,8 @@ typedef struct {
|
|||
|
||||
#define TYPE_BCM2835_DMA "bcm2835-dma"
|
||||
typedef struct BCM2835DMAState BCM2835DMAState;
|
||||
#define BCM2835_DMA(obj) \
|
||||
OBJECT_CHECK(BCM2835DMAState, (obj), TYPE_BCM2835_DMA)
|
||||
DECLARE_INSTANCE_CHECKER(BCM2835DMAState, BCM2835_DMA,
|
||||
TYPE_BCM2835_DMA)
|
||||
|
||||
#define BCM2835_DMA_NCHANS 16
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#define TYPE_I8257 "i8257"
|
||||
typedef struct I8257State I8257State;
|
||||
#define I8257(obj) \
|
||||
OBJECT_CHECK(I8257State, (obj), TYPE_I8257)
|
||||
DECLARE_INSTANCE_CHECKER(I8257State, I8257,
|
||||
TYPE_I8257)
|
||||
|
||||
typedef struct I8257Regs {
|
||||
int now[2];
|
||||
|
|
|
@ -44,7 +44,8 @@ typedef struct {
|
|||
#define TYPE_PL080 "pl080"
|
||||
#define TYPE_PL081 "pl081"
|
||||
typedef struct PL080State PL080State;
|
||||
#define PL080(obj) OBJECT_CHECK(PL080State, (obj), TYPE_PL080)
|
||||
DECLARE_INSTANCE_CHECKER(PL080State, PL080,
|
||||
TYPE_PL080)
|
||||
|
||||
struct PL080State {
|
||||
SysBusDevice parent_obj;
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef struct XlnxZDMA XlnxZDMA;
|
|||
|
||||
#define TYPE_XLNX_ZDMA "xlnx.zdma"
|
||||
|
||||
#define XLNX_ZDMA(obj) \
|
||||
OBJECT_CHECK(XlnxZDMA, (obj), TYPE_XLNX_ZDMA)
|
||||
DECLARE_INSTANCE_CHECKER(XlnxZDMA, XLNX_ZDMA,
|
||||
TYPE_XLNX_ZDMA)
|
||||
|
||||
#endif /* XLNX_ZDMA_H */
|
||||
|
|
|
@ -34,8 +34,8 @@
|
|||
#define TYPE_XLNX_ZYNQ_DEVCFG "xlnx.ps7-dev-cfg"
|
||||
|
||||
typedef struct XlnxZynqDevcfg XlnxZynqDevcfg;
|
||||
#define XLNX_ZYNQ_DEVCFG(obj) \
|
||||
OBJECT_CHECK(XlnxZynqDevcfg, (obj), TYPE_XLNX_ZYNQ_DEVCFG)
|
||||
DECLARE_INSTANCE_CHECKER(XlnxZynqDevcfg, XLNX_ZYNQ_DEVCFG,
|
||||
TYPE_XLNX_ZYNQ_DEVCFG)
|
||||
|
||||
#define XLNX_ZYNQ_DEVCFG_R_MAX (0x100 / 4)
|
||||
|
||||
|
|
|
@ -46,7 +46,8 @@ struct XlnxDPDMAState {
|
|||
typedef struct XlnxDPDMAState XlnxDPDMAState;
|
||||
|
||||
#define TYPE_XLNX_DPDMA "xlnx.dpdma"
|
||||
#define XLNX_DPDMA(obj) OBJECT_CHECK(XlnxDPDMAState, (obj), TYPE_XLNX_DPDMA)
|
||||
DECLARE_INSTANCE_CHECKER(XlnxDPDMAState, XLNX_DPDMA,
|
||||
TYPE_XLNX_DPDMA)
|
||||
|
||||
/*
|
||||
* xlnx_dpdma_start_operation: Start the operation on the specified channel. The
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue