mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Move QOM typedefs and add missing includes
Some typedefs and macros are defined after the type check macros. This makes it difficult to automatically replace their definitions with OBJECT_DECLARE_TYPE. Patch generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]') which will split "typdef struct { ... } TypedefName" declarations. Followed by: $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \ $(git grep -l '' -- '*.[ch]') which will: - move the typedefs and #defines above the type check macros - add missing #include "qom/object.h" lines if necessary Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-9-ehabkost@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-10-ehabkost@redhat.com> Message-Id: <20200831210740.126168-11-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
1c8eef0227
commit
db1015e92e
796 changed files with 3378 additions and 1823 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "qemu/fifo32.h"
|
||||
#include "hw/stream.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
typedef struct XilinxSPIPS XilinxSPIPS;
|
||||
|
||||
|
@ -85,16 +86,17 @@ struct XilinxSPIPS {
|
|||
bool man_start_com;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct XilinxQSPIPS {
|
||||
XilinxSPIPS parent_obj;
|
||||
|
||||
uint8_t lqspi_buf[LQSPI_CACHE_SIZE];
|
||||
hwaddr lqspi_cached_addr;
|
||||
Error *migration_blocker;
|
||||
bool mmio_execution_enabled;
|
||||
} XilinxQSPIPS;
|
||||
};
|
||||
typedef struct XilinxQSPIPS XilinxQSPIPS;
|
||||
|
||||
typedef struct {
|
||||
struct XlnxZynqMPQSPIPS {
|
||||
XilinxQSPIPS parent_obj;
|
||||
|
||||
StreamSlave *dma;
|
||||
|
@ -117,16 +119,18 @@ typedef struct {
|
|||
bool man_start_com_g;
|
||||
uint32_t dma_burst_size;
|
||||
uint8_t dma_buf[QSPI_DMA_MAX_BURST_SIZE];
|
||||
} XlnxZynqMPQSPIPS;
|
||||
};
|
||||
typedef struct XlnxZynqMPQSPIPS XlnxZynqMPQSPIPS;
|
||||
|
||||
typedef struct XilinxSPIPSClass {
|
||||
struct XilinxSPIPSClass {
|
||||
SysBusDeviceClass parent_class;
|
||||
|
||||
const MemoryRegionOps *reg_ops;
|
||||
|
||||
uint32_t rx_fifo_size;
|
||||
uint32_t tx_fifo_size;
|
||||
} XilinxSPIPSClass;
|
||||
};
|
||||
typedef struct XilinxSPIPSClass XilinxSPIPSClass;
|
||||
|
||||
#define TYPE_XILINX_SPIPS "xlnx.ps7-spi"
|
||||
#define TYPE_XILINX_QSPIPS "xlnx.ps7-qspi"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue