]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/rtc/aspeed_rtc.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / rtc / aspeed_rtc.h
CommitLineData
979672cf
JS
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 */
ea5dcf4e
PMD
8#ifndef HW_RTC_ASPEED_RTC_H
9#define HW_RTC_ASPEED_RTC_H
979672cf 10
979672cf 11#include "hw/sysbus.h"
db1015e9 12#include "qom/object.h"
979672cf 13
db1015e9 14struct AspeedRtcState {
979672cf
JS
15 SysBusDevice parent_obj;
16
17 MemoryRegion iomem;
18 qemu_irq irq;
19
20 uint32_t reg[0x18];
21 int offset;
22
db1015e9
EH
23};
24typedef struct AspeedRtcState AspeedRtcState;
979672cf
JS
25
26#define TYPE_ASPEED_RTC "aspeed.rtc"
8110fa1d
EH
27DECLARE_INSTANCE_CHECKER(AspeedRtcState, ASPEED_RTC,
28 TYPE_ASPEED_RTC)
979672cf 29
ea5dcf4e 30#endif /* HW_RTC_ASPEED_RTC_H */