summaryrefslogtreecommitdiffstats
path: root/include/hw/rtc/aspeed_rtc.h
blob: d7691ab88f5b2009c0e134d0dc23c6886cd72850 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * ASPEED Real Time Clock
 * Joel Stanley <joel@jms.id.au>
 *
 * Copyright 2019 IBM Corp
 * SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef HW_RTC_ASPEED_RTC_H
#define HW_RTC_ASPEED_RTC_H

#include "hw/sysbus.h"
#include "qom/object.h"

struct AspeedRtcState {
    SysBusDevice parent_obj;

    MemoryRegion iomem;
    qemu_irq irq;

    uint32_t reg[0x18];
    int offset;

};
typedef struct AspeedRtcState AspeedRtcState;

#define TYPE_ASPEED_RTC "aspeed.rtc"
DECLARE_INSTANCE_CHECKER(AspeedRtcState, ASPEED_RTC,
                         TYPE_ASPEED_RTC)

#endif /* HW_RTC_ASPEED_RTC_H */