imx_gpcv2.h 431 B

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