linux/drivers/gpu/drm/radeon/r600_dpm.c

/*
 * Copyright 2011 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.
 *
 * Authors: Alex Deucher
 */

#include "radeon.h"
#include "radeon_asic.h"
#include "r600d.h"
#include "r600_dpm.h"
#include "atom.h"

const u32 r600_utc[R600_PM_NUMBER_OF_TC] =;

const u32 r600_dtc[R600_PM_NUMBER_OF_TC] =;

void r600_dpm_print_class_info(u32 class, u32 class2)
{}

void r600_dpm_print_cap_info(u32 caps)
{}

void r600_dpm_print_ps_status(struct radeon_device *rdev,
			      struct radeon_ps *rps)
{}

u32 r600_dpm_get_vblank_time(struct radeon_device *rdev)
{}

u32 r600_dpm_get_vrefresh(struct radeon_device *rdev)
{}

void r600_calculate_u_and_p(u32 i, u32 r_c, u32 p_b,
			    u32 *p, u32 *u)
{}

int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th)
{}

void r600_gfx_clockgating_enable(struct radeon_device *rdev, bool enable)
{}

void r600_dynamicpm_enable(struct radeon_device *rdev, bool enable)
{}

void r600_enable_thermal_protection(struct radeon_device *rdev, bool enable)
{}

void r600_enable_acpi_pm(struct radeon_device *rdev)
{}

void r600_enable_dynamic_pcie_gen2(struct radeon_device *rdev, bool enable)
{}

bool r600_dynamicpm_enabled(struct radeon_device *rdev)
{}

void r600_enable_sclk_control(struct radeon_device *rdev, bool enable)
{}

void r600_enable_mclk_control(struct radeon_device *rdev, bool enable)
{}

void r600_enable_spll_bypass(struct radeon_device *rdev, bool enable)
{}

void r600_wait_for_spll_change(struct radeon_device *rdev)
{}

void r600_set_bsp(struct radeon_device *rdev, u32 u, u32 p)
{}

void r600_set_at(struct radeon_device *rdev,
		 u32 l_to_m, u32 m_to_h,
		 u32 h_to_m, u32 m_to_l)
{}

void r600_set_tc(struct radeon_device *rdev,
		 u32 index, u32 u_t, u32 d_t)
{}

void r600_select_td(struct radeon_device *rdev,
		    enum r600_td td)
{}

void r600_set_vrc(struct radeon_device *rdev, u32 vrv)
{}

void r600_set_tpu(struct radeon_device *rdev, u32 u)
{}

void r600_set_tpc(struct radeon_device *rdev, u32 c)
{}

void r600_set_sstu(struct radeon_device *rdev, u32 u)
{}

void r600_set_sst(struct radeon_device *rdev, u32 t)
{}

void r600_set_git(struct radeon_device *rdev, u32 t)
{}

void r600_set_fctu(struct radeon_device *rdev, u32 u)
{}

void r600_set_fct(struct radeon_device *rdev, u32 t)
{}

void r600_set_ctxcgtt3d_rphc(struct radeon_device *rdev, u32 p)
{}

void r600_set_ctxcgtt3d_rsdc(struct radeon_device *rdev, u32 s)
{}

void r600_set_vddc3d_oorsu(struct radeon_device *rdev, u32 u)
{}

void r600_set_vddc3d_oorphc(struct radeon_device *rdev, u32 p)
{}

void r600_set_vddc3d_oorsdc(struct radeon_device *rdev, u32 s)
{}

void r600_set_mpll_lock_time(struct radeon_device *rdev, u32 lock_time)
{}

void r600_set_mpll_reset_time(struct radeon_device *rdev, u32 reset_time)
{}

void r600_engine_clock_entry_enable(struct radeon_device *rdev,
				    u32 index, bool enable)
{}

void r600_engine_clock_entry_enable_pulse_skipping(struct radeon_device *rdev,
						   u32 index, bool enable)
{}

void r600_engine_clock_entry_enable_post_divider(struct radeon_device *rdev,
						 u32 index, bool enable)
{}

