xref: /openbmc/qemu/include/hw/misc/bcm2835_thermal.h (revision a68694cd)
1 /*
2  * BCM2835 dummy thermal sensor
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 HW_MISC_BCM2835_THERMAL_H
10 #define HW_MISC_BCM2835_THERMAL_H
11 
12 #include "hw/sysbus.h"
13 #include "qom/object.h"
14 
15 #define TYPE_BCM2835_THERMAL "bcm2835-thermal"
16 
17 typedef struct Bcm2835ThermalState Bcm2835ThermalState;
18 DECLARE_INSTANCE_CHECKER(Bcm2835ThermalState, BCM2835_THERMAL,
19                          TYPE_BCM2835_THERMAL)
20 
21 struct Bcm2835ThermalState {
22     /*< private >*/
23     SysBusDevice parent_obj;
24     /*< public >*/
25     MemoryRegion iomem;
26     uint32_t ctl;
27 };
28 
29 #endif
30