1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright 2012 Advanced Micro Devices, Inc. 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Permission is hereby granted, free of charge, to any person obtaining a 5*4882a593Smuzhiyun * copy of this software and associated documentation files (the "Software"), 6*4882a593Smuzhiyun * to deal in the Software without restriction, including without limitation 7*4882a593Smuzhiyun * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8*4882a593Smuzhiyun * and/or sell copies of the Software, and to permit persons to whom the 9*4882a593Smuzhiyun * Software is furnished to do so, subject to the following conditions: 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * The above copyright notice and this permission notice shall be included in 12*4882a593Smuzhiyun * all copies or substantial portions of the Software. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15*4882a593Smuzhiyun * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*4882a593Smuzhiyun * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17*4882a593Smuzhiyun * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18*4882a593Smuzhiyun * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19*4882a593Smuzhiyun * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20*4882a593Smuzhiyun * OTHER DEALINGS IN THE SOFTWARE. 21*4882a593Smuzhiyun * 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun #ifndef __NISLANDS_SMC_H__ 24*4882a593Smuzhiyun #define __NISLANDS_SMC_H__ 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #pragma pack(push, 1) 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun #define NISLANDS_MAX_SMC_PERFORMANCE_LEVELS_PER_SWSTATE 16 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun struct PP_NIslands_Dpm2PerfLevel 31*4882a593Smuzhiyun { 32*4882a593Smuzhiyun uint8_t MaxPS; 33*4882a593Smuzhiyun uint8_t TgtAct; 34*4882a593Smuzhiyun uint8_t MaxPS_StepInc; 35*4882a593Smuzhiyun uint8_t MaxPS_StepDec; 36*4882a593Smuzhiyun uint8_t PSST; 37*4882a593Smuzhiyun uint8_t NearTDPDec; 38*4882a593Smuzhiyun uint8_t AboveSafeInc; 39*4882a593Smuzhiyun uint8_t BelowSafeInc; 40*4882a593Smuzhiyun uint8_t PSDeltaLimit; 41*4882a593Smuzhiyun uint8_t PSDeltaWin; 42*4882a593Smuzhiyun uint8_t Reserved[6]; 43*4882a593Smuzhiyun }; 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun typedef struct PP_NIslands_Dpm2PerfLevel PP_NIslands_Dpm2PerfLevel; 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun struct PP_NIslands_DPM2Parameters 48*4882a593Smuzhiyun { 49*4882a593Smuzhiyun uint32_t TDPLimit; 50*4882a593Smuzhiyun uint32_t NearTDPLimit; 51*4882a593Smuzhiyun uint32_t SafePowerLimit; 52*4882a593Smuzhiyun uint32_t PowerBoostLimit; 53*4882a593Smuzhiyun }; 54*4882a593Smuzhiyun typedef struct PP_NIslands_DPM2Parameters PP_NIslands_DPM2Parameters; 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun struct NISLANDS_SMC_SCLK_VALUE 57*4882a593Smuzhiyun { 58*4882a593Smuzhiyun uint32_t vCG_SPLL_FUNC_CNTL; 59*4882a593Smuzhiyun uint32_t vCG_SPLL_FUNC_CNTL_2; 60*4882a593Smuzhiyun uint32_t vCG_SPLL_FUNC_CNTL_3; 61*4882a593Smuzhiyun uint32_t vCG_SPLL_FUNC_CNTL_4; 62*4882a593Smuzhiyun uint32_t vCG_SPLL_SPREAD_SPECTRUM; 63*4882a593Smuzhiyun uint32_t vCG_SPLL_SPREAD_SPECTRUM_2; 64*4882a593Smuzhiyun uint32_t sclk_value; 65*4882a593Smuzhiyun }; 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun typedef struct NISLANDS_SMC_SCLK_VALUE NISLANDS_SMC_SCLK_VALUE; 68*4882a593Smuzhiyun 69*4882a593Smuzhiyun struct NISLANDS_SMC_MCLK_VALUE 70*4882a593Smuzhiyun { 71*4882a593Smuzhiyun uint32_t vMPLL_FUNC_CNTL; 72*4882a593Smuzhiyun uint32_t vMPLL_FUNC_CNTL_1; 73*4882a593Smuzhiyun uint32_t vMPLL_FUNC_CNTL_2; 74*4882a593Smuzhiyun uint32_t vMPLL_AD_FUNC_CNTL; 75*4882a593Smuzhiyun uint32_t vMPLL_AD_FUNC_CNTL_2; 76*4882a593Smuzhiyun uint32_t vMPLL_DQ_FUNC_CNTL; 77*4882a593Smuzhiyun uint32_t vMPLL_DQ_FUNC_CNTL_2; 78*4882a593Smuzhiyun uint32_t vMCLK_PWRMGT_CNTL; 79*4882a593Smuzhiyun uint32_t vDLL_CNTL; 80*4882a593Smuzhiyun uint32_t vMPLL_SS; 81*4882a593Smuzhiyun uint32_t vMPLL_SS2; 82*4882a593Smuzhiyun uint32_t mclk_value; 83*4882a593Smuzhiyun }; 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun typedef struct NISLANDS_SMC_MCLK_VALUE NISLANDS_SMC_MCLK_VALUE; 86*4882a593Smuzhiyun 87*4882a593Smuzhiyun struct NISLANDS_SMC_VOLTAGE_VALUE 88*4882a593Smuzhiyun { 89*4882a593Smuzhiyun uint16_t value; 90*4882a593Smuzhiyun uint8_t index; 91*4882a593Smuzhiyun uint8_t padding; 92*4882a593Smuzhiyun }; 93*4882a593Smuzhiyun 94*4882a593Smuzhiyun typedef struct NISLANDS_SMC_VOLTAGE_VALUE NISLANDS_SMC_VOLTAGE_VALUE; 95*4882a593Smuzhiyun 96*4882a593Smuzhiyun struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL 97*4882a593Smuzhiyun { 98*4882a593Smuzhiyun uint8_t arbValue; 99*4882a593Smuzhiyun uint8_t ACIndex; 100*4882a593Smuzhiyun uint8_t displayWatermark; 101*4882a593Smuzhiyun uint8_t gen2PCIE; 102*4882a593Smuzhiyun uint8_t reserved1; 103*4882a593Smuzhiyun uint8_t reserved2; 104*4882a593Smuzhiyun uint8_t strobeMode; 105*4882a593Smuzhiyun uint8_t mcFlags; 106*4882a593Smuzhiyun uint32_t aT; 107*4882a593Smuzhiyun uint32_t bSP; 108*4882a593Smuzhiyun NISLANDS_SMC_SCLK_VALUE sclk; 109*4882a593Smuzhiyun NISLANDS_SMC_MCLK_VALUE mclk; 110*4882a593Smuzhiyun NISLANDS_SMC_VOLTAGE_VALUE vddc; 111*4882a593Smuzhiyun NISLANDS_SMC_VOLTAGE_VALUE mvdd; 112*4882a593Smuzhiyun NISLANDS_SMC_VOLTAGE_VALUE vddci; 113*4882a593Smuzhiyun NISLANDS_SMC_VOLTAGE_VALUE std_vddc; 114*4882a593Smuzhiyun uint32_t powergate_en; 115*4882a593Smuzhiyun uint8_t hUp; 116*4882a593Smuzhiyun uint8_t hDown; 117*4882a593Smuzhiyun uint8_t stateFlags; 118*4882a593Smuzhiyun uint8_t arbRefreshState; 119*4882a593Smuzhiyun uint32_t SQPowerThrottle; 120*4882a593Smuzhiyun uint32_t SQPowerThrottle_2; 121*4882a593Smuzhiyun uint32_t reserved[2]; 122*4882a593Smuzhiyun PP_NIslands_Dpm2PerfLevel dpm2; 123*4882a593Smuzhiyun }; 124*4882a593Smuzhiyun 125*4882a593Smuzhiyun #define NISLANDS_SMC_STROBE_RATIO 0x0F 126*4882a593Smuzhiyun #define NISLANDS_SMC_STROBE_ENABLE 0x10 127*4882a593Smuzhiyun 128*4882a593Smuzhiyun #define NISLANDS_SMC_MC_EDC_RD_FLAG 0x01 129*4882a593Smuzhiyun #define NISLANDS_SMC_MC_EDC_WR_FLAG 0x02 130*4882a593Smuzhiyun #define NISLANDS_SMC_MC_RTT_ENABLE 0x04 131*4882a593Smuzhiyun #define NISLANDS_SMC_MC_STUTTER_EN 0x08 132*4882a593Smuzhiyun 133*4882a593Smuzhiyun typedef struct NISLANDS_SMC_HW_PERFORMANCE_LEVEL NISLANDS_SMC_HW_PERFORMANCE_LEVEL; 134*4882a593Smuzhiyun 135*4882a593Smuzhiyun struct NISLANDS_SMC_SWSTATE 136*4882a593Smuzhiyun { 137*4882a593Smuzhiyun uint8_t flags; 138*4882a593Smuzhiyun uint8_t levelCount; 139*4882a593Smuzhiyun uint8_t padding2; 140*4882a593Smuzhiyun uint8_t padding3; 141*4882a593Smuzhiyun NISLANDS_SMC_HW_PERFORMANCE_LEVEL levels[1]; 142*4882a593Smuzhiyun }; 143*4882a593Smuzhiyun 144*4882a593Smuzhiyun typedef struct NISLANDS_SMC_SWSTATE NISLANDS_SMC_SWSTATE; 145*4882a593Smuzhiyun 146*4882a593Smuzhiyun #define NISLANDS_SMC_VOLTAGEMASK_VDDC 0 147*4882a593Smuzhiyun #define NISLANDS_SMC_VOLTAGEMASK_MVDD 1 148*4882a593Smuzhiyun #define NISLANDS_SMC_VOLTAGEMASK_VDDCI 2 149*4882a593Smuzhiyun #define NISLANDS_SMC_VOLTAGEMASK_MAX 4 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun struct NISLANDS_SMC_VOLTAGEMASKTABLE 152*4882a593Smuzhiyun { 153*4882a593Smuzhiyun uint8_t highMask[NISLANDS_SMC_VOLTAGEMASK_MAX]; 154*4882a593Smuzhiyun uint32_t lowMask[NISLANDS_SMC_VOLTAGEMASK_MAX]; 155*4882a593Smuzhiyun }; 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun typedef struct NISLANDS_SMC_VOLTAGEMASKTABLE NISLANDS_SMC_VOLTAGEMASKTABLE; 158*4882a593Smuzhiyun 159*4882a593Smuzhiyun #define NISLANDS_MAX_NO_VREG_STEPS 32 160*4882a593Smuzhiyun 161*4882a593Smuzhiyun struct NISLANDS_SMC_STATETABLE 162*4882a593Smuzhiyun { 163*4882a593Smuzhiyun uint8_t thermalProtectType; 164*4882a593Smuzhiyun uint8_t systemFlags; 165*4882a593Smuzhiyun uint8_t maxVDDCIndexInPPTable; 166*4882a593Smuzhiyun uint8_t extraFlags; 167*4882a593Smuzhiyun uint8_t highSMIO[NISLANDS_MAX_NO_VREG_STEPS]; 168*4882a593Smuzhiyun uint32_t lowSMIO[NISLANDS_MAX_NO_VREG_STEPS]; 169*4882a593Smuzhiyun NISLANDS_SMC_VOLTAGEMASKTABLE voltageMaskTable; 170*4882a593Smuzhiyun PP_NIslands_DPM2Parameters dpm2Params; 171*4882a593Smuzhiyun NISLANDS_SMC_SWSTATE initialState; 172*4882a593Smuzhiyun NISLANDS_SMC_SWSTATE ACPIState; 173*4882a593Smuzhiyun NISLANDS_SMC_SWSTATE ULVState; 174*4882a593Smuzhiyun NISLANDS_SMC_SWSTATE driverState; 175*4882a593Smuzhiyun NISLANDS_SMC_HW_PERFORMANCE_LEVEL dpmLevels[NISLANDS_MAX_SMC_PERFORMANCE_LEVELS_PER_SWSTATE - 1]; 176*4882a593Smuzhiyun }; 177*4882a593Smuzhiyun 178*4882a593Smuzhiyun typedef struct NISLANDS_SMC_STATETABLE NISLANDS_SMC_STATETABLE; 179*4882a593Smuzhiyun 180*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTERS_START 0x108 181*4882a593Smuzhiyun 182*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_mclk_chg_timeout 0x0 183*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_delay_bbias 0xC 184*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_delay_vreg 0x10 185*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_delay_acpi 0x2C 186*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_seq_index 0x64 187*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_mvdd_chg_time 0x68 188*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_mclk_switch_lim 0x78 189*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_watermark_threshold 0x80 190*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_mc_block_delay 0x84 191*4882a593Smuzhiyun #define NI_SMC_SOFT_REGISTER_uvd_enabled 0x98 192*4882a593Smuzhiyun 193*4882a593Smuzhiyun #define SMC_NISLANDS_MC_TPP_CAC_NUM_OF_ENTRIES 16 194*4882a593Smuzhiyun #define SMC_NISLANDS_LKGE_LUT_NUM_OF_TEMP_ENTRIES 16 195*4882a593Smuzhiyun #define SMC_NISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES 16 196*4882a593Smuzhiyun #define SMC_NISLANDS_BIF_LUT_NUM_OF_ENTRIES 4 197*4882a593Smuzhiyun 198*4882a593Smuzhiyun struct SMC_NISLANDS_MC_TPP_CAC_TABLE 199*4882a593Smuzhiyun { 200*4882a593Smuzhiyun uint32_t tpp[SMC_NISLANDS_MC_TPP_CAC_NUM_OF_ENTRIES]; 201*4882a593Smuzhiyun uint32_t cacValue[SMC_NISLANDS_MC_TPP_CAC_NUM_OF_ENTRIES]; 202*4882a593Smuzhiyun }; 203*4882a593Smuzhiyun 204*4882a593Smuzhiyun typedef struct SMC_NISLANDS_MC_TPP_CAC_TABLE SMC_NISLANDS_MC_TPP_CAC_TABLE; 205*4882a593Smuzhiyun 206*4882a593Smuzhiyun 207*4882a593Smuzhiyun struct PP_NIslands_CACTABLES 208*4882a593Smuzhiyun { 209*4882a593Smuzhiyun uint32_t cac_bif_lut[SMC_NISLANDS_BIF_LUT_NUM_OF_ENTRIES]; 210*4882a593Smuzhiyun uint32_t cac_lkge_lut[SMC_NISLANDS_LKGE_LUT_NUM_OF_TEMP_ENTRIES][SMC_NISLANDS_LKGE_LUT_NUM_OF_VOLT_ENTRIES]; 211*4882a593Smuzhiyun 212*4882a593Smuzhiyun uint32_t pwr_const; 213*4882a593Smuzhiyun 214*4882a593Smuzhiyun uint32_t dc_cacValue; 215*4882a593Smuzhiyun uint32_t bif_cacValue; 216*4882a593Smuzhiyun uint32_t lkge_pwr; 217*4882a593Smuzhiyun 218*4882a593Smuzhiyun uint8_t cac_width; 219*4882a593Smuzhiyun uint8_t window_size_p2; 220*4882a593Smuzhiyun 221*4882a593Smuzhiyun uint8_t num_drop_lsb; 222*4882a593Smuzhiyun uint8_t padding_0; 223*4882a593Smuzhiyun 224*4882a593Smuzhiyun uint32_t last_power; 225*4882a593Smuzhiyun 226*4882a593Smuzhiyun uint8_t AllowOvrflw; 227*4882a593Smuzhiyun uint8_t MCWrWeight; 228*4882a593Smuzhiyun uint8_t MCRdWeight; 229*4882a593Smuzhiyun uint8_t padding_1[9]; 230*4882a593Smuzhiyun 231*4882a593Smuzhiyun uint8_t enableWinAvg; 232*4882a593Smuzhiyun uint8_t numWin_TDP; 233*4882a593Smuzhiyun uint8_t l2numWin_TDP; 234*4882a593Smuzhiyun uint8_t WinIndex; 235*4882a593Smuzhiyun 236*4882a593Smuzhiyun uint32_t dynPwr_TDP[4]; 237*4882a593Smuzhiyun uint32_t lkgePwr_TDP[4]; 238*4882a593Smuzhiyun uint32_t power_TDP[4]; 239*4882a593Smuzhiyun uint32_t avg_dynPwr_TDP; 240*4882a593Smuzhiyun uint32_t avg_lkgePwr_TDP; 241*4882a593Smuzhiyun uint32_t avg_power_TDP; 242*4882a593Smuzhiyun uint32_t lts_power_TDP; 243*4882a593Smuzhiyun uint8_t lts_truncate_n; 244*4882a593Smuzhiyun uint8_t padding_2[7]; 245*4882a593Smuzhiyun }; 246*4882a593Smuzhiyun 247*4882a593Smuzhiyun typedef struct PP_NIslands_CACTABLES PP_NIslands_CACTABLES; 248*4882a593Smuzhiyun 249*4882a593Smuzhiyun #define SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE 32 250*4882a593Smuzhiyun #define SMC_NISLANDS_MC_REGISTER_ARRAY_SET_COUNT 20 251*4882a593Smuzhiyun 252*4882a593Smuzhiyun struct SMC_NIslands_MCRegisterAddress 253*4882a593Smuzhiyun { 254*4882a593Smuzhiyun uint16_t s0; 255*4882a593Smuzhiyun uint16_t s1; 256*4882a593Smuzhiyun }; 257*4882a593Smuzhiyun 258*4882a593Smuzhiyun typedef struct SMC_NIslands_MCRegisterAddress SMC_NIslands_MCRegisterAddress; 259*4882a593Smuzhiyun 260*4882a593Smuzhiyun 261*4882a593Smuzhiyun struct SMC_NIslands_MCRegisterSet 262*4882a593Smuzhiyun { 263*4882a593Smuzhiyun uint32_t value[SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE]; 264*4882a593Smuzhiyun }; 265*4882a593Smuzhiyun 266*4882a593Smuzhiyun typedef struct SMC_NIslands_MCRegisterSet SMC_NIslands_MCRegisterSet; 267*4882a593Smuzhiyun 268*4882a593Smuzhiyun struct SMC_NIslands_MCRegisters 269*4882a593Smuzhiyun { 270*4882a593Smuzhiyun uint8_t last; 271*4882a593Smuzhiyun uint8_t reserved[3]; 272*4882a593Smuzhiyun SMC_NIslands_MCRegisterAddress address[SMC_NISLANDS_MC_REGISTER_ARRAY_SIZE]; 273*4882a593Smuzhiyun SMC_NIslands_MCRegisterSet data[SMC_NISLANDS_MC_REGISTER_ARRAY_SET_COUNT]; 274*4882a593Smuzhiyun }; 275*4882a593Smuzhiyun 276*4882a593Smuzhiyun typedef struct SMC_NIslands_MCRegisters SMC_NIslands_MCRegisters; 277*4882a593Smuzhiyun 278*4882a593Smuzhiyun struct SMC_NIslands_MCArbDramTimingRegisterSet 279*4882a593Smuzhiyun { 280*4882a593Smuzhiyun uint32_t mc_arb_dram_timing; 281*4882a593Smuzhiyun uint32_t mc_arb_dram_timing2; 282*4882a593Smuzhiyun uint8_t mc_arb_rfsh_rate; 283*4882a593Smuzhiyun uint8_t padding[3]; 284*4882a593Smuzhiyun }; 285*4882a593Smuzhiyun 286*4882a593Smuzhiyun typedef struct SMC_NIslands_MCArbDramTimingRegisterSet SMC_NIslands_MCArbDramTimingRegisterSet; 287*4882a593Smuzhiyun 288*4882a593Smuzhiyun struct SMC_NIslands_MCArbDramTimingRegisters 289*4882a593Smuzhiyun { 290*4882a593Smuzhiyun uint8_t arb_current; 291*4882a593Smuzhiyun uint8_t reserved[3]; 292*4882a593Smuzhiyun SMC_NIslands_MCArbDramTimingRegisterSet data[20]; 293*4882a593Smuzhiyun }; 294*4882a593Smuzhiyun 295*4882a593Smuzhiyun typedef struct SMC_NIslands_MCArbDramTimingRegisters SMC_NIslands_MCArbDramTimingRegisters; 296*4882a593Smuzhiyun 297*4882a593Smuzhiyun struct SMC_NISLANDS_SPLL_DIV_TABLE 298*4882a593Smuzhiyun { 299*4882a593Smuzhiyun uint32_t freq[256]; 300*4882a593Smuzhiyun uint32_t ss[256]; 301*4882a593Smuzhiyun }; 302*4882a593Smuzhiyun 303*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_FBDIV_MASK 0x01ffffff 304*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_FBDIV_SHIFT 0 305*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_MASK 0xfe000000 306*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT 25 307*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_MASK 0x000fffff 308*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_CLKV_SHIFT 0 309*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_MASK 0xfff00000 310*4882a593Smuzhiyun #define SMC_NISLANDS_SPLL_DIV_TABLE_CLKS_SHIFT 20 311*4882a593Smuzhiyun 312*4882a593Smuzhiyun typedef struct SMC_NISLANDS_SPLL_DIV_TABLE SMC_NISLANDS_SPLL_DIV_TABLE; 313*4882a593Smuzhiyun 314*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_LOCATION 0x100 315*4882a593Smuzhiyun 316*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_version 0x0 317*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_flags 0x4 318*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_softRegisters 0x8 319*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_stateTable 0xC 320*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_fanTable 0x10 321*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_cacTable 0x14 322*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_mcRegisterTable 0x20 323*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_mcArbDramAutoRefreshTable 0x2C 324*4882a593Smuzhiyun #define NISLANDS_SMC_FIRMWARE_HEADER_spllTable 0x30 325*4882a593Smuzhiyun 326*4882a593Smuzhiyun #pragma pack(pop) 327*4882a593Smuzhiyun 328*4882a593Smuzhiyun #endif 329*4882a593Smuzhiyun 330