MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / hw / rtc / aspeed_rtc.h
blobb94a7102688a82fabc84652b6b2732d5938f1f2a
1 /*
2 * ASPEED Real Time Clock
3 * Joel Stanley <joel@jms.id.au>
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
11 #include "hw/sysbus.h"
13 typedef struct AspeedRtcState {
14 SysBusDevice parent_obj;
16 MemoryRegion iomem;
17 qemu_irq irq;
19 uint32_t reg[0x18];
20 int offset;
22 } AspeedRtcState;
24 #define TYPE_ASPEED_RTC "aspeed.rtc"
25 #define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
27 #endif /* HW_RTC_ASPEED_RTC_H */