1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) Linaro Ltd 2020
4 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
7 struct thermal_genl_cpu_caps {
13 /* Netlink notification function */
14 #ifdef CONFIG_THERMAL_NETLINK
15 int __init thermal_netlink_init(void);
16 int thermal_notify_tz_create(int tz_id, const char *name);
17 int thermal_notify_tz_delete(int tz_id);
18 int thermal_notify_tz_enable(int tz_id);
19 int thermal_notify_tz_disable(int tz_id);
20 int thermal_notify_tz_trip_down(int tz_id, int id, int temp);
21 int thermal_notify_tz_trip_up(int tz_id, int id, int temp);
22 int thermal_notify_tz_trip_delete(int tz_id, int id);
23 int thermal_notify_tz_trip_add(int tz_id, int id, int type,
25 int thermal_notify_tz_trip_change(int tz_id, int id, int type,
27 int thermal_notify_cdev_state_update(int cdev_id, int state);
28 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
29 int thermal_notify_cdev_delete(int cdev_id);
30 int thermal_notify_tz_gov_change(int tz_id, const char *name);
31 int thermal_genl_sampling_temp(int id, int temp);
32 int thermal_genl_cpu_capability_event(int count,
33 struct thermal_genl_cpu_caps *caps);
35 static inline int thermal_netlink_init(void)
40 static inline int thermal_notify_tz_create(int tz_id, const char *name)
45 static inline int thermal_notify_tz_delete(int tz_id)
50 static inline int thermal_notify_tz_enable(int tz_id)
55 static inline int thermal_notify_tz_disable(int tz_id)
60 static inline int thermal_notify_tz_trip_down(int tz_id, int id, int temp)
65 static inline int thermal_notify_tz_trip_up(int tz_id, int id, int temp)
70 static inline int thermal_notify_tz_trip_delete(int tz_id, int id)
75 static inline int thermal_notify_tz_trip_add(int tz_id, int id, int type,
81 static inline int thermal_notify_tz_trip_change(int tz_id, int id, int type,
87 static inline int thermal_notify_cdev_state_update(int cdev_id, int state)
92 static inline int thermal_notify_cdev_add(int cdev_id, const char *name,
98 static inline int thermal_notify_cdev_delete(int cdev_id)
103 static inline int thermal_notify_tz_gov_change(int tz_id, const char *name)
108 static inline int thermal_genl_sampling_temp(int id, int temp)
113 static inline int thermal_genl_cpu_capability_event(int count, struct thermal_genl_cpu_caps *caps)
118 #endif /* CONFIG_THERMAL_NETLINK */