
The system <stdint.h> include is already provided by "osdep.h" (the scripts/clean-includes file clean such headers). Commit 64552b6be47 suggests we don't need to include "hw/irq.h": Move the qemu_irq and qemu_irq_handler typedefs from hw/irq.h to qemu/typedefs.h, and then include hw/irq.h only where it's still needed. Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20191003230404.19384-15-philmd@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
28 lines
535 B
C
28 lines
535 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"
|
|
|
|
typedef struct AspeedRtcState {
|
|
SysBusDevice parent_obj;
|
|
|
|
MemoryRegion iomem;
|
|
qemu_irq irq;
|
|
|
|
uint32_t reg[0x18];
|
|
int offset;
|
|
|
|
} AspeedRtcState;
|
|
|
|
#define TYPE_ASPEED_RTC "aspeed.rtc"
|
|
#define ASPEED_RTC(obj) OBJECT_CHECK(AspeedRtcState, (obj), TYPE_ASPEED_RTC)
|
|
|
|
#endif /* HW_RTC_ASPEED_RTC_H */
|