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

/*
 * Copyright 2016 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 PP_SMC_H
#define PP_SMC_H

#pragma pack(push, 1)

#define SMU_UCODE_VERSION

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

PPSMC_Result;

/* Message Definitions */
#define PPSMC_MSG_TestMessage
#define PPSMC_MSG_GetSmuVersion
#define PPSMC_MSG_GetDriverIfVersion
#define PPSMC_MSG_EnableSmuFeatures
#define PPSMC_MSG_DisableSmuFeatures
#define PPSMC_MSG_GetEnabledSmuFeatures
#define PPSMC_MSG_SetWorkloadMask
#define PPSMC_MSG_SetPptLimit
#define PPSMC_MSG_SetDriverDramAddrHigh
#define PPSMC_MSG_SetDriverDramAddrLow
#define PPSMC_MSG_SetToolsDramAddrHigh
#define PPSMC_MSG_SetToolsDramAddrLow
#define PPSMC_MSG_TransferTableSmu2Dram
#define PPSMC_MSG_TransferTableDram2Smu
#define PPSMC_MSG_UseDefaultPPTable
#define PPSMC_MSG_UseBackupPPTable
#define PPSMC_MSG_RunBtc
#define PPSMC_MSG_RequestI2CBus
#define PPSMC_MSG_ReleaseI2CBus
#define PPSMC_MSG_ConfigureTelemetry
#define PPSMC_MSG_SetUlvIpMask
#define PPSMC_MSG_SetSocVidOffset
#define PPSMC_MSG_SetMemVidOffset
#define PPSMC_MSG_GetSocVidOffset
#define PPSMC_MSG_GetMemVidOffset
#define PPSMC_MSG_SetFloorSocVoltage
#define PPSMC_MSG_SoftReset
#define PPSMC_MSG_StartBacoMonitor
#define PPSMC_MSG_CancelBacoMonitor
#define PPSMC_MSG_EnterBaco
#define PPSMC_MSG_AllowLowGfxclkInterrupt
#define PPSMC_MSG_SetLowGfxclkInterruptThreshold
#define PPSMC_MSG_SetSoftMinGfxclkByIndex
#define PPSMC_MSG_SetSoftMaxGfxclkByIndex
#define PPSMC_MSG_GetCurrentGfxclkIndex
#define PPSMC_MSG_SetSoftMinUclkByIndex
#define PPSMC_MSG_SetSoftMaxUclkByIndex
#define PPSMC_MSG_GetCurrentUclkIndex
#define PPSMC_MSG_SetSoftMinUvdByIndex
#define PPSMC_MSG_SetSoftMaxUvdByIndex
#define PPSMC_MSG_GetCurrentUvdIndex
#define PPSMC_MSG_SetSoftMinVceByIndex
#define PPSMC_MSG_SetSoftMaxVceByIndex
#define PPSMC_MSG_SetHardMinVceByIndex
#define PPSMC_MSG_GetCurrentVceIndex
#define PPSMC_MSG_SetSoftMinSocclkByIndex
#define PPSMC_MSG_SetHardMinSocclkByIndex
#define PPSMC_MSG_SetSoftMaxSocclkByIndex
#define PPSMC_MSG_GetCurrentSocclkIndex
#define PPSMC_MSG_SetMinLinkDpmByIndex
#define PPSMC_MSG_GetCurrentLinkIndex
#define PPSMC_MSG_GetAverageGfxclkFrequency
#define PPSMC_MSG_GetAverageSocclkFrequency
#define PPSMC_MSG_GetAverageUclkFrequency
#define PPSMC_MSG_GetAverageGfxActivity
#define PPSMC_MSG_GetTemperatureEdge
#define PPSMC_MSG_GetTemperatureHotspot
#define PPSMC_MSG_GetTemperatureHBM
#define PPSMC_MSG_GetTemperatureVrSoc
#define PPSMC_MSG_GetTemperatureVrMem
#define PPSMC_MSG_GetTemperatureLiquid
#define PPSMC_MSG_GetTemperaturePlx
#define PPSMC_MSG_OverDriveSetPercentage
#define PPSMC_MSG_SetMinDeepSleepDcefclk
#define PPSMC_MSG_SwitchToAC
#define PPSMC_MSG_SetUclkFastSwitch
#define PPSMC_MSG_SetUclkDownHyst
#define PPSMC_MSG_RemoveDCClamp
#define PPSMC_MSG_GfxDeviceDriverReset
#define PPSMC_MSG_GetCurrentRpm
#define PPSMC_MSG_SetVideoFps
#define PPSMC_MSG_SetCustomGfxDpmParameters
#define PPSMC_MSG_SetTjMax
#define PPSMC_MSG_SetFanTemperatureTarget
#define PPSMC_MSG_PrepareMp1ForUnload
#define PPSMC_MSG_RequestDisplayClockByFreq
#define PPSMC_MSG_GetClockFreqMHz
#define PPSMC_MSG_DramLogSetDramAddrHigh
#define PPSMC_MSG_DramLogSetDramAddrLow
#define PPSMC_MSG_DramLogSetDramSize
#define PPSMC_MSG_SetFanMaxRpm
#define PPSMC_MSG_SetFanMinPwm
#define PPSMC_MSG_ConfigureGfxDidt
#define PPSMC_MSG_NumOfDisplays
#define PPSMC_MSG_ReadSerialNumTop32
#define PPSMC_MSG_ReadSerialNumBottom32
#define PPSMC_MSG_SetSystemVirtualDramAddrHigh
#define PPSMC_MSG_SetSystemVirtualDramAddrLow
#define PPSMC_MSG_RunAcgBtc
#define PPSMC_MSG_RunAcgInClosedLoop
#define PPSMC_MSG_RunAcgInOpenLoop
#define PPSMC_MSG_InitializeAcg
#define PPSMC_MSG_GetCurrPkgPwr
#define PPSMC_MSG_GetAverageGfxclkActualFrequency
#define PPSMC_MSG_SetPccThrottleLevel
#define PPSMC_MSG_UpdatePkgPwrPidAlpha
#define PPSMC_Message_Count


PPSMC_Msg;

#pragma pack(pop)

#endif