~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/thermal.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/thermal.h (Version linux-6.12-rc7) and /include/uapi/linux/thermal.h (Version linux-6.11.7)


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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php