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

/*
 * Copyright 2021 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_V13_0_7_PPSMC_H
#define SMU_V13_0_7_PPSMC_H

#define PPSMC_VERSION

// 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:
// BASIC
#define PPSMC_MSG_TestMessage
#define PPSMC_MSG_GetSmuVersion
#define PPSMC_MSG_GetDriverIfVersion
#define PPSMC_MSG_SetAllowedFeaturesMaskLow
#define PPSMC_MSG_SetAllowedFeaturesMaskHigh
#define PPSMC_MSG_EnableAllSmuFeatures
#define PPSMC_MSG_DisableAllSmuFeatures
#define PPSMC_MSG_EnableSmuFeaturesLow
#define PPSMC_MSG_EnableSmuFeaturesHigh
#define PPSMC_MSG_DisableSmuFeaturesLow
#define PPSMC_MSG_DisableSmuFeaturesHigh
#define PPSMC_MSG_GetRunningSmuFeaturesLow
#define PPSMC_MSG_GetRunningSmuFeaturesHigh
#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

//BACO/BAMACO/BOMACO
#define PPSMC_MSG_EnterBaco
#define PPSMC_MSG_ExitBaco
#define PPSMC_MSG_ArmD3
#define PPSMC_MSG_BacoAudioD3PME

//DPM
#define PPSMC_MSG_SetSoftMinByFreq
#define PPSMC_MSG_SetSoftMaxByFreq
#define PPSMC_MSG_SetHardMinByFreq
#define PPSMC_MSG_SetHardMaxByFreq
#define PPSMC_MSG_GetMinDpmFreq
#define PPSMC_MSG_GetMaxDpmFreq
#define PPSMC_MSG_GetDpmFreqByIndex
#define PPSMC_MSG_OverridePcieParameters

//DramLog Set DramAddr
#define PPSMC_MSG_DramLogSetDramAddrHigh
#define PPSMC_MSG_DramLogSetDramAddrLow
#define PPSMC_MSG_DramLogSetDramSize
#define PPSMC_MSG_SetWorkloadMask

#define PPSMC_MSG_GetVoltageByDpm
#define PPSMC_MSG_SetVideoFps
#define PPSMC_MSG_GetDcModeMaxDpmFreq

//Power Gating
#define PPSMC_MSG_AllowGfxOff
#define PPSMC_MSG_DisallowGfxOff
#define PPSMC_MSG_PowerUpVcn
#define PPSMC_MSG_PowerDownVcn
#define PPSMC_MSG_PowerUpJpeg
#define PPSMC_MSG_PowerDownJpeg

//Resets
#define PPSMC_MSG_PrepareMp1ForUnload
#define PPSMC_MSG_Mode1Reset

//Set SystemVirtual DramAddrHigh
#define PPSMC_MSG_SetSystemVirtualDramAddrHigh
#define PPSMC_MSG_SetSystemVirtualDramAddrLow
//ACDC Power Source
#define PPSMC_MSG_SetPptLimit
#define PPSMC_MSG_GetPptLimit
#define PPSMC_MSG_ReenableAcDcInterrupt
#define PPSMC_MSG_NotifyPowerSource

//BTC
#define PPSMC_MSG_RunDcBtc

//                                               0x37

//Others
#define PPSMC_MSG_SetTemperatureInputSelect
#define PPSMC_MSG_SetFwDstatesMask
#define PPSMC_MSG_SetThrottlerMask

#define PPSMC_MSG_SetExternalClientDfCstateAllow

#define PPSMC_MSG_SetMGpuFanBoostLimitRpm

//STB to dram log
#define PPSMC_MSG_DumpSTBtoDram
#define PPSMC_MSG_STBtoDramLogSetDramAddrHigh
#define PPSMC_MSG_STBtoDramLogSetDramAddrLow
#define PPSMC_MSG_STBtoDramLogSetDramSize

#define PPSMC_MSG_SetGpoAllow
#define PPSMC_MSG_AllowGfxDcs
#define PPSMC_MSG_DisallowGfxDcs
#define PPSMC_MSG_EnableAudioStutterWA
#define PPSMC_MSG_PowerUpUmsch
#define PPSMC_MSG_PowerDownUmsch
#define PPSMC_MSG_SetDcsArch
#define PPSMC_MSG_TriggerVFFLR
#define PPSMC_MSG_SetNumBadMemoryPagesRetired
#define PPSMC_MSG_SetBadMemoryPagesRetiredFlagsPerChannel
#define PPSMC_MSG_SetPriorityDeltaGain
#define PPSMC_MSG_AllowIHHostInterrupt
#define PPSMC_MSG_EnableUCLKShadow
#define PPSMC_Message_Count

#endif