thermal.h 939 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _UAPI_LINUX_THERMAL_H
  3. #define _UAPI_LINUX_THERMAL_H
  4. #define THERMAL_NAME_LENGTH 20
  5. /* Adding event notification support elements */
  6. #define THERMAL_GENL_FAMILY_NAME "thermal_event"
  7. #define THERMAL_GENL_VERSION 0x01
  8. #define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_grp"
  9. /* Events supported by Thermal Netlink */
  10. enum events {
  11. THERMAL_AUX0,
  12. THERMAL_AUX1,
  13. THERMAL_CRITICAL,
  14. THERMAL_DEV_FAULT,
  15. };
  16. /* attributes of thermal_genl_family */
  17. enum {
  18. THERMAL_GENL_ATTR_UNSPEC,
  19. THERMAL_GENL_ATTR_EVENT,
  20. __THERMAL_GENL_ATTR_MAX,
  21. };
  22. #define THERMAL_GENL_ATTR_MAX (__THERMAL_GENL_ATTR_MAX - 1)
  23. /* commands supported by the thermal_genl_family */
  24. enum {
  25. THERMAL_GENL_CMD_UNSPEC,
  26. THERMAL_GENL_CMD_EVENT,
  27. __THERMAL_GENL_CMD_MAX,
  28. };
  29. #define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1)
  30. #endif /* _UAPI_LINUX_THERMAL_H */