]>
Commit | Line | Data |
---|---|---|
d05be883 PMD |
1 | /* |
2 | * BCM2835 SYS timer emulation | |
3 | * | |
4 | * Copyright (c) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org> | |
5 | * | |
6 | * SPDX-License-Identifier: GPL-2.0-or-later | |
7 | */ | |
8 | ||
9 | #ifndef BCM2835_SYSTIMER_H | |
10 | #define BCM2835_SYSTIMER_H | |
11 | ||
12 | #include "hw/sysbus.h" | |
13 | #include "hw/irq.h" | |
db1015e9 | 14 | #include "qom/object.h" |
d05be883 PMD |
15 | |
16 | #define TYPE_BCM2835_SYSTIMER "bcm2835-sys-timer" | |
8063396b | 17 | OBJECT_DECLARE_SIMPLE_TYPE(BCM2835SystemTimerState, BCM2835_SYSTIMER) |
d05be883 | 18 | |
db1015e9 | 19 | struct BCM2835SystemTimerState { |
d05be883 PMD |
20 | /*< private >*/ |
21 | SysBusDevice parent_obj; | |
22 | ||
23 | /*< public >*/ | |
24 | MemoryRegion iomem; | |
25 | qemu_irq irq; | |
26 | ||
27 | struct { | |
28 | uint32_t status; | |
29 | uint32_t compare[4]; | |
30 | } reg; | |
db1015e9 | 31 | }; |
d05be883 PMD |
32 | |
33 | #endif |