#include "pp_debug.h"
#include <linux/errno.h>
#include "hwmgr.h"
#include "hardwaremanager.h"
#include "power_state.h"
#define TEMP_RANGE_MIN …
#define TEMP_RANGE_MAX …
#define PHM_FUNC_CHECK(hw) …
int phm_setup_asic(struct pp_hwmgr *hwmgr)
{ … }
int phm_power_down_asic(struct pp_hwmgr *hwmgr)
{ … }
int phm_set_power_state(struct pp_hwmgr *hwmgr,
const struct pp_hw_power_state *pcurrent_state,
const struct pp_hw_power_state *pnew_power_state)
{ … }
int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)
{ … }
int phm_disable_dynamic_state_management(struct pp_hwmgr *hwmgr)
{ … }
int phm_force_dpm_levels(struct pp_hwmgr *hwmgr, enum amd_dpm_forced_level level)
{ … }
int phm_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
struct pp_power_state *adjusted_ps,
const struct pp_power_state *current_ps)
{ … }
int phm_apply_clock_adjust_rules(struct pp_hwmgr *hwmgr)
{ … }
int phm_powerdown_uvd(struct pp_hwmgr *hwmgr)
{ … }
int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr)
{ … }
int phm_pre_display_configuration_changed(struct pp_hwmgr *hwmgr)
{ … }
int phm_display_configuration_changed(struct pp_hwmgr *hwmgr)
{ … }
int phm_notify_smc_display_config_after_ps_adjustment(struct pp_hwmgr *hwmgr)
{ … }
int phm_stop_thermal_controller(struct pp_hwmgr *hwmgr)
{ … }
int phm_register_irq_handlers(struct pp_hwmgr *hwmgr)
{ … }
int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)
{ … }
bool phm_check_smc_update_required_for_display_configuration(struct pp_hwmgr *hwmgr)
{ … }
int phm_check_states_equal(struct pp_hwmgr *hwmgr,
const struct pp_hw_power_state *pstate1,
const struct pp_hw_power_state *pstate2,
bool *equal)
{ … }
int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr,
const struct amd_pp_display_configuration *display_config)
{ … }
int phm_get_dal_power_level(struct pp_hwmgr *hwmgr,
struct amd_pp_simple_clock_info *info)
{ … }
int phm_set_cpu_power_state(struct pp_hwmgr *hwmgr)
{ … }
int phm_get_performance_level(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state,
PHM_PerformanceLevelDesignation designation, uint32_t index,
PHM_PerformanceLevel *level)
{ … }
int phm_get_clock_info(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state, struct pp_clock_info *pclock_info,
PHM_PerformanceLevelDesignation designation)
{ … }
int phm_get_current_shallow_sleep_clocks(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state, struct pp_clock_info *clock_info)
{ … }
int phm_get_clock_by_type(struct pp_hwmgr *hwmgr, enum amd_pp_clock_type type, struct amd_pp_clocks *clocks)
{ … }
int phm_get_clock_by_type_with_latency(struct pp_hwmgr *hwmgr,
enum amd_pp_clock_type type,
struct pp_clock_levels_with_latency *clocks)
{ … }
int phm_get_clock_by_type_with_voltage(struct pp_hwmgr *hwmgr,
enum amd_pp_clock_type type,
struct pp_clock_levels_with_voltage *clocks)
{ … }
int phm_set_watermarks_for_clocks_ranges(struct pp_hwmgr *hwmgr,
void *clock_ranges)
{ … }
int phm_display_clock_voltage_request(struct pp_hwmgr *hwmgr,
struct pp_display_clock_request *clock)
{ … }
int phm_get_max_high_clocks(struct pp_hwmgr *hwmgr, struct amd_pp_simple_clock_info *clocks)
{ … }
int phm_disable_smc_firmware_ctf(struct pp_hwmgr *hwmgr)
{ … }
int phm_set_active_display_count(struct pp_hwmgr *hwmgr, uint32_t count)
{ … }