void r600_engine_clock_entry_set_post_divider(struct radeon_device *rdev,
					      u32 index, u32 divider)
{}

void r600_engine_clock_entry_set_reference_divider(struct radeon_device *rdev,
						   u32 index, u32 divider)
{}

void r600_engine_clock_entry_set_feedback_divider(struct radeon_device *rdev,
						  u32 index, u32 divider)
{}

void r600_engine_clock_entry_set_step_time(struct radeon_device *rdev,
					   u32 index, u32 step_time)
{}

void r600_vid_rt_set_ssu(struct radeon_device *rdev, u32 u)
{}

void r600_vid_rt_set_vru(struct radeon_device *rdev, u32 u)
{}

void r600_vid_rt_set_vrt(struct radeon_device *rdev, u32 rt)
{}

void r600_voltage_control_enable_pins(struct radeon_device *rdev,
				      u64 mask)
{}


void r600_voltage_control_program_voltages(struct radeon_device *rdev,
					   enum r600_power_level index, u64 pins)
{}

void r600_voltage_control_deactivate_static_control(struct radeon_device *rdev,
						    u64 mask)
{}

void r600_power_level_enable(struct radeon_device *rdev,
			     enum r600_power_level index, bool enable)
{}

void r600_power_level_set_voltage_index(struct radeon_device *rdev,
					enum r600_power_level index, u32 voltage_index)
{}

void r600_power_level_set_mem_clock_index(struct radeon_device *rdev,
					  enum r600_power_level index, u32 mem_clock_index)
{}

void r600_power_level_set_eng_clock_index(struct radeon_device *rdev,
					  enum r600_power_level index, u32 eng_clock_index)
{}

void r600_power_level_set_watermark_id(struct radeon_device *rdev,
				       enum r600_power_level index,
				       enum r600_display_watermark watermark_id)
{}

void r600_power_level_set_pcie_gen2(struct radeon_device *rdev,
				    enum r600_power_level index, bool compatible)
{}

enum r600_power_level r600_power_level_get_current_index(struct radeon_device *rdev)
{}

enum r600_power_level r600_power_level_get_target_index(struct radeon_device *rdev)
{}

void r600_power_level_set_enter_index(struct radeon_device *rdev,
				      enum r600_power_level index)
{}

void r600_wait_for_power_level_unequal(struct radeon_device *rdev,
				       enum r600_power_level index)
{}

void r600_wait_for_power_level(struct radeon_device *rdev,
			       enum r600_power_level index)
{}

void r600_start_dpm(struct radeon_device *rdev)
{}

void r600_stop_dpm(struct radeon_device *rdev)
{}

int r600_dpm_pre_set_power_state(struct radeon_device *rdev)
{}

void r600_dpm_post_set_power_state(struct radeon_device *rdev)
{}

bool r600_is_uvd_state(u32 class, u32 class2)
{}

static int r600_set_thermal_temperature_range(struct radeon_device *rdev,
					      int min_temp, int max_temp)
{}

bool r600_is_internal_thermal_sensor(enum radeon_int_thermal_type sensor)
{}

int r600_dpm_late_enable(struct radeon_device *rdev)
{}

power_info;

fan_info;

static int r600_parse_clk_voltage_dep_table(struct radeon_clock_voltage_dependency_table *radeon_table,
					    ATOM_PPLIB_Clock_Voltage_Dependency_Table *atom_table)
{}

int r600_get_platform_caps(struct radeon_device *rdev)
{}

/* 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

int r600_parse_extended_power_table(struct radeon_device *rdev)
{}

void r600_free_extended_power_table(struct radeon_device *rdev)
{}

enum radeon_pcie_gen r600_get_pcie_gen_support(struct radeon_device *rdev,
					       u32 sys_mask,
					       enum radeon_pcie_gen asic_gen,
					       enum radeon_pcie_gen default_gen)
{}

u16 r600_get_pcie_lane_support(struct radeon_device *rdev,
			       u16 asic_lanes,
			       u16 default_lanes)
{}

u8 r600_encode_pci_lane_width(u32 lanes)
{}