linux/drivers/gpu/drm/amd/pm/swsmu/smu_internal.h

/*
 * Copyright 2019 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.
 */

#ifndef __SMU_INTERNAL_H__
#define __SMU_INTERNAL_H__

#include "amdgpu_smu.h"

#if defined(SWSMU_CODE_LAYER_L1)

#define smu_ppt_funcs(intf, ret, smu, args...)

#define smu_init_microcode(smu)
#define smu_fini_microcode(smu)
#define smu_init_smc_tables(smu)
#define smu_fini_smc_tables(smu)
#define smu_init_power(smu)
#define smu_fini_power(smu)
#define smu_setup_pptable(smu)
#define smu_powergate_sdma(smu, gate)
#define smu_get_vbios_bootup_values(smu)
#define smu_check_fw_version(smu)
#define smu_write_pptable(smu)
#define smu_set_min_dcef_deep_sleep(smu, clk)
#define smu_set_driver_table_location(smu)
#define smu_set_tool_table_location(smu)
#define smu_notify_memory_pool_location(smu)
#define smu_gfx_off_control(smu, enable)
#define smu_get_gfx_off_status(smu)
#define smu_get_gfx_off_entrycount(smu, value)
#define smu_get_gfx_off_residency(smu, value)
#define smu_set_gfx_off_residency(smu, value)
#define smu_set_last_dcef_min_deep_sleep_clk(smu)
#define smu_system_features_control(smu, en)
#define smu_init_max_sustainable_clocks(smu)
#define smu_set_default_od_settings(smu)
#define smu_send_smc_msg_with_param(smu, msg, param, read_arg)
#define smu_send_smc_msg(smu, msg, read_arg)
#define smu_init_display_count(smu, count)
#define smu_feature_set_allowed_mask(smu)
#define smu_feature_get_enabled_mask(smu, mask)
#define smu_feature_is_enabled(smu, mask)
#define smu_disable_all_features_with_exception(smu, mask)
#define smu_is_dpm_running(smu)
#define smu_notify_display_change(smu)
#define smu_populate_umd_state_clk(smu)
#define smu_enable_thermal_alert(smu)
#define smu_disable_thermal_alert(smu)
#define smu_smc_read_sensor(smu, sensor, data, size)
#define smu_pre_display_config_changed(smu)
#define smu_display_config_changed(smu)
#define smu_apply_clocks_adjust_rules(smu)
#define smu_notify_smc_display_config(smu)
#define smu_run_btc(smu)
#define smu_get_allowed_feature_mask(smu, feature_mask, num)
#define smu_set_watermarks_table(smu, clock_ranges)
#define smu_thermal_temperature_range_update(smu, range, rw)
#define smu_register_irq_handler(smu)
#define smu_get_dpm_ultimate_freq(smu, param, min, max)
#define smu_asic_set_performance_level(smu, level)
#define smu_dump_pptable(smu)
#define smu_update_pcie_parameters(smu, pcie_gen_cap, pcie_width_cap)
#define smu_set_power_source(smu, power_src)
#define smu_i2c_init(smu)
#define smu_i2c_fini(smu)
#define smu_get_unique_id(smu)
#define smu_log_thermal_throttling(smu)
#define smu_get_asic_power_limits(smu, current, default, max, min)
#define smu_get_pp_feature_mask(smu, buf)
#define smu_set_pp_feature_mask(smu, new_mask)
#define smu_gfx_ulv_control(smu, enablement)
#define smu_deep_sleep_control(smu, enablement)
#define smu_get_fan_parameters(smu)
#define smu_post_init(smu)
#define smu_gpo_control(smu, enablement)
#define smu_set_fine_grain_gfx_freq_parameters(smu)
#define smu_get_default_config_table_settings(smu, config_table)
#define smu_set_config_table(smu, config_table)
#define smu_init_pptable_microcode(smu)
#define smu_notify_rlc_state(smu, en)
#define smu_is_asic_wbrf_supported(smu)
#define smu_enable_uclk_shadow(smu, enable)
#define smu_set_wbrf_exclusion_ranges(smu, freq_band_range)

#endif
#endif