aspeed_rtc.h 518 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * ASPEED Real Time Clock
  3. * Joel Stanley <joel@jms.id.au>
  4. *
  5. * Copyright 2019 IBM Corp
  6. * SPDX-License-Identifier: GPL-2.0-or-later
  7. */
  8. #ifndef HW_RTC_ASPEED_RTC_H
  9. #define HW_RTC_ASPEED_RTC_H
  10. #include "hw/sysbus.h"
  11. #include "qom/object.h"
  12. struct AspeedRtcState {
  13. SysBusDevice parent_obj;
  14. MemoryRegion iomem;
  15. qemu_irq irq;
  16. uint32_t reg[0x18];
  17. int64_t offset;
  18. };
  19. #define TYPE_ASPEED_RTC "aspeed.rtc"
  20. OBJECT_DECLARE_SIMPLE_TYPE(AspeedRtcState, ASPEED_RTC)
  21. #endif /* HW_RTC_ASPEED_RTC_H */