linux/drivers/gpu/drm/amd/pm/powerplay/inc/smu73_discrete.h

/*
 * Copyright 2015 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 _SMU73_DISCRETE_H_
#define _SMU73_DISCRETE_H_

#include "smu73.h"

#pragma pack(push, 1)

struct SMIO_Pattern {};

SMIO_Pattern;

struct SMIO_Table {};

SMIO_Table;

struct SMU73_Discrete_GraphicsLevel {};

SMU73_Discrete_GraphicsLevel;

struct SMU73_Discrete_ACPILevel {};

SMU73_Discrete_ACPILevel;

struct SMU73_Discrete_Ulv {};

SMU73_Discrete_Ulv;

struct SMU73_Discrete_MemoryLevel {};

SMU73_Discrete_MemoryLevel;

struct SMU73_Discrete_LinkLevel {};

SMU73_Discrete_LinkLevel;


// MC ARB DRAM Timing registers.
struct SMU73_Discrete_MCArbDramTimingTableEntry {};

SMU73_Discrete_MCArbDramTimingTableEntry;

struct SMU73_Discrete_MCArbDramTimingTable {};

SMU73_Discrete_MCArbDramTimingTable;

// UVD VCLK/DCLK state (level) definition.
struct SMU73_Discrete_UvdLevel {};

SMU73_Discrete_UvdLevel;

// Clocks for other external blocks (VCE, ACP, SAMU).
struct SMU73_Discrete_ExtClkLevel {};

SMU73_Discrete_ExtClkLevel;

struct SMU73_Discrete_StateInfo {};

SMU73_Discrete_StateInfo;

struct SMU73_Discrete_DpmTable {};

SMU73_Discrete_DpmTable;


// --------------------------------------------------- Fan Table -----------------------------------------------------------
struct SMU73_Discrete_FanTable {};

SMU73_Discrete_FanTable;

#define SMU7_DISCRETE_GPIO_SCLK_DEBUG
#define SMU7_DISCRETE_GPIO_SCLK_DEBUG_BIT



struct SMU7_MclkDpmScoreboard {};

SMU7_MclkDpmScoreboard;

struct SMU7_UlvScoreboard {};

SMU7_UlvScoreboard;

struct VddgfxSavedRegisters {};

VddgfxSavedRegisters;

struct SMU7_VddGfxScoreboard {};

SMU7_VddGfxScoreboard;

struct SMU7_TdcLimitScoreboard {};

SMU7_TdcLimitScoreboard;

struct SMU7_PkgPwrLimitScoreboard {};

SMU7_PkgPwrLimitScoreboard;

struct SMU7_BapmScoreboard {};


SMU7_BapmScoreboard;

struct SMU7_AcpiScoreboard {};

SMU7_AcpiScoreboard;

struct SMU_QuadraticCoeffs {};

SMU_QuadraticCoeffs;

struct SMU73_Discrete_PmFuses {};

SMU73_Discrete_PmFuses;

struct SMU7_Discrete_Log_Header_Table {};

SMU7_Discrete_Log_Header_Table;

struct SMU7_Discrete_Log_Cntl {};

SMU7_Discrete_Log_Cntl;

#define CAC_ACC_NW_NUM_OF_SIGNALS

struct SMU7_Discrete_Cac_Collection_Table {};

SMU7_Discrete_Cac_Collection_Table;

struct SMU7_Discrete_Cac_Verification_Table {};

SMU7_Discrete_Cac_Verification_Table;

struct SMU7_Discrete_Pm_Status_Table {};

SMU7_Discrete_Pm_Status_Table;

//FIXME THESE NEED TO BE UPDATED
#define SMU7_SCLK_CAC
#define SMU7_MCLK_CAC
#define SMU7_VCLK_CAC
#define SMU7_DCLK_CAC
#define SMU7_ECLK_CAC
#define SMU7_ACLK_CAC
#define SMU7_SAMCLK_CAC
#define SMU7_DISPCLK_CAC
#define SMU7_CAC_CONSTANT
#define SMU7_CAC_CONSTANT_SHIFT

#define SMU7_VDDCI_MCLK_CONST
#define SMU7_VDDCI_MCLK_CONST_SHIFT
#define SMU7_VDDCI_VDDCI_CONST
#define SMU7_VDDCI_VDDCI_CONST_SHIFT
#define SMU7_VDDCI_CONST
#define SMU7_VDDCI_STROBE_PWR

#define SMU7_VDDR1_CONST
#define SMU7_VDDR1_CAC_WEIGHT
#define SMU7_VDDR1_CAC_WEIGHT_SHIFT
#define SMU7_VDDR1_STROBE_PWR

#define SMU7_AREA_COEFF_UVD
#define SMU7_AREA_COEFF_VCE
#define SMU7_AREA_COEFF_ACP
#define SMU7_AREA_COEFF_SAMU

//ThermOutMode values
#define SMU7_THERM_OUT_MODE_DISABLE
#define SMU7_THERM_OUT_MODE_THERM_ONLY
#define SMU7_THERM_OUT_MODE_THERM_VRHOT

#pragma pack(pop)

#endif