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 ASPEED_RTC_H
9#define ASPEED_RTC_H
10
11#include <stdint.h>
12
13#include "hw/irq.h"
14#include "hw/sysbus.h"
15
16typedef struct AspeedRtcState {
17 SysBusDevice parent_obj;
18
19 MemoryRegion iomem;
20 qemu_irq irq;
21
22 uint32_t reg[0x18];
23 int offset;
24
25} AspeedRtcState;
26
27#define TYPE_ASPEED_RTC "aspeed.rtc"
28#define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
29
30#endif /* ASPEED_RTC_H */
31