1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #ifndef _SMU7_THERMAL_H_
25 #define _SMU7_THERMAL_H_
26
27 #include "hwmgr.h"
28
29 #define SMU7_THERMAL_HIGH_ALERT_MASK 0x1
30 #define SMU7_THERMAL_LOW_ALERT_MASK 0x2
31
32 #define SMU7_THERMAL_MINIMUM_TEMP_READING -256
33 #define SMU7_THERMAL_MAXIMUM_TEMP_READING 255
34
35 #define SMU7_THERMAL_MINIMUM_ALERT_TEMP 0
36 #define SMU7_THERMAL_MAXIMUM_ALERT_TEMP 255
37
38 #define FDO_PWM_MODE_STATIC 1
39 #define FDO_PWM_MODE_STATIC_RPM 5
40
41 extern int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr);
42 extern int smu7_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr);
43 extern int smu7_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, struct phm_fan_speed_info *fan_speed_info);
44 extern int smu7_fan_ctrl_get_fan_speed_percent(struct pp_hwmgr *hwmgr, uint32_t *speed);
45 extern int smu7_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr);
46 extern int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode);
47 extern int smu7_fan_ctrl_set_fan_speed_percent(struct pp_hwmgr *hwmgr, uint32_t speed);
48 extern int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr);
49 extern int smu7_thermal_ctrl_uninitialize_thermal_controller(struct pp_hwmgr *hwmgr);
50 extern int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed);
51 extern int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed);
52 extern int smu7_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr);
53 extern int smu7_thermal_disable_alert(struct pp_hwmgr *hwmgr);
54 extern int smu7_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr);
55 extern int smu7_start_thermal_controller(struct pp_hwmgr *hwmgr,
56 struct PP_TemperatureRange *temperature_range);
57 #endif
58