1#ifndef IMX_GPCV2_H 2#define IMX_GPCV2_H 3 4#include "hw/sysbus.h" 5 6enum IMXGPCv2Registers { 7 GPC_NUM = 0xE00 / sizeof(uint32_t), 8}; 9 10typedef struct IMXGPCv2State { 11 /*< private >*/ 12 SysBusDevice parent_obj; 13 14 /*< public >*/ 15 MemoryRegion iomem; 16 uint32_t regs[GPC_NUM]; 17} IMXGPCv2State; 18 19#define TYPE_IMX_GPCV2 "imx-gpcv2" 20#define IMX_GPCV2(obj) OBJECT_CHECK(IMXGPCv2State, (obj), TYPE_IMX_GPCV2) 21 22#endif /* IMX_GPCV2_H */ 23