14d55b0ddSBhawanpreet Lakha /* 24d55b0ddSBhawanpreet Lakha * Copyright 2020 Advanced Micro Devices, Inc. 34d55b0ddSBhawanpreet Lakha * 44d55b0ddSBhawanpreet Lakha * Permission is hereby granted, free of charge, to any person obtaining a 54d55b0ddSBhawanpreet Lakha * copy of this software and associated documentation files (the "Software"), 64d55b0ddSBhawanpreet Lakha * to deal in the Software without restriction, including without limitation 74d55b0ddSBhawanpreet Lakha * the rights to use, copy, modify, merge, publish, distribute, sublicense, 84d55b0ddSBhawanpreet Lakha * and/or sell copies of the Software, and to permit persons to whom the 94d55b0ddSBhawanpreet Lakha * Software is furnished to do so, subject to the following conditions: 104d55b0ddSBhawanpreet Lakha * 114d55b0ddSBhawanpreet Lakha * The above copyright notice and this permission notice shall be included in 124d55b0ddSBhawanpreet Lakha * all copies or substantial portions of the Software. 134d55b0ddSBhawanpreet Lakha * 144d55b0ddSBhawanpreet Lakha * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 154d55b0ddSBhawanpreet Lakha * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 164d55b0ddSBhawanpreet Lakha * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 174d55b0ddSBhawanpreet Lakha * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 184d55b0ddSBhawanpreet Lakha * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 194d55b0ddSBhawanpreet Lakha * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 204d55b0ddSBhawanpreet Lakha * OTHER DEALINGS IN THE SOFTWARE. 214d55b0ddSBhawanpreet Lakha * 224d55b0ddSBhawanpreet Lakha * Authors: AMD 234d55b0ddSBhawanpreet Lakha * 244d55b0ddSBhawanpreet Lakha */ 254d55b0ddSBhawanpreet Lakha 264d55b0ddSBhawanpreet Lakha // TEMPORARY until this exists in the proper location 274d55b0ddSBhawanpreet Lakha #ifndef DALSMC_H 284d55b0ddSBhawanpreet Lakha #define DALSMC_H 294d55b0ddSBhawanpreet Lakha 304d55b0ddSBhawanpreet Lakha #define DALSMC_VERSION 0x1 314d55b0ddSBhawanpreet Lakha 324d55b0ddSBhawanpreet Lakha // SMU Response Codes: 334d55b0ddSBhawanpreet Lakha #define DALSMC_Result_OK 0x1 344d55b0ddSBhawanpreet Lakha #define DALSMC_Result_Failed 0xFF 354d55b0ddSBhawanpreet Lakha #define DALSMC_Result_UnknownCmd 0xFE 364d55b0ddSBhawanpreet Lakha #define DALSMC_Result_CmdRejectedPrereq 0xFD 374d55b0ddSBhawanpreet Lakha #define DALSMC_Result_CmdRejectedBusy 0xFC 384d55b0ddSBhawanpreet Lakha 394d55b0ddSBhawanpreet Lakha 404d55b0ddSBhawanpreet Lakha 414d55b0ddSBhawanpreet Lakha // Message Definitions: 424d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_TestMessage 0x1 434d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_GetSmuVersion 0x2 444d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_GetDriverIfVersion 0x3 454d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_GetMsgHeaderVersion 0x4 464d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_SetDalDramAddrHigh 0x5 474d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_SetDalDramAddrLow 0x6 484d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_TransferTableSmu2Dram 0x7 494d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_TransferTableDram2Smu 0x8 504d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_SetHardMinByFreq 0x9 514d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_SetHardMaxByFreq 0xA 524d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_GetDpmFreqByIndex 0xB 534d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_GetDcModeMaxDpmFreq 0xC 544d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_SetMinDeepSleepDcefclk 0xD 554d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_NumOfDisplays 0xE 56*52f2e83eSBhawanpreet Lakha #define DALSMC_MSG_SetDisplayRefreshFromMall 0xF 574d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_SetExternalClientDfCstateAllow 0x10 584d55b0ddSBhawanpreet Lakha #define DALSMC_MSG_BacoAudioD3PME 0x11 594d55b0ddSBhawanpreet Lakha #define DALSMC_Message_Count 0x12 604d55b0ddSBhawanpreet Lakha 614d55b0ddSBhawanpreet Lakha #endif 62