thermal.h 876 B

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