mirror of
https://github.com/qemu/qemu.git
synced 2024-12-19 10:13:43 +08:00
8110fa1d94
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-12-ehabkost@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-13-ehabkost@redhat.com> Message-Id: <20200831210740.126168-14-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
31 lines
600 B
C
31 lines
600 B
C
/*
|
|
* 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 */
|