linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v11_5_ppsmc.h

/*
 * Copyright 2020 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_11_5_0_PPSMC_H
#define SMU_11_5_0_PPSMC_H

// SMU Response Codes:
#define PPSMC_Result_OK
#define PPSMC_Result_Failed
#define PPSMC_Result_UnknownCmd
#define PPSMC_Result_CmdRejectedPrereq
#define PPSMC_Result_CmdRejectedBusy

// Message Definitions:
#define PPSMC_MSG_TestMessage
#define PPSMC_MSG_GetSmuVersion
#define PPSMC_MSG_GetDriverIfVersion
#define PPSMC_MSG_EnableGfxOff
#define PPSMC_MSG_DisableGfxOff
#define PPSMC_MSG_PowerDownIspByTile
#define PPSMC_MSG_PowerUpIspByTile
#define PPSMC_MSG_PowerDownVcn
#define PPSMC_MSG_PowerUpVcn
#define PPSMC_MSG_RlcPowerNotify
#define PPSMC_MSG_SetHardMinVcn
#define PPSMC_MSG_SetSoftMinGfxclk
#define PPSMC_MSG_ActiveProcessNotify
#define PPSMC_MSG_SetHardMinIspiclkByFreq
#define PPSMC_MSG_SetHardMinIspxclkByFreq
#define PPSMC_MSG_SetDriverDramAddrHigh
#define PPSMC_MSG_SetDriverDramAddrLow
#define PPSMC_MSG_TransferTableSmu2Dram
#define PPSMC_MSG_TransferTableDram2Smu
#define PPSMC_MSG_GfxDeviceDriverReset
#define PPSMC_MSG_GetEnabledSmuFeatures
#define PPSMC_MSG_spare1
#define PPSMC_MSG_SetHardMinSocclkByFreq
#define PPSMC_MSG_SetSoftMinFclk
#define PPSMC_MSG_SetSoftMinVcn
#define PPSMC_MSG_EnablePostCode
#define PPSMC_MSG_GetGfxclkFrequency
#define PPSMC_MSG_GetFclkFrequency
#define PPSMC_MSG_AllowGfxOff
#define PPSMC_MSG_DisallowGfxOff
#define PPSMC_MSG_SetSoftMaxGfxClk
#define PPSMC_MSG_SetHardMinGfxClk
#define PPSMC_MSG_SetSoftMaxSocclkByFreq
#define PPSMC_MSG_SetSoftMaxFclkByFreq
#define PPSMC_MSG_SetSoftMaxVcn
#define PPSMC_MSG_spare2
#define PPSMC_MSG_SetPowerLimitPercentage
#define PPSMC_MSG_PowerDownJpeg
#define PPSMC_MSG_PowerUpJpeg
#define PPSMC_MSG_SetHardMinFclkByFreq
#define PPSMC_MSG_SetSoftMinSocclkByFreq
#define PPSMC_MSG_PowerUpCvip
#define PPSMC_MSG_PowerDownCvip
#define PPSMC_MSG_GetPptLimit
#define PPSMC_MSG_GetThermalLimit
#define PPSMC_MSG_GetCurrentTemperature
#define PPSMC_MSG_GetCurrentPower
#define PPSMC_MSG_GetCurrentVoltage
#define PPSMC_MSG_GetCurrentCurrent
#define PPSMC_MSG_GetAverageCpuActivity
#define PPSMC_MSG_GetAverageGfxActivity
#define PPSMC_MSG_GetAveragePower
#define PPSMC_MSG_GetAverageTemperature
#define PPSMC_MSG_SetAveragePowerTimeConstant
#define PPSMC_MSG_SetAverageActivityTimeConstant
#define PPSMC_MSG_SetAverageTemperatureTimeConstant
#define PPSMC_MSG_SetMitigationEndHysteresis
#define PPSMC_MSG_GetCurrentFreq
#define PPSMC_MSG_SetReducedPptLimit
#define PPSMC_MSG_SetReducedThermalLimit
#define PPSMC_MSG_DramLogSetDramAddr
#define PPSMC_MSG_StartDramLogging
#define PPSMC_MSG_StopDramLogging
#define PPSMC_MSG_SetSoftMinCclk
#define PPSMC_MSG_SetSoftMaxCclk
#define PPSMC_MSG_SetDfPstateActiveLevel
#define PPSMC_MSG_SetDfPstateSoftMinLevel
#define PPSMC_MSG_SetCclkPolicy
#define PPSMC_MSG_DramLogSetDramAddrHigh
#define PPSMC_MSG_DramLogSetDramBufferSize
#define PPSMC_MSG_RequestActiveWgp
#define PPSMC_MSG_QueryActiveWgp
#define PPSMC_MSG_SetFastPPTLimit
#define PPSMC_MSG_SetSlowPPTLimit
#define PPSMC_MSG_GetFastPPTLimit
#define PPSMC_MSG_GetSlowPPTLimit
#define PPSMC_MSG_GetGfxOffStatus
#define PPSMC_MSG_GetGfxOffEntryCount
#define PPSMC_MSG_LogGfxOffResidency
#define PPSMC_Message_Count

//Argument for PPSMC_MSG_GfxDeviceDriverReset
enum {};

#endif