linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_6_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_13_0_6_PPSMC_H
#define SMU_13_0_6_PPSMC_H

// 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:
#define PPSMC_MSG_TestMessage
#define PPSMC_MSG_GetSmuVersion
#define PPSMC_MSG_GfxDriverReset
#define PPSMC_MSG_GetDriverIfVersion
#define PPSMC_MSG_EnableAllSmuFeatures
#define PPSMC_MSG_DisableAllSmuFeatures
#define PPSMC_MSG_RequestI2cTransaction
#define PPSMC_MSG_GetMetricsVersion
#define PPSMC_MSG_GetMetricsTable
#define PPSMC_MSG_GetEccInfoTable
#define PPSMC_MSG_GetEnabledSmuFeaturesLow
#define PPSMC_MSG_GetEnabledSmuFeaturesHigh
#define PPSMC_MSG_SetDriverDramAddrHigh
#define PPSMC_MSG_SetDriverDramAddrLow
#define PPSMC_MSG_SetToolsDramAddrHigh
#define PPSMC_MSG_SetToolsDramAddrLow
#define PPSMC_MSG_SetSystemVirtualDramAddrHigh
#define PPSMC_MSG_SetSystemVirtualDramAddrLow
#define PPSMC_MSG_SetSoftMinByFreq
#define PPSMC_MSG_SetSoftMaxByFreq
#define PPSMC_MSG_GetMinDpmFreq
#define PPSMC_MSG_GetMaxDpmFreq
#define PPSMC_MSG_GetDpmFreqByIndex
#define PPSMC_MSG_SetPptLimit
#define PPSMC_MSG_GetPptLimit
#define PPSMC_MSG_DramLogSetDramAddrHigh
#define PPSMC_MSG_DramLogSetDramAddrLow
#define PPSMC_MSG_DramLogSetDramSize
#define PPSMC_MSG_GetDebugData
#define PPSMC_MSG_HeavySBR
#define PPSMC_MSG_SetNumBadHbmPagesRetired
#define PPSMC_MSG_DFCstateControl
#define PPSMC_MSG_GetGmiPwrDnHyst
#define PPSMC_MSG_SetGmiPwrDnHyst
#define PPSMC_MSG_GmiPwrDnControl
#define PPSMC_MSG_EnterGfxoff
#define PPSMC_MSG_ExitGfxoff
#define PPSMC_MSG_EnableDeterminism
#define PPSMC_MSG_DisableDeterminism
#define PPSMC_MSG_DumpSTBtoDram
#define PPSMC_MSG_STBtoDramLogSetDramAddrHigh
#define PPSMC_MSG_STBtoDramLogSetDramAddrLow
#define PPSMC_MSG_STBtoDramLogSetDramSize
#define PPSMC_MSG_SetSystemVirtualSTBtoDramAddrHigh
#define PPSMC_MSG_SetSystemVirtualSTBtoDramAddrLow
#define PPSMC_MSG_GfxDriverResetRecovery
#define PPSMC_MSG_TriggerVFFLR
#define PPSMC_MSG_SetSoftMinGfxClk
#define PPSMC_MSG_SetSoftMaxGfxClk
#define PPSMC_MSG_GetMinGfxDpmFreq
#define PPSMC_MSG_GetMaxGfxDpmFreq
#define PPSMC_MSG_PrepareForDriverUnload
#define PPSMC_MSG_ReadThrottlerLimit
#define PPSMC_MSG_QueryValidMcaCount
#define PPSMC_MSG_McaBankDumpDW
#define PPSMC_MSG_GetCTFLimit
#define PPSMC_MSG_ClearMcaOnRead
#define PPSMC_MSG_QueryValidMcaCeCount
#define PPSMC_MSG_McaBankCeDumpDW
#define PPSMC_MSG_SelectPLPDMode
#define PPSMC_MSG_RmaDueToBadPageThreshold
#define PPSMC_MSG_SelectPstatePolicy
#define PPSMC_Message_Count

//PPSMC Reset Types for driver msg argument
#define PPSMC_RESET_TYPE_DRIVER_MODE_1_RESET
#define PPSMC_RESET_TYPE_DRIVER_MODE_2_RESET
#define PPSMC_RESET_TYPE_DRIVER_MODE_3_RESET

//PPSMC Reset Types for driver msg argument
#define PPSMC_THROTTLING_LIMIT_TYPE_SOCKET
#define PPSMC_THROTTLING_LIMIT_TYPE_HBM

//CTF/Throttle Limit types
#define PPSMC_AID_THM_TYPE
#define PPSMC_CCD_THM_TYPE
#define PPSMC_XCD_THM_TYPE
#define PPSMC_HBM_THM_TYPE

//PLPD modes
#define PPSMC_PLPD_MODE_DEFAULT
#define PPSMC_PLPD_MODE_OPTIMIZED

PPSMC_Result;
PPSMC_MSG;

#endif