configure: Allow automatic WHPX detection
[qemu/ar7.git] / include / hw / timer / bcm2835_systmr.h
blobc0bc5c81270d087d00a3a6aa3af914afbc81caa7
1 /*
2 * BCM2835 SYS timer emulation
4 * Copyright (c) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org>
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef BCM2835_SYSTIMER_H
10 #define BCM2835_SYSTIMER_H
12 #include "hw/sysbus.h"
13 #include "hw/irq.h"
15 #define TYPE_BCM2835_SYSTIMER "bcm2835-sys-timer"
16 #define BCM2835_SYSTIMER(obj) \
17 OBJECT_CHECK(BCM2835SystemTimerState, (obj), TYPE_BCM2835_SYSTIMER)
19 typedef struct {
20 /*< private >*/
21 SysBusDevice parent_obj;
23 /*< public >*/
24 MemoryRegion iomem;
25 qemu_irq irq;
27 struct {
28 uint32_t status;
29 uint32_t compare[4];
30 } reg;
31 } BCM2835SystemTimerState;
33 #endif