Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: thermal.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_THERMAL_H
[1] Fix | Delete
#define _LINUX_THERMAL_H
[2] Fix | Delete
[3] Fix | Delete
#define THERMAL_NAME_LENGTH 20
[4] Fix | Delete
[5] Fix | Delete
enum thermal_device_mode {
[6] Fix | Delete
THERMAL_DEVICE_DISABLED = 0,
[7] Fix | Delete
THERMAL_DEVICE_ENABLED,
[8] Fix | Delete
};
[9] Fix | Delete
[10] Fix | Delete
enum thermal_trip_type {
[11] Fix | Delete
THERMAL_TRIP_ACTIVE = 0,
[12] Fix | Delete
THERMAL_TRIP_PASSIVE,
[13] Fix | Delete
THERMAL_TRIP_HOT,
[14] Fix | Delete
THERMAL_TRIP_CRITICAL,
[15] Fix | Delete
};
[16] Fix | Delete
[17] Fix | Delete
/* Adding event notification support elements */
[18] Fix | Delete
#define THERMAL_GENL_FAMILY_NAME "thermal"
[19] Fix | Delete
#define THERMAL_GENL_VERSION 0x01
[20] Fix | Delete
#define THERMAL_GENL_SAMPLING_GROUP_NAME "sampling"
[21] Fix | Delete
#define THERMAL_GENL_EVENT_GROUP_NAME "event"
[22] Fix | Delete
[23] Fix | Delete
/* Attributes of thermal_genl_family */
[24] Fix | Delete
enum thermal_genl_attr {
[25] Fix | Delete
THERMAL_GENL_ATTR_UNSPEC,
[26] Fix | Delete
THERMAL_GENL_ATTR_TZ,
[27] Fix | Delete
THERMAL_GENL_ATTR_TZ_ID,
[28] Fix | Delete
THERMAL_GENL_ATTR_TZ_TEMP,
[29] Fix | Delete
THERMAL_GENL_ATTR_TZ_TRIP,
[30] Fix | Delete
THERMAL_GENL_ATTR_TZ_TRIP_ID,
[31] Fix | Delete
THERMAL_GENL_ATTR_TZ_TRIP_TYPE,
[32] Fix | Delete
THERMAL_GENL_ATTR_TZ_TRIP_TEMP,
[33] Fix | Delete
THERMAL_GENL_ATTR_TZ_TRIP_HYST,
[34] Fix | Delete
THERMAL_GENL_ATTR_TZ_MODE,
[35] Fix | Delete
THERMAL_GENL_ATTR_TZ_NAME,
[36] Fix | Delete
THERMAL_GENL_ATTR_TZ_CDEV_WEIGHT,
[37] Fix | Delete
THERMAL_GENL_ATTR_TZ_GOV,
[38] Fix | Delete
THERMAL_GENL_ATTR_TZ_GOV_NAME,
[39] Fix | Delete
THERMAL_GENL_ATTR_CDEV,
[40] Fix | Delete
THERMAL_GENL_ATTR_CDEV_ID,
[41] Fix | Delete
THERMAL_GENL_ATTR_CDEV_CUR_STATE,
[42] Fix | Delete
THERMAL_GENL_ATTR_CDEV_MAX_STATE,
[43] Fix | Delete
THERMAL_GENL_ATTR_CDEV_NAME,
[44] Fix | Delete
THERMAL_GENL_ATTR_GOV_NAME,
[45] Fix | Delete
THERMAL_GENL_ATTR_CPU_CAPABILITY,
[46] Fix | Delete
THERMAL_GENL_ATTR_CPU_CAPABILITY_ID,
[47] Fix | Delete
THERMAL_GENL_ATTR_CPU_CAPABILITY_PERFORMANCE,
[48] Fix | Delete
THERMAL_GENL_ATTR_CPU_CAPABILITY_EFFICIENCY,
[49] Fix | Delete
__THERMAL_GENL_ATTR_MAX,
[50] Fix | Delete
};
[51] Fix | Delete
#define THERMAL_GENL_ATTR_MAX (__THERMAL_GENL_ATTR_MAX - 1)
[52] Fix | Delete
[53] Fix | Delete
enum thermal_genl_sampling {
[54] Fix | Delete
THERMAL_GENL_SAMPLING_TEMP,
[55] Fix | Delete
__THERMAL_GENL_SAMPLING_MAX,
[56] Fix | Delete
};
[57] Fix | Delete
#define THERMAL_GENL_SAMPLING_MAX (__THERMAL_GENL_SAMPLING_MAX - 1)
[58] Fix | Delete
[59] Fix | Delete
/* Events of thermal_genl_family */
[60] Fix | Delete
enum thermal_genl_event {
[61] Fix | Delete
THERMAL_GENL_EVENT_UNSPEC,
[62] Fix | Delete
THERMAL_GENL_EVENT_TZ_CREATE, /* Thermal zone creation */
[63] Fix | Delete
THERMAL_GENL_EVENT_TZ_DELETE, /* Thermal zone deletion */
[64] Fix | Delete
THERMAL_GENL_EVENT_TZ_DISABLE, /* Thermal zone disabed */
[65] Fix | Delete
THERMAL_GENL_EVENT_TZ_ENABLE, /* Thermal zone enabled */
[66] Fix | Delete
THERMAL_GENL_EVENT_TZ_TRIP_UP, /* Trip point crossed the way up */
[67] Fix | Delete
THERMAL_GENL_EVENT_TZ_TRIP_DOWN, /* Trip point crossed the way down */
[68] Fix | Delete
THERMAL_GENL_EVENT_TZ_TRIP_CHANGE, /* Trip point changed */
[69] Fix | Delete
THERMAL_GENL_EVENT_TZ_TRIP_ADD, /* Trip point added */
[70] Fix | Delete
THERMAL_GENL_EVENT_TZ_TRIP_DELETE, /* Trip point deleted */
[71] Fix | Delete
THERMAL_GENL_EVENT_CDEV_ADD, /* Cdev bound to the thermal zone */
[72] Fix | Delete
THERMAL_GENL_EVENT_CDEV_DELETE, /* Cdev unbound */
[73] Fix | Delete
THERMAL_GENL_EVENT_CDEV_STATE_UPDATE, /* Cdev state updated */
[74] Fix | Delete
THERMAL_GENL_EVENT_TZ_GOV_CHANGE, /* Governor policy changed */
[75] Fix | Delete
THERMAL_GENL_EVENT_CPU_CAPABILITY_CHANGE, /* CPU capability changed */
[76] Fix | Delete
__THERMAL_GENL_EVENT_MAX,
[77] Fix | Delete
};
[78] Fix | Delete
#define THERMAL_GENL_EVENT_MAX (__THERMAL_GENL_EVENT_MAX - 1)
[79] Fix | Delete
[80] Fix | Delete
/* Commands supported by the thermal_genl_family */
[81] Fix | Delete
enum thermal_genl_cmd {
[82] Fix | Delete
THERMAL_GENL_CMD_UNSPEC,
[83] Fix | Delete
THERMAL_GENL_CMD_TZ_GET_ID, /* List of thermal zones id */
[84] Fix | Delete
THERMAL_GENL_CMD_TZ_GET_TRIP, /* List of thermal trips */
[85] Fix | Delete
THERMAL_GENL_CMD_TZ_GET_TEMP, /* Get the thermal zone temperature */
[86] Fix | Delete
THERMAL_GENL_CMD_TZ_GET_GOV, /* Get the thermal zone governor */
[87] Fix | Delete
THERMAL_GENL_CMD_TZ_GET_MODE, /* Get the thermal zone mode */
[88] Fix | Delete
THERMAL_GENL_CMD_CDEV_GET, /* List of cdev id */
[89] Fix | Delete
__THERMAL_GENL_CMD_MAX,
[90] Fix | Delete
};
[91] Fix | Delete
#define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1)
[92] Fix | Delete
[93] Fix | Delete
#endif /* _LINUX_THERMAL_H */
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function