mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
8063396bf3
This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
29 lines
514 B
C
29 lines
514 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;
|
|
|
|
};
|
|
|
|
#define TYPE_ASPEED_RTC "aspeed.rtc"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(AspeedRtcState, ASPEED_RTC)
|
|
|
|
#endif /* HW_RTC_ASPEED_RTC_H */
|