linux/drivers/gpu/drm/radeon/nislands_smc.h

/*
 * Copyright 2012 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 __NISLANDS_SMC_H__
#define __NISLANDS_SMC_H__

#pragma pack(push, 1)

#define NISLANDS_MAX_SMC_PERFORMANCE_LEVELS_PER_SWSTATE

struct PP_NIslands_Dpm2PerfLevel {};

PP_NIslands_Dpm2PerfLevel;

struct PP_NIslands_DPM2Parameters {};
PP_NIslands_DPM2Parameters;

struct NISLANDS_SMC_SCLK_VALUE {};

NISLANDS_SMC_SCLK_VALUE;

struct NISLANDS_SMC_MCLK_VALUE {};

NISLANDS_SMC_MCLK_VALUE;

struct NISLANDS_SMC_VOLTAGE_VALUE {};

NISLANDS_SMC_VOLTAGE_VALUE;

struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL {};

#define NISLANDS_SMC_STROBE_RATIO
#define NISLANDS_SMC_STROBE_ENABLE

#define NISLANDS_SMC_MC_EDC_RD_FLAG
#define NISLANDS_SMC_MC_EDC_WR_FLAG
#define NISLANDS_SMC_MC_RTT_ENABLE
#define NISLANDS_SMC_MC_STUTTER_EN

NISLANDS_SMC_HW_PERFORMANCE_LEVEL;

struct NISLANDS_SMC_SWSTATE {};

NISLANDS_SMC_SWSTATE;

struct NISLANDS_SMC_SWSTATE_SINGLE {};

#define NISLANDS_SMC_VOLTAGEMASK_VDDC
#define NISLANDS_SMC_VOLTAGEMASK_MVDD
#define NISLANDS_SMC_VOLTAGEMASK_VDDCI
#define NISLANDS_SMC_VOLTAGEMASK_MAX

struct NISLANDS_SMC_VOLTAGEMASKTABLE {};

NISLANDS_SMC_VOLTAGEMASKTABLE;

#define NISLANDS_MAX_NO_VREG_STEPS

struct NISLANDS_SMC_STATETABLE {};

NISLANDS_SMC_STATETABLE;

#define NI_SMC_SOFT_REGISTERS_START

#define NI_SMC_SOFT_REGISTER_mclk_chg_timeout
#define NI_SMC_SOFT_REGISTER_delay_bbias
#define NI_SMC_SOFT_REGISTER_delay_vreg
#define NI_SMC_SOFT_REGISTER_delay_acpi
#define NI_SMC_SOFT_REGISTER_seq_index
#define NI_SMC_SOFT_REGISTER_mvdd_chg_time
#define NI_SMC_SOFT_REGISTER_mclk_switch_lim
#define NI_SMC_SOFT_REGISTER_watermark_threshold
#define NI_SMC_SOFT_REGISTER_mc_block_delay
#define NI_SMC_SOFT_REGISTER_uvd_enabled

#define SMC_NISLANDS_MC_TPP_CAC_NUM_OF_ENTRIES
#define SMC_NISLANDS_LKGE_LUT_NUM_OF_TEMP_ENTRIES
#define SMC_NISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES
#define SMC_NISLANDS_BIF_LUT_NUM_OF_ENTRIES

struct SMC_NISLANDS_MC_TPP_CAC_TABLE {};

SMC_NISLANDS_MC_TPP_CAC_TABLE;


struct PP_NIslands_CACTABLES {};

PP_NIslands_CACTABLES;

#define SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE
#define SMC_NISLANDS_MC_REGISTER_ARRAY_SET_COUNT

struct SMC_NIslands_MCRegisterAddress {};

SMC_NIslands_MCRegisterAddress;


struct SMC_NIslands_MCRegisterSet {};

SMC_NIslands_MCRegisterSet;

struct SMC_NIslands_MCRegisters {};

SMC_NIslands_MCRegisters;

struct SMC_NIslands_MCArbDramTimingRegisterSet {};

SMC_NIslands_MCArbDramTimingRegisterSet;

struct SMC_NIslands_MCArbDramTimingRegisters {};

SMC_NIslands_MCArbDramTimingRegisters;

struct SMC_NISLANDS_SPLL_DIV_TABLE {};

#define SMC_NISLANDS_SPLL_DIV_TABLE_FBDIV_MASK
#define SMC_NISLANDS_SPLL_DIV_TABLE_FBDIV_SHIFT
#define SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_MASK
#define SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT
#define SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_MASK
#define SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT
#define SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_MASK
#define SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_SHIFT

SMC_NISLANDS_SPLL_DIV_TABLE;

#define NISLANDS_SMC_FIRMWARE_HEADER_LOCATION

#define NISLANDS_SMC_FIRMWARE_HEADER_version
#define NISLANDS_SMC_FIRMWARE_HEADER_flags
#define NISLANDS_SMC_FIRMWARE_HEADER_softRegisters
#define NISLANDS_SMC_FIRMWARE_HEADER_stateTable
#define NISLANDS_SMC_FIRMWARE_HEADER_fanTable
#define NISLANDS_SMC_FIRMWARE_HEADER_cacTable
#define NISLANDS_SMC_FIRMWARE_HEADER_mcRegisterTable
#define NISLANDS_SMC_FIRMWARE_HEADER_mcArbDramAutoRefreshTable
#define NISLANDS_SMC_FIRMWARE_HEADER_spllTable

#pragma pack(pop)

#endif