122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _UAPI_LINUX_THERMAL_H
2022851890Sopenharmony_ci#define _UAPI_LINUX_THERMAL_H
2122851890Sopenharmony_ci#define THERMAL_NAME_LENGTH 20
2222851890Sopenharmony_cienum thermal_device_mode {
2322851890Sopenharmony_ci  THERMAL_DEVICE_DISABLED = 0,
2422851890Sopenharmony_ci  THERMAL_DEVICE_ENABLED,
2522851890Sopenharmony_ci};
2622851890Sopenharmony_cienum thermal_trip_type {
2722851890Sopenharmony_ci  THERMAL_TRIP_ACTIVE = 0,
2822851890Sopenharmony_ci  THERMAL_TRIP_PASSIVE,
2922851890Sopenharmony_ci  THERMAL_TRIP_HOT,
3022851890Sopenharmony_ci  THERMAL_TRIP_CRITICAL,
3122851890Sopenharmony_ci};
3222851890Sopenharmony_ci#define THERMAL_GENL_FAMILY_NAME "thermal"
3322851890Sopenharmony_ci#define THERMAL_GENL_VERSION 0x01
3422851890Sopenharmony_ci#define THERMAL_GENL_SAMPLING_GROUP_NAME "sampling"
3522851890Sopenharmony_ci#define THERMAL_GENL_EVENT_GROUP_NAME "event"
3622851890Sopenharmony_cienum thermal_genl_attr {
3722851890Sopenharmony_ci  THERMAL_GENL_ATTR_UNSPEC,
3822851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ,
3922851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_ID,
4022851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_TEMP,
4122851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_TRIP,
4222851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_TRIP_ID,
4322851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_TRIP_TYPE,
4422851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_TRIP_TEMP,
4522851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_TRIP_HYST,
4622851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_MODE,
4722851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_NAME,
4822851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_CDEV_WEIGHT,
4922851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_GOV,
5022851890Sopenharmony_ci  THERMAL_GENL_ATTR_TZ_GOV_NAME,
5122851890Sopenharmony_ci  THERMAL_GENL_ATTR_CDEV,
5222851890Sopenharmony_ci  THERMAL_GENL_ATTR_CDEV_ID,
5322851890Sopenharmony_ci  THERMAL_GENL_ATTR_CDEV_CUR_STATE,
5422851890Sopenharmony_ci  THERMAL_GENL_ATTR_CDEV_MAX_STATE,
5522851890Sopenharmony_ci  THERMAL_GENL_ATTR_CDEV_NAME,
5622851890Sopenharmony_ci  THERMAL_GENL_ATTR_GOV_NAME,
5722851890Sopenharmony_ci  __THERMAL_GENL_ATTR_MAX,
5822851890Sopenharmony_ci};
5922851890Sopenharmony_ci#define THERMAL_GENL_ATTR_MAX (__THERMAL_GENL_ATTR_MAX - 1)
6022851890Sopenharmony_cienum thermal_genl_sampling {
6122851890Sopenharmony_ci  THERMAL_GENL_SAMPLING_TEMP,
6222851890Sopenharmony_ci  __THERMAL_GENL_SAMPLING_MAX,
6322851890Sopenharmony_ci};
6422851890Sopenharmony_ci#define THERMAL_GENL_SAMPLING_MAX (__THERMAL_GENL_SAMPLING_MAX - 1)
6522851890Sopenharmony_cienum thermal_genl_event {
6622851890Sopenharmony_ci  THERMAL_GENL_EVENT_UNSPEC,
6722851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_CREATE,
6822851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_DELETE,
6922851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_DISABLE,
7022851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_ENABLE,
7122851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_TRIP_UP,
7222851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_TRIP_DOWN,
7322851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_TRIP_CHANGE,
7422851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_TRIP_ADD,
7522851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_TRIP_DELETE,
7622851890Sopenharmony_ci  THERMAL_GENL_EVENT_CDEV_ADD,
7722851890Sopenharmony_ci  THERMAL_GENL_EVENT_CDEV_DELETE,
7822851890Sopenharmony_ci  THERMAL_GENL_EVENT_CDEV_STATE_UPDATE,
7922851890Sopenharmony_ci  THERMAL_GENL_EVENT_TZ_GOV_CHANGE,
8022851890Sopenharmony_ci  __THERMAL_GENL_EVENT_MAX,
8122851890Sopenharmony_ci};
8222851890Sopenharmony_ci#define THERMAL_GENL_EVENT_MAX (__THERMAL_GENL_EVENT_MAX - 1)
8322851890Sopenharmony_cienum thermal_genl_cmd {
8422851890Sopenharmony_ci  THERMAL_GENL_CMD_UNSPEC,
8522851890Sopenharmony_ci  THERMAL_GENL_CMD_TZ_GET_ID,
8622851890Sopenharmony_ci  THERMAL_GENL_CMD_TZ_GET_TRIP,
8722851890Sopenharmony_ci  THERMAL_GENL_CMD_TZ_GET_TEMP,
8822851890Sopenharmony_ci  THERMAL_GENL_CMD_TZ_GET_GOV,
8922851890Sopenharmony_ci  THERMAL_GENL_CMD_TZ_GET_MODE,
9022851890Sopenharmony_ci  THERMAL_GENL_CMD_CDEV_GET,
9122851890Sopenharmony_ci  __THERMAL_GENL_CMD_MAX,
9222851890Sopenharmony_ci};
9322851890Sopenharmony_ci#define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1)
9422851890Sopenharmony_ci#endif
95