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

/*
 * Copyright 2016 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 SMU71_DISCRETE_H
#define SMU71_DISCRETE_H

#include "smu71.h"

#if !defined(SMC_MICROCODE)
#pragma pack(push, 1)
#endif

#define VDDC_ON_SVI2
#define VDDCI_ON_SVI2
#define MVDD_ON_SVI2

struct SMU71_Discrete_VoltageLevel
{};

SMU71_Discrete_VoltageLevel;

struct SMU71_Discrete_GraphicsLevel
{};

SMU71_Discrete_GraphicsLevel;

struct SMU71_Discrete_ACPILevel
{};

SMU71_Discrete_ACPILevel;

struct SMU71_Discrete_Ulv
{};

SMU71_Discrete_Ulv;

struct SMU71_Discrete_MemoryLevel
{};

SMU71_Discrete_MemoryLevel;

struct SMU71_Discrete_LinkLevel
{};

SMU71_Discrete_LinkLevel;


#ifdef SMU__DYNAMIC_MCARB_SETTINGS
// MC ARB DRAM Timing registers.
struct SMU71_Discrete_MCArbDramTimingTableEntry
{};

SMU71_Discrete_MCArbDramTimingTableEntry;

struct SMU71_Discrete_MCArbDramTimingTable
{};

SMU71_Discrete_MCArbDramTimingTable;
#endif

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

SMU71_Discrete_UvdLevel;

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

SMU71_Discrete_ExtClkLevel;

// Everything that we need to keep track of about the current state.
// Use this instead of copies of the GraphicsLevel and MemoryLevel structures to keep track of state parameters
// that need to be checked later.
// We don't need to cache everything about a state, just a few parameters.
struct SMU71_Discrete_StateInfo
{};

SMU71_Discrete_StateInfo;


struct SMU71_Discrete_DpmTable
{};

SMU71_Discrete_DpmTable;

// --------------------------------------------------- AC Timing Parameters ------------------------------------------------
#define SMU71_DISCRETE_MC_REGISTER_ARRAY_SIZE
#define SMU71_DISCRETE_MC_REGISTER_ARRAY_SET_COUNT

struct SMU71_Discrete_MCRegisterAddress
{};

SMU71_Discrete_MCRegisterAddress;

struct SMU71_Discrete_MCRegisterSet
{};

SMU71_Discrete_MCRegisterSet;

struct SMU71_Discrete_MCRegisters
{};

SMU71_Discrete_MCRegisters;


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

SMU71_Discrete_FanTable;

#define SMU7_DISCRETE_GPIO_SCLK_DEBUG
#define SMU7_DISCRETE_GPIO_SCLK_DEBUG_BIT

struct SMU71_MclkDpmScoreboard
{};

SMU71_MclkDpmScoreboard;

struct SMU71_UlvScoreboard
{};

SMU71_UlvScoreboard;

struct SMU71_VddGfxScoreboard
{};

SMU71_VddGfxScoreboard;

struct SMU71_AcpiScoreboard {};

SMU71_AcpiScoreboard;


struct SMU71_Discrete_PmFuses {};

SMU71_Discrete_PmFuses;

struct SMU71_Discrete_Log_Header_Table {};

SMU71_Discrete_Log_Header_Table;

struct SMU71_Discrete_Log_Cntl {};

SMU71_Discrete_Log_Cntl;

#if defined SMU__DGPU_ONLY
  #define CAC_ACC_NW_NUM_OF_SIGNALS
#endif


struct SMU71_Discrete_Cac_Collection_Table {};

SMU71_Discrete_Cac_Collection_Table;

struct SMU71_Discrete_Cac_Verification_Table {};

SMU71_Discrete_Cac_Verification_Table;

#if !defined(SMC_MICROCODE)
#pragma pack(pop)
#endif


#endif