0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #ifndef _SMU7_THERMAL_H_
0025 #define _SMU7_THERMAL_H_
0026
0027 #include "hwmgr.h"
0028
0029 #define SMU7_THERMAL_HIGH_ALERT_MASK 0x1
0030 #define SMU7_THERMAL_LOW_ALERT_MASK 0x2
0031
0032 #define SMU7_THERMAL_MINIMUM_TEMP_READING -256
0033 #define SMU7_THERMAL_MAXIMUM_TEMP_READING 255
0034
0035 #define SMU7_THERMAL_MINIMUM_ALERT_TEMP 0
0036 #define SMU7_THERMAL_MAXIMUM_ALERT_TEMP 255
0037
0038 #define FDO_PWM_MODE_STATIC 1
0039 #define FDO_PWM_MODE_STATIC_RPM 5
0040
0041 extern int smu7_thermal_get_temperature(struct pp_hwmgr *hwmgr);
0042 extern int smu7_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr);
0043 extern int smu7_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, struct phm_fan_speed_info *fan_speed_info);
0044 extern int smu7_fan_ctrl_get_fan_speed_pwm(struct pp_hwmgr *hwmgr, uint32_t *speed);
0045 extern int smu7_fan_ctrl_set_default_mode(struct pp_hwmgr *hwmgr);
0046 extern int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode);
0047 extern int smu7_fan_ctrl_set_fan_speed_pwm(struct pp_hwmgr *hwmgr, uint32_t speed);
0048 extern int smu7_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr);
0049 extern int smu7_thermal_ctrl_uninitialize_thermal_controller(struct pp_hwmgr *hwmgr);
0050 extern int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed);
0051 extern int smu7_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed);
0052 extern int smu7_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr);
0053 extern int smu7_thermal_disable_alert(struct pp_hwmgr *hwmgr);
0054 extern int smu7_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr);
0055 extern int smu7_start_thermal_controller(struct pp_hwmgr *hwmgr,
0056 struct PP_TemperatureRange *temperature_range);
0057 #endif
0058