/* * 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 SMU9_DRIVER_IF_H #define SMU9_DRIVER_IF_H
#include"smu9.h"
/**** IMPORTANT *** * SMU TEAM: Always increment the interface version if * any structure is changed in this file
*/ #define SMU9_DRIVER_IF_VERSION 0xE
/* ULV Settings */
uint8_t UlvOffsetVid; /* SVI2 VID */
uint8_t UlvSmnclkDid; /* DID for ULV mode. 0 means CLK will not be modified in ULV. */
uint8_t UlvMp1clkDid; /* DID for ULV mode. 0 means CLK will not be modified in ULV. */
uint8_t UlvGfxclkBypass; /* 1 to turn off/bypass Gfxclk during ULV, 0 to leave Gfxclk on during ULV */
/* This is the minimum voltage needed to run the SOC. */
uint8_t MinVoltageVid; /* Minimum Voltage ("Vmin") of ASIC */
uint8_t MaxVoltageVid; /* Maximum Voltage allowable */
uint8_t MaxVidStep; /* Max VID step that SMU will request. Multiple steps are taken if voltage change exceeds this value. */
uint8_t padding8;
uint8_t UlvPhaseSheddingPsi0; /* set this to 1 to set PSI0/1 to 1 in ULV mode */
uint8_t UlvPhaseSheddingPsi1; /* set this to 1 to set PSI0/1 to 1 in ULV mode */
uint8_t padding8_2[2];
/* UCLK States */
uint8_t MemVid[NUM_UCLK_DPM_LEVELS]; /* VID */
PllSetting_t UclkLevel[NUM_UCLK_DPM_LEVELS]; /* Full PLL settings */
uint8_t MemSocVoltageIndex[NUM_UCLK_DPM_LEVELS];
uint8_t LowestUclkReservedForUlv; /* Set this to 1 if UCLK DPM0 is reserved for ULV-mode only */
uint8_t paddingUclk[3];
uint16_t NumMemoryChannels; /* Used for memory bandwidth calculations */
uint16_t MemoryChannelWidth; /* Used for memory bandwidth calculations */
/* The following are AFC override parameters. Leave at 0 to use FW defaults. */
int16_t FuzzyFan_ErrorSetDelta;
int16_t FuzzyFan_ErrorRateSetDelta;
int16_t FuzzyFan_PwmSetDelta;
uint16_t FuzzyFan_Reserved;
/* GPIO Settings */
uint8_t AcDcGpio; /* GPIO pin configured for AC/DC switching */
uint8_t AcDcPolarity; /* GPIO polarity for AC/DC switching */
uint8_t VR0HotGpio; /* GPIO pin configured for VR0 HOT event */
uint8_t VR0HotPolarity; /* GPIO polarity for VR0 HOT event */
uint8_t VR1HotGpio; /* GPIO pin configured for VR1 HOT event */
uint8_t VR1HotPolarity; /* GPIO polarity for VR1 HOT event */
uint8_t Padding1; /* replace GPIO pin configured for CTF */
uint8_t Padding2; /* replace GPIO polarity for CTF */
/* LED Display Settings */
uint8_t LedPin0; /* GPIO number for LedPin[0] */
uint8_t LedPin1; /* GPIO number for LedPin[1] */
uint8_t LedPin2; /* GPIO number for LedPin[2] */
uint8_t padding8_4;
typedefstruct {
uint16_t MinClock; // This is either DCEFCLK or SOCCLK (in MHz)
uint16_t MaxClock; // This is either DCEFCLK or SOCCLK (in MHz)
uint16_t MinUclk;
uint16_t MaxUclk;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.