master
h 31 lines 719 Bytes
Raw
1 /*
2 * BCM2835 Power Management emulation
3 *
4 * Copyright (C) 2017 Marcin Chojnacki <marcinch7@gmail.com>
5 * Copyright (C) 2021 Nolan Leake <nolan@sigbus.net>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
9 */
10
11 #ifndef BCM2835_POWERMGT_H
12 #define BCM2835_POWERMGT_H
13
14 #include "hw/core/sysbus.h"
15 #include "qemu/timer.h"
16 #include "qom/object.h"
17
18 #define TYPE_BCM2835_POWERMGT "bcm2835-powermgt"
19 OBJECT_DECLARE_SIMPLE_TYPE(BCM2835PowerMgtState, BCM2835_POWERMGT)
20
21 struct BCM2835PowerMgtState {
22 SysBusDevice busdev;
23 MemoryRegion iomem;
24
25 uint32_t rstc;
26 uint32_t rsts;
27 uint32_t wdog;
28 QEMUTimer *wdog_timer;
29 };
30
31 #endif