Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-4.1-sf1-v3' into...
[qemu/ar7.git] / include / hw / timer / aspeed_rtc.h
blob1f1155a676c112ee999a07e1f597c5cfdc2e4719
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 ASPEED_RTC_H
9 #define ASPEED_RTC_H
11 #include <stdint.h>
13 #include "hw/hw.h"
14 #include "hw/irq.h"
15 #include "hw/sysbus.h"
17 typedef struct AspeedRtcState {
18 SysBusDevice parent_obj;
20 MemoryRegion iomem;
21 qemu_irq irq;
23 uint32_t reg[0x18];
24 int offset;
26 } AspeedRtcState;
28 #define TYPE_ASPEED_RTC "aspeed.rtc"
29 #define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
31 #endif /* ASPEED_RTC_H */