1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) Linaro Ltd 2020
7 struct thermal_genl_cpu_caps {
13 /* Netlink notification function */
14 #ifdef CONFIG_THERMAL_NETLINK
15 int __init thermal_netlink_init(void);
16 void __init thermal_netlink_exit(void);
17 int thermal_notify_tz_create(int tz_id, const char *name);
18 int thermal_notify_tz_delete(int tz_id);
19 int thermal_notify_tz_enable(int tz_id);
20 int thermal_notify_tz_disable(int tz_id);
21 int thermal_notify_tz_trip_down(int tz_id, int id, int temp);
22 int thermal_notify_tz_trip_up(int tz_id, int id, int temp);
23 int thermal_notify_tz_trip_delete(int tz_id, int id);
24 int thermal_notify_tz_trip_add(int tz_id, int id, int type,
26 int thermal_notify_tz_trip_change(int tz_id, int id, int type,
28 int thermal_notify_cdev_state_update(int cdev_id, int state);
29 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
30 int thermal_notify_cdev_delete(int cdev_id);
31 int thermal_notify_tz_gov_change(int tz_id, const char *name);
32 int thermal_genl_sampling_temp(int id, int temp);
33 int thermal_genl_cpu_capability_event(int count,
34 struct thermal_genl_cpu_caps *caps);
36 static inline int thermal_netlink_init(void)
41 static inline int thermal_notify_tz_create(int tz_id, const char *name)
46 static inline int thermal_notify_tz_delete(int tz_id)
51 static inline int thermal_notify_tz_enable(int tz_id)
56 static inline int thermal_notify_tz_disable(int tz_id)
61 static inline int thermal_notify_tz_trip_down(int tz_id, int id, int temp)
66 static inline int thermal_notify_tz_trip_up(int tz_id, int id, int temp)
71 static inline int thermal_notify_tz_trip_delete(int tz_id, int id)
76 static inline int thermal_notify_tz_trip_add(int tz_id, int id, int type,
82 static inline int thermal_notify_tz_trip_change(int tz_id, int id, int type,
88 static inline int thermal_notify_cdev_state_update(int cdev_id, int state)
93 static inline int thermal_notify_cdev_add(int cdev_id, const char *name,
99 static inline int thermal_notify_cdev_delete(int cdev_id)
104 static inline int thermal_notify_tz_gov_change(int tz_id, const char *name)
109 static inline int thermal_genl_sampling_temp(int id, int temp)
114 static inline int thermal_genl_cpu_capability_event(int count, struct thermal_genl_cpu_caps *caps)
119 static inline void __init thermal_netlink_exit(void) {}
121 #endif /* CONFIG_THERMAL_NETLINK */