Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2017 Advanced Micro Devices, Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  *
0022  */
0023 
0024 #ifndef RAVEN_PP_SMC_H
0025 #define RAVEN_PP_SMC_H
0026 
0027 #pragma pack(push, 1)
0028 
0029 #define PPSMC_Result_OK                    0x1
0030 #define PPSMC_Result_Failed                0xFF
0031 #define PPSMC_Result_UnknownCmd            0xFE
0032 #define PPSMC_Result_CmdRejectedPrereq     0xFD
0033 #define PPSMC_Result_CmdRejectedBusy       0xFC
0034 
0035 #define PPSMC_MSG_TestMessage                   0x1
0036 #define PPSMC_MSG_GetSmuVersion                 0x2
0037 #define PPSMC_MSG_GetDriverIfVersion            0x3
0038 #define PPSMC_MSG_PowerUpGfx                    0x6
0039 #define PPSMC_MSG_EnableGfxOff                  0x7
0040 #define PPSMC_MSG_DisableGfxOff                 0x8
0041 #define PPSMC_MSG_PowerDownIspByTile            0x9
0042 #define PPSMC_MSG_PowerUpIspByTile              0xA
0043 #define PPSMC_MSG_PowerDownVcn                  0xB
0044 #define PPSMC_MSG_PowerUpVcn                    0xC
0045 #define PPSMC_MSG_PowerDownSdma                 0xD
0046 #define PPSMC_MSG_PowerUpSdma                   0xE
0047 #define PPSMC_MSG_SetHardMinIspclkByFreq        0xF
0048 #define PPSMC_MSG_SetHardMinVcn                 0x10
0049 #define PPSMC_MSG_SetMinDisplayClock            0x11
0050 #define PPSMC_MSG_SetHardMinFclkByFreq          0x12
0051 #define PPSMC_MSG_SetAllowFclkSwitch            0x13
0052 #define PPSMC_MSG_SetMinVideoGfxclkFreq         0x14
0053 #define PPSMC_MSG_ActiveProcessNotify           0x15
0054 #define PPSMC_MSG_SetCustomPolicy               0x16
0055 #define PPSMC_MSG_SetVideoFps                   0x17
0056 #define PPSMC_MSG_SetDisplayCount               0x18
0057 #define PPSMC_MSG_QueryPowerLimit               0x19
0058 #define PPSMC_MSG_SetDriverDramAddrHigh         0x1A
0059 #define PPSMC_MSG_SetDriverDramAddrLow          0x1B
0060 #define PPSMC_MSG_TransferTableSmu2Dram         0x1C
0061 #define PPSMC_MSG_TransferTableDram2Smu         0x1D
0062 #define PPSMC_MSG_DeviceDriverReset             0x1E
0063 #define PPSMC_MSG_SetGfxclkOverdriveByFreqVid   0x1F
0064 #define PPSMC_MSG_SetHardMinDcefclkByFreq       0x20
0065 #define PPSMC_MSG_SetHardMinSocclkByFreq        0x21
0066 #define PPSMC_MSG_SetMinVddcrSocVoltage         0x22
0067 #define PPSMC_MSG_SetMinVideoFclkFreq           0x23
0068 #define PPSMC_MSG_SetMinDeepSleepDcefclk        0x24
0069 #define PPSMC_MSG_ForcePowerDownGfx             0x25
0070 #define PPSMC_MSG_SetPhyclkVoltageByFreq        0x26
0071 #define PPSMC_MSG_SetDppclkVoltageByFreq        0x27
0072 #define PPSMC_MSG_SetSoftMinVcn                 0x28
0073 #define PPSMC_MSG_GetGfxclkFrequency            0x2A
0074 #define PPSMC_MSG_GetFclkFrequency              0x2B
0075 #define PPSMC_MSG_GetMinGfxclkFrequency         0x2C
0076 #define PPSMC_MSG_GetMaxGfxclkFrequency         0x2D
0077 #define PPSMC_MSG_SoftReset                     0x2E
0078 #define PPSMC_MSG_SetGfxCGPG            0x2F
0079 #define PPSMC_MSG_SetSoftMaxGfxClk              0x30
0080 #define PPSMC_MSG_SetHardMinGfxClk              0x31
0081 #define PPSMC_MSG_SetSoftMaxSocclkByFreq        0x32
0082 #define PPSMC_MSG_SetSoftMaxFclkByFreq          0x33
0083 #define PPSMC_MSG_SetSoftMaxVcn                 0x34
0084 #define PPSMC_MSG_PowerGateMmHub                0x35
0085 #define PPSMC_MSG_SetRccPfcPmeRestoreRegister   0x36
0086 #define PPSMC_MSG_GpuChangeState                0x37
0087 #define PPSMC_MSG_GetGfxBusy                    0x3D
0088 #define PPSMC_Message_Count                     0x42
0089 
0090 typedef uint16_t PPSMC_Result;
0091 typedef int      PPSMC_Msg;
0092 
0093 
0094 #pragma pack(pop)
0095 
0096 #endif