#include <linux/idr.h>
#include <linux/device.h>
#include <linux/workqueue.h>
Go to the source code of this file.
|
enum | thermal_device_mode { THERMAL_DEVICE_DISABLED = 0,
THERMAL_DEVICE_ENABLED
} |
|
enum | thermal_trip_type { THERMAL_TRIP_ACTIVE = 0,
THERMAL_TRIP_PASSIVE,
THERMAL_TRIP_HOT,
THERMAL_TRIP_CRITICAL
} |
|
enum | thermal_trend { THERMAL_TREND_STABLE,
THERMAL_TREND_RAISING,
THERMAL_TREND_DROPPING
} |
|
enum | events { THERMAL_AUX0,
THERMAL_AUX1,
THERMAL_CRITICAL,
THERMAL_DEV_FAULT
} |
|
enum | { THERMAL_GENL_ATTR_UNSPEC,
THERMAL_GENL_ATTR_EVENT,
__THERMAL_GENL_ATTR_MAX
} |
|
enum | { THERMAL_GENL_CMD_UNSPEC,
THERMAL_GENL_CMD_EVENT,
__THERMAL_GENL_CMD_MAX
} |
|
|
struct thermal_zone_device * | thermal_zone_device_register (const char *, int, int, void *, const struct thermal_zone_device_ops *, int, int) |
|
void | thermal_zone_device_unregister (struct thermal_zone_device *) |
|
int | thermal_zone_bind_cooling_device (struct thermal_zone_device *, int, struct thermal_cooling_device *, unsigned long, unsigned long) |
|
int | thermal_zone_unbind_cooling_device (struct thermal_zone_device *, int, struct thermal_cooling_device *) |
|
void | thermal_zone_device_update (struct thermal_zone_device *) |
|
struct thermal_cooling_device * | thermal_cooling_device_register (char *, void *, const struct thermal_cooling_device_ops *) |
|
void | thermal_cooling_device_unregister (struct thermal_cooling_device *) |
|
#define CELSIUS_TO_KELVIN |
( |
|
t | ) |
((t)*10+2732) |
#define KELVIN_TO_CELSIUS |
( |
|
t | ) |
|
#define THERMAL_GENL_FAMILY_NAME "thermal_event" |
#define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_group" |
#define THERMAL_GENL_VERSION 0x01 |
#define THERMAL_MAX_TRIPS 12 |
#define THERMAL_NAME_LENGTH 20 |
#define THERMAL_NO_LIMIT -1UL /* no upper/lower limit requirement */ |
#define THERMAL_TRIPS_NONE -1 |
- Enumerator:
THERMAL_GENL_ATTR_UNSPEC |
|
THERMAL_GENL_ATTR_EVENT |
|
__THERMAL_GENL_ATTR_MAX |
|
Definition at line 151 of file thermal.h.
- Enumerator:
THERMAL_GENL_CMD_UNSPEC |
|
THERMAL_GENL_CMD_EVENT |
|
__THERMAL_GENL_CMD_MAX |
|
Definition at line 159 of file thermal.h.
- Enumerator:
THERMAL_AUX0 |
|
THERMAL_AUX1 |
|
THERMAL_CRITICAL |
|
THERMAL_DEV_FAULT |
|
Definition at line 139 of file thermal.h.
- Enumerator:
THERMAL_DEVICE_DISABLED |
|
THERMAL_DEVICE_ENABLED |
|
Definition at line 35 of file thermal.h.
- Enumerator:
THERMAL_TREND_STABLE |
|
THERMAL_TREND_RAISING |
|
THERMAL_TREND_DROPPING |
|
Definition at line 47 of file thermal.h.
- Enumerator:
THERMAL_TRIP_ACTIVE |
|
THERMAL_TRIP_PASSIVE |
|
THERMAL_TRIP_HOT |
|
THERMAL_TRIP_CRITICAL |
|
Definition at line 40 of file thermal.h.
thermal_cooling_device_register - register a new thermal cooling device : the thermal cooling device type. : device private data. : standard thermal cooling devices callbacks.
Definition at line 894 of file thermal_sys.c.
thermal_zone_bind_cooling_device - bind a cooling device to a thermal zone : thermal zone device : indicates which trip point the cooling devices is associated with in this thermal zone. : thermal cooling device
This function is usually called in the thermal zone device .bind callback.
Definition at line 733 of file thermal_sys.c.
thermal_zone_device_register - register a new thermal zone device : the thermal zone device type : the number of trip points the thermal zone support : a bit string indicating the writeablility of trip points : private device data : standard thermal zone device callbacks : number of milliseconds to wait between polls when performing passive cooling : number of milliseconds to wait between polls when checking whether trip points have been crossed (0 for interrupt driven systems)
thermal_zone_device_unregister() must be called when the device is no longer needed. The passive cooling depends on the .get_trend() return value.
Definition at line 1332 of file thermal_sys.c.
thermal_device_unregister - removes the registered thermal zone device : the thermal zone device to remove
Definition at line 1448 of file thermal_sys.c.
thermal_zone_device_update - force an update of a thermal zone's state : the thermal zone to update
Definition at line 1149 of file thermal_sys.c.
thermal_zone_unbind_cooling_device - unbind a cooling device from a thermal zone : thermal zone device : indicates which trip point the cooling devices is associated with in this thermal zone. : thermal cooling device
This function is usually called in the thermal zone device .unbind callback.
Definition at line 836 of file thermal_sys.c.