linux/drivers/gpu/drm/amd/pm/powerplay/inc/smu10.h

/*
 * Copyright 2017 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 SMU10_H
#define SMU10_H

#pragma pack(push, 1)

#define ENABLE_DEBUG_FEATURES

/* Feature Control Defines */
#define FEATURE_CCLK_CONTROLLER_BIT
#define FEATURE_FAN_CONTROLLER_BIT
#define FEATURE_DATA_CALCULATION_BIT
#define FEATURE_PPT_BIT
#define FEATURE_TDC_BIT
#define FEATURE_THERMAL_BIT
#define FEATURE_FIT_BIT
#define FEATURE_EDC_BIT
#define FEATURE_PLL_POWER_DOWN_BIT
#define FEATURE_ULV_BIT
#define FEATURE_VDDOFF_BIT
#define FEATURE_VCN_DPM_BIT
#define FEATURE_ACP_DPM_BIT
#define FEATURE_ISP_DPM_BIT
#define FEATURE_FCLK_DPM_BIT
#define FEATURE_SOCCLK_DPM_BIT
#define FEATURE_MP0CLK_DPM_BIT
#define FEATURE_LCLK_DPM_BIT
#define FEATURE_SHUBCLK_DPM_BIT
#define FEATURE_DCEFCLK_DPM_BIT
#define FEATURE_GFX_DPM_BIT
#define FEATURE_DS_GFXCLK_BIT
#define FEATURE_DS_SOCCLK_BIT
#define FEATURE_DS_LCLK_BIT
#define FEATURE_DS_DCEFCLK_BIT
#define FEATURE_DS_SHUBCLK_BIT
#define FEATURE_RM_BIT
#define FEATURE_S0i2_BIT
#define FEATURE_WHISPER_MODE_BIT
#define FEATURE_DS_FCLK_BIT
#define FEATURE_DS_SMNCLK_BIT
#define FEATURE_DS_MP1CLK_BIT
#define FEATURE_DS_MP0CLK_BIT
#define FEATURE_MGCG_BIT
#define FEATURE_DS_FUSE_SRAM_BIT
#define FEATURE_GFX_CKS
#define FEATURE_PSI0_BIT
#define FEATURE_PROCHOT_BIT
#define FEATURE_CPUOFF_BIT
#define FEATURE_STAPM_BIT
#define FEATURE_CORE_CSTATES_BIT
#define FEATURE_SPARE_41_BIT
#define FEATURE_SPARE_42_BIT
#define FEATURE_SPARE_43_BIT
#define FEATURE_SPARE_44_BIT
#define FEATURE_SPARE_45_BIT
#define FEATURE_SPARE_46_BIT
#define FEATURE_SPARE_47_BIT
#define FEATURE_SPARE_48_BIT
#define FEATURE_SPARE_49_BIT
#define FEATURE_SPARE_50_BIT
#define FEATURE_SPARE_51_BIT
#define FEATURE_SPARE_52_BIT
#define FEATURE_SPARE_53_BIT
#define FEATURE_SPARE_54_BIT
#define FEATURE_SPARE_55_BIT
#define FEATURE_SPARE_56_BIT
#define FEATURE_SPARE_57_BIT
#define FEATURE_SPARE_58_BIT
#define FEATURE_SPARE_59_BIT
#define FEATURE_SPARE_60_BIT
#define FEATURE_SPARE_61_BIT
#define FEATURE_SPARE_62_BIT
#define FEATURE_SPARE_63_BIT

#define NUM_FEATURES

#define FEATURE_CCLK_CONTROLLER_MASK
#define FEATURE_FAN_CONTROLLER_MASK
#define FEATURE_DATA_CALCULATION_MASK
#define FEATURE_PPT_MASK
#define FEATURE_TDC_MASK
#define FEATURE_THERMAL_MASK
#define FEATURE_FIT_MASK
#define FEATURE_EDC_MASK
#define FEATURE_PLL_POWER_DOWN_MASK
#define FEATURE_ULV_MASK
#define FEATURE_VDDOFF_MASK
#define FEATURE_VCN_DPM_MASK
#define FEATURE_ACP_DPM_MASK
#define FEATURE_ISP_DPM_MASK
#define FEATURE_FCLK_DPM_MASK
#define FEATURE_SOCCLK_DPM_MASK
#define FEATURE_MP0CLK_DPM_MASK
#define FEATURE_LCLK_DPM_MASK
#define FEATURE_SHUBCLK_DPM_MASK
#define FEATURE_DCEFCLK_DPM_MASK
#define FEATURE_GFX_DPM_MASK
#define FEATURE_DS_GFXCLK_MASK
#define FEATURE_DS_SOCCLK_MASK
#define FEATURE_DS_LCLK_MASK
#define FEATURE_DS_DCEFCLK_MASK
#define FEATURE_DS_SHUBCLK_MASK
#define FEATURE_RM_MASK
#define FEATURE_DS_FCLK_MASK
#define FEATURE_DS_SMNCLK_MASK
#define FEATURE_DS_MP1CLK_MASK
#define FEATURE_DS_MP0CLK_MASK
#define FEATURE_MGCG_MASK
#define FEATURE_DS_FUSE_SRAM_MASK
#define FEATURE_PSI0_MASK
#define FEATURE_STAPM_MASK
#define FEATURE_PROCHOT_MASK
#define FEATURE_CPUOFF_MASK
#define FEATURE_CORE_CSTATES_MASK

/* Workload bits */
#define WORKLOAD_PPLIB_FULL_SCREEN_3D_BIT
#define WORKLOAD_PPLIB_VIDEO_BIT
#define WORKLOAD_PPLIB_VR_BIT
#define WORKLOAD_PPLIB_COMPUTE_BIT
#define WORKLOAD_PPLIB_CUSTOM_BIT
#define WORKLOAD_PPLIB_COUNT

FwStatus_t;

#define TABLE_BIOS_IF
#define TABLE_WATERMARKS
#define TABLE_CUSTOM_DPM
#define TABLE_PMSTATUSLOG
#define TABLE_DPMCLOCKS
#define TABLE_MOMENTARY_PM
#define TABLE_COUNT

#pragma pack(pop)

#endif