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