]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/misc/bcm2835_thermal.h
Move QOM typedefs and add missing includes
[mirror_qemu.git] / include / hw / misc / bcm2835_thermal.h
CommitLineData
99c64137
PMD
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"
db1015e9 13#include "qom/object.h"
99c64137
PMD
14
15#define TYPE_BCM2835_THERMAL "bcm2835-thermal"
16
db1015e9 17typedef struct Bcm2835ThermalState Bcm2835ThermalState;
99c64137
PMD
18#define BCM2835_THERMAL(obj) \
19 OBJECT_CHECK(Bcm2835ThermalState, (obj), TYPE_BCM2835_THERMAL)
20
db1015e9 21struct Bcm2835ThermalState {
99c64137
PMD
22 /*< private >*/
23 SysBusDevice parent_obj;
24 /*< public >*/
25 MemoryRegion iomem;
26 uint32_t ctl;
db1015e9 27};
99c64137
PMD
28
29#endif