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