linux/drivers/gpu/drm/amd/pm/powerplay/inc/rv_ppsmc.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 RAVEN_PP_SMC_H
#define RAVEN_PP_SMC_H

#pragma pack(push, 1)

#define PPSMC_Result_OK
#define PPSMC_Result_Failed
#define PPSMC_Result_UnknownCmd
#define PPSMC_Result_CmdRejectedPrereq
#define PPSMC_Result_CmdRejectedBusy

#define PPSMC_MSG_TestMessage
#define PPSMC_MSG_GetSmuVersion
#define PPSMC_MSG_GetDriverIfVersion
#define PPSMC_MSG_PowerUpGfx
#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_PowerDownSdma
#define PPSMC_MSG_PowerUpSdma
#define PPSMC_MSG_SetHardMinIspclkByFreq
#define PPSMC_MSG_SetHardMinVcn
#define PPSMC_MSG_SetMinDisplayClock
#define PPSMC_MSG_SetHardMinFclkByFreq
#define PPSMC_MSG_SetAllowFclkSwitch
#define PPSMC_MSG_SetMinVideoGfxclkFreq
#define PPSMC_MSG_ActiveProcessNotify
#define PPSMC_MSG_SetCustomPolicy
#define PPSMC_MSG_SetVideoFps
#define PPSMC_MSG_SetDisplayCount
#define PPSMC_MSG_QueryPowerLimit
#define PPSMC_MSG_SetDriverDramAddrHigh
#define PPSMC_MSG_SetDriverDramAddrLow
#define PPSMC_MSG_TransferTableSmu2Dram
#define PPSMC_MSG_TransferTableDram2Smu
#define PPSMC_MSG_DeviceDriverReset
#define PPSMC_MSG_SetGfxclkOverdriveByFreqVid
#define PPSMC_MSG_SetHardMinDcefclkByFreq
#define PPSMC_MSG_SetHardMinSocclkByFreq
#define PPSMC_MSG_SetMinVddcrSocVoltage
#define PPSMC_MSG_SetMinVideoFclkFreq
#define PPSMC_MSG_SetMinDeepSleepDcefclk
#define PPSMC_MSG_ForcePowerDownGfx
#define PPSMC_MSG_SetPhyclkVoltageByFreq
#define PPSMC_MSG_SetDppclkVoltageByFreq
#define PPSMC_MSG_SetSoftMinVcn
#define PPSMC_MSG_GetGfxclkFrequency
#define PPSMC_MSG_GetFclkFrequency
#define PPSMC_MSG_GetMinGfxclkFrequency
#define PPSMC_MSG_GetMaxGfxclkFrequency
#define PPSMC_MSG_SoftReset
#define PPSMC_MSG_SetGfxCGPG
#define PPSMC_MSG_SetSoftMaxGfxClk
#define PPSMC_MSG_SetHardMinGfxClk
#define PPSMC_MSG_SetSoftMaxSocclkByFreq
#define PPSMC_MSG_SetSoftMaxFclkByFreq
#define PPSMC_MSG_SetSoftMaxVcn
#define PPSMC_MSG_PowerGateMmHub
#define PPSMC_MSG_SetRccPfcPmeRestoreRegister
#define PPSMC_MSG_GpuChangeState
#define PPSMC_MSG_GetGfxBusy
#define PPSMC_Message_Count

PPSMC_Result;
PPSMC_Msg;


#pragma pack(pop)

#endif