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/sysbus.h"
15 #include "qom/object.h"
16 
17 #define TYPE_BCM2835_POWERMGT "bcm2835-powermgt"
18 OBJECT_DECLARE_SIMPLE_TYPE(BCM2835PowerMgtState, BCM2835_POWERMGT)
19 
20 struct BCM2835PowerMgtState {
21     SysBusDevice busdev;
22     MemoryRegion iomem;
23 
24     uint32_t rstc;
25     uint32_t rsts;
26     uint32_t wdog;
27 };
28 
29 #endif
30