mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
a489d1951c
commit
8063396bf3
505 changed files with 609 additions and 1795 deletions
|
@ -32,9 +32,7 @@
|
|||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_I82374 "i82374"
|
||||
typedef struct I82374State I82374State;
|
||||
DECLARE_INSTANCE_CHECKER(I82374State, I82374,
|
||||
TYPE_I82374)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(I82374State, I82374)
|
||||
|
||||
//#define DEBUG_I82374
|
||||
|
||||
|
|
|
@ -272,8 +272,7 @@ struct PL330State {
|
|||
};
|
||||
|
||||
#define TYPE_PL330 "pl330"
|
||||
DECLARE_INSTANCE_CHECKER(PL330State, PL330,
|
||||
TYPE_PL330)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(PL330State, PL330)
|
||||
|
||||
static const VMStateDescription vmstate_pl330 = {
|
||||
.name = "pl330",
|
||||
|
|
|
@ -23,9 +23,7 @@
|
|||
#define PUV3_DMA_CH(offset) ((offset) >> 8)
|
||||
|
||||
#define TYPE_PUV3_DMA "puv3_dma"
|
||||
typedef struct PUV3DMAState PUV3DMAState;
|
||||
DECLARE_INSTANCE_CHECKER(PUV3DMAState, PUV3_DMA,
|
||||
TYPE_PUV3_DMA)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(PUV3DMAState, PUV3_DMA)
|
||||
|
||||
struct PUV3DMAState {
|
||||
SysBusDevice parent_obj;
|
||||
|
|
|
@ -35,9 +35,7 @@ typedef struct {
|
|||
} PXA2xxDMAChannel;
|
||||
|
||||
#define TYPE_PXA2XX_DMA "pxa2xx-dma"
|
||||
typedef struct PXA2xxDMAState PXA2xxDMAState;
|
||||
DECLARE_INSTANCE_CHECKER(PXA2xxDMAState, PXA2XX_DMA,
|
||||
TYPE_PXA2XX_DMA)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(PXA2xxDMAState, PXA2XX_DMA)
|
||||
|
||||
struct PXA2xxDMAState {
|
||||
SysBusDevice parent_obj;
|
||||
|
|
|
@ -56,9 +56,7 @@ typedef struct dma_pagetable_entry {
|
|||
#define DMA_FLAG_ADDR_INTR 0x0400
|
||||
|
||||
#define TYPE_RC4030 "rc4030"
|
||||
typedef struct rc4030State rc4030State;
|
||||
DECLARE_INSTANCE_CHECKER(rc4030State, RC4030,
|
||||
TYPE_RC4030)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(rc4030State, RC4030)
|
||||
|
||||
#define TYPE_RC4030_IOMMU_MEMORY_REGION "rc4030-iommu-memory-region"
|
||||
|
||||
|
|
|
@ -43,9 +43,7 @@
|
|||
#define TYPE_XILINX_AXI_DMA_DATA_STREAM "xilinx-axi-dma-data-stream"
|
||||
#define TYPE_XILINX_AXI_DMA_CONTROL_STREAM "xilinx-axi-dma-control-stream"
|
||||
|
||||
typedef struct XilinxAXIDMA XilinxAXIDMA;
|
||||
DECLARE_INSTANCE_CHECKER(XilinxAXIDMA, XILINX_AXI_DMA,
|
||||
TYPE_XILINX_AXI_DMA)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(XilinxAXIDMA, XILINX_AXI_DMA)
|
||||
|
||||
typedef struct XilinxAXIDMAStreamSlave XilinxAXIDMAStreamSlave;
|
||||
DECLARE_INSTANCE_CHECKER(XilinxAXIDMAStreamSlave, XILINX_AXI_DMA_DATA_STREAM,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue