summaryrefslogtreecommitdiff
path: root/include/thermal.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/thermal.h')
-rw-r--r--include/thermal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/thermal.h b/include/thermal.h
index aa6cc08f4f..0998b70fcc 100644
--- a/include/thermal.h
+++ b/include/thermal.h
@@ -47,4 +47,13 @@ struct thermal_config_t {
int16_t thresholds[THRESHOLD_COUNT];
};
+/* Set the threshold temperature value. Return -1 on error. */
+int thermal_set_threshold(int sensor_id, int threshold_id, int value);
+
+/* Get the threshold temperature value. Return -1 on error. */
+int thermal_get_threshold(int sensor_id, int threshold_id);
+
+/* Toggle automatic fan speed control. Return -1 on error. */
+int thermal_toggle_auto_fan_ctrl(int auto_fan_on);
+
#endif /* __CROS_EC_THERMAL_H */