linux/drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c

/*
 * Copyright 2021 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

#include "amdgpu.h"
#include "amdgpu_i2c.h"
#include "amdgpu_atombios.h"
#include "atom.h"
#include "amd_pcie.h"
#include "legacy_dpm.h"
#include "amdgpu_dpm_internal.h"
#include "amdgpu_display.h"

#define amdgpu_dpm_pre_set_power_state(adev)

#define amdgpu_dpm_post_set_power_state(adev)

#define amdgpu_dpm_display_configuration_changed(adev)

#define amdgpu_dpm_print_power_state(adev, ps)

#define amdgpu_dpm_vblank_too_short(adev)

#define amdgpu_dpm_check_state_equal(adev, cps, rps, equal)

void amdgpu_dpm_print_class_info(u32 class, u32 class2)
{}

void amdgpu_dpm_print_cap_info(u32 caps)
{}

void amdgpu_dpm_print_ps_status(struct amdgpu_device *adev,
				struct amdgpu_ps *rps)
{}

void amdgpu_pm_print_power_states(struct amdgpu_device *adev)
{}

power_info;

int amdgpu_get_platform_caps(struct amdgpu_device *adev)
{}

fan_info;

static int amdgpu_parse_clk_voltage_dep_table(struct amdgpu_clock_voltage_dependency_table *amdgpu_table,
					      ATOM_PPLIB_Clock_Voltage_Dependency_Table *atom_table)
{}

/* sizeof(ATOM_PPLIB_EXTENDEDHEADER) */
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V2
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V3
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V4
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V6
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V7
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V8
#define SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V9

int amdgpu_parse_extended_power_table(struct amdgpu_device *adev)
{}

void amdgpu_free_extended_power_table(struct amdgpu_device *adev)
{}

static const char *pp_lib_thermal_controller_names[] =;

void amdgpu_add_thermal_controller(struct amdgpu_device *adev)
{}

struct amd_vce_state* amdgpu_get_vce_clock_state(void *handle, u32 idx)
{}

static struct amdgpu_ps *amdgpu_dpm_pick_power_state(struct amdgpu_device *adev,
						     enum amd_pm_state_type dpm_state)
{}

static int amdgpu_dpm_change_power_state_locked(struct amdgpu_device *adev)
{}

void amdgpu_legacy_dpm_compute_clocks(void *handle)
{}

void amdgpu_dpm_thermal_work_handler(struct work_struct *work)
{}