Path: blob/master/drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.h
26535 views
/*1* Copyright 2021 Advanced Micro Devices, Inc.2*3* Permission is hereby granted, free of charge, to any person obtaining a4* copy of this software and associated documentation files (the "Software"),5* to deal in the Software without restriction, including without limitation6* the rights to use, copy, modify, merge, publish, distribute, sublicense,7* and/or sell copies of the Software, and to permit persons to whom the8* Software is furnished to do so, subject to the following conditions:9*10* The above copyright notice and this permission notice shall be included in11* all copies or substantial portions of the Software.12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR17* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19* OTHER DEALINGS IN THE SOFTWARE.20*21*/22#ifndef __LEGACY_DPM_H__23#define __LEGACY_DPM_H__2425void amdgpu_dpm_dbg_print_class_info(struct amdgpu_device *adev, u32 class, u32 class2);26void amdgpu_dpm_dbg_print_cap_info(struct amdgpu_device *adev, u32 caps);27void amdgpu_dpm_dbg_print_ps_status(struct amdgpu_device *adev, struct amdgpu_ps *rps);28int amdgpu_get_platform_caps(struct amdgpu_device *adev);29int amdgpu_parse_extended_power_table(struct amdgpu_device *adev);30void amdgpu_free_extended_power_table(struct amdgpu_device *adev);31void amdgpu_add_thermal_controller(struct amdgpu_device *adev);32struct amd_vce_state* amdgpu_get_vce_clock_state(void *handle, u32 idx);33void amdgpu_pm_print_power_states(struct amdgpu_device *adev);34void amdgpu_legacy_dpm_compute_clocks(void *handle);35void amdgpu_dpm_thermal_work_handler(struct work_struct *work);36#endif373839