2019-10-20 02:47:00 +03:00
|
|
|
/*
|
|
|
|
* BCM2835 dummy thermal sensor
|
|
|
|
*
|
|
|
|
* Copyright (C) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HW_MISC_BCM2835_THERMAL_H
|
|
|
|
#define HW_MISC_BCM2835_THERMAL_H
|
|
|
|
|
|
|
|
#include "hw/sysbus.h"
|
2020-09-03 23:43:22 +03:00
|
|
|
#include "qom/object.h"
|
2019-10-20 02:47:00 +03:00
|
|
|
|
|
|
|
#define TYPE_BCM2835_THERMAL "bcm2835-thermal"
|
|
|
|
|
2020-09-16 21:25:19 +03:00
|
|
|
OBJECT_DECLARE_SIMPLE_TYPE(Bcm2835ThermalState, BCM2835_THERMAL)
|
2019-10-20 02:47:00 +03:00
|
|
|
|
2020-09-03 23:43:22 +03:00
|
|
|
struct Bcm2835ThermalState {
|
2019-10-20 02:47:00 +03:00
|
|
|
/*< private >*/
|
|
|
|
SysBusDevice parent_obj;
|
|
|
|
/*< public >*/
|
|
|
|
MemoryRegion iomem;
|
|
|
|
uint32_t ctl;
|
2020-09-03 23:43:22 +03:00
|
|
|
};
|
2019-10-20 02:47:00 +03:00
|
|
|
|
|
|
|
#endif
|