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

/*
 * Copyright 2023 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_V14_0_0_PPSMC_H__
#define __SMU_V14_0_0_PPSMC_H__

/*! @mainpage PMFW-PPS (PPLib) Message Interface
  This documentation contains the subsections:\n\n
  @ref ResponseCodes\n
  @ref definitions\n
  @ref enums\n
*/

/** @def PPS_PMFW_IF_VER
* PPS (PPLib) to PMFW IF version 1.0
*/
#define PPS_PMFW_IF_VER

/** @defgroup ResponseCodes PMFW Response Codes
*  @{
*/
// SMU Response Codes:
#define PPSMC_Result_OK
#define PPSMC_Result_Failed
#define PPSMC_Result_UnknownCmd
#define PPSMC_Result_CmdRejectedPrereq
#define PPSMC_Result_CmdRejectedBusy
/** @}*/

/** @defgroup definitions Message definitions
*  @{
*/
// Message Definitions:
#define PPSMC_MSG_TestMessage
#define PPSMC_MSG_GetPmfwVersion
#define PPSMC_MSG_GetDriverIfVersion
#define PPSMC_MSG_PowerDownVcn1
#define PPSMC_MSG_PowerUpVcn1
#define PPSMC_MSG_PowerDownVcn0
#define PPSMC_MSG_PowerUpVcn0
#define PPSMC_MSG_SetHardMinVcn0
#define PPSMC_MSG_SetSoftMinGfxclk
#define PPSMC_MSG_SetHardMinVcn1
#define PPSMC_MSG_SetSoftMinVcn1
#define PPSMC_MSG_PrepareMp1ForUnload
#define PPSMC_MSG_SetDriverDramAddrHigh
#define PPSMC_MSG_SetDriverDramAddrLow
#define PPSMC_MSG_TransferTableSmu2Dram
#define PPSMC_MSG_TransferTableDram2Smu
#define PPSMC_MSG_GfxDeviceDriverReset
#define PPSMC_MSG_GetEnabledSmuFeatures
#define PPSMC_MSG_SetHardMinSocclkByFreq
#define PPSMC_MSG_SetSoftMinFclk
#define PPSMC_MSG_SetSoftMinVcn0
#define PPSMC_MSG_EnableGfxImu
#define PPSMC_MSG_spare_0x17
#define PPSMC_MSG_spare_0x18
#define PPSMC_MSG_AllowGfxOff
#define PPSMC_MSG_DisallowGfxOff
#define PPSMC_MSG_SetSoftMaxGfxClk
#define PPSMC_MSG_SetHardMinGfxClk
#define PPSMC_MSG_SetSoftMaxSocclkByFreq
#define PPSMC_MSG_SetSoftMaxFclkByFreq
#define PPSMC_MSG_SetSoftMaxVcn0
#define PPSMC_MSG_spare_0x20
#define PPSMC_MSG_PowerDownJpeg0
#define PPSMC_MSG_PowerUpJpeg0
#define PPSMC_MSG_SetHardMinFclkByFreq
#define PPSMC_MSG_SetSoftMinSocclkByFreq
#define PPSMC_MSG_AllowZstates
#define PPSMC_MSG_PowerDownJpeg1
#define PPSMC_MSG_PowerUpJpeg1
#define PPSMC_MSG_SetSoftMaxVcn1
#define PPSMC_MSG_PowerDownIspByTile
#define PPSMC_MSG_PowerUpIspByTile
#define PPSMC_MSG_SetHardMinIspiclkByFreq
#define PPSMC_MSG_SetHardMinIspxclkByFreq
#define PPSMC_MSG_PowerDownUmsch
#define PPSMC_MSG_PowerUpUmsch
#define PPSMC_Message_IspStutterOn_MmhubPgDis
#define PPSMC_Message_IspStutterOff_MmhubPgEn
#define PPSMC_MSG_PowerUpVpe
#define PPSMC_MSG_PowerDownVpe
#define PPSMC_MSG_GetVpeDpmTable
#define PPSMC_MSG_EnableLSdma
#define PPSMC_MSG_DisableLSdma
#define PPSMC_MSG_SetSoftMaxVpe
#define PPSMC_MSG_SetSoftMinVpe
#define PPSMC_MSG_MALLPowerController
#define PPSMC_MSG_MALLPowerState
#define PPSMC_Message_Count
/** @}*/

/**
* @defgroup enums Enum Definitions
*  @{
*/

/** @enum Mode_Reset_e
* Mode reset type, argument for PPSMC_MSG_GfxDeviceDriverReset
*/
//argument for PPSMC_MSG_GfxDeviceDriverReset
Mode_Reset_e;

/** @}*/

/** @enum ZStates_e
* Zstate types, argument for PPSMC_MSG_AllowZstates
*/
//Argument for PPSMC_MSG_AllowZstates
ZStates_e;

/** @}*/
#endif