blob: 96218378dda8c581115b93e640b3d718d3f0f5ac [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Florian Fainelliaf6c9f12014-11-19 18:11:00 -08002#ifndef _UAPI_LINUX_THERMAL_H
3#define _UAPI_LINUX_THERMAL_H
4
5#define THERMAL_NAME_LENGTH 20
6
7/* Adding event notification support elements */
8#define THERMAL_GENL_FAMILY_NAME "thermal_event"
9#define THERMAL_GENL_VERSION 0x01
10#define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_grp"
11
12/* Events supported by Thermal Netlink */
13enum events {
14 THERMAL_AUX0,
15 THERMAL_AUX1,
16 THERMAL_CRITICAL,
17 THERMAL_DEV_FAULT,
18};
19
20/* attributes of thermal_genl_family */
21enum {
22 THERMAL_GENL_ATTR_UNSPEC,
23 THERMAL_GENL_ATTR_EVENT,
24 __THERMAL_GENL_ATTR_MAX,
25};
26#define THERMAL_GENL_ATTR_MAX (__THERMAL_GENL_ATTR_MAX - 1)
27
28/* commands supported by the thermal_genl_family */
29enum {
30 THERMAL_GENL_CMD_UNSPEC,
31 THERMAL_GENL_CMD_EVENT,
32 __THERMAL_GENL_CMD_MAX,
33};
34#define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1)
35
36#endif /* _UAPI_LINUX_THERMAL_H */