xref: /openbmc/qemu/include/hw/intc/imx_gpcv2.h (revision 503bb0b9)
1 #ifndef IMX_GPCV2_H
2 #define IMX_GPCV2_H
3 
4 #include "hw/sysbus.h"
5 
6 enum IMXGPCv2Registers {
7     GPC_NUM        = 0xE00 / sizeof(uint32_t),
8 };
9 
10 typedef 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