27
27
28
28
#pragma pack(push, 1)
29
29
30
- struct SMIO_Pattern
31
- {
30
+ struct SMIO_Pattern {
32
31
uint16_t Voltage ;
33
32
uint8_t Smio ;
34
33
uint8_t padding ;
35
34
};
36
35
37
36
typedef struct SMIO_Pattern SMIO_Pattern ;
38
37
39
- struct SMIO_Table
40
- {
38
+ struct SMIO_Table {
41
39
SMIO_Pattern Pattern [SMU_MAX_SMIO_LEVELS ];
42
40
};
43
41
@@ -100,8 +98,7 @@ struct SMU73_Discrete_Ulv {
100
98
101
99
typedef struct SMU73_Discrete_Ulv SMU73_Discrete_Ulv ;
102
100
103
- struct SMU73_Discrete_MemoryLevel
104
- {
101
+ struct SMU73_Discrete_MemoryLevel {
105
102
uint32_t MinVoltage ;
106
103
uint32_t MinMvdd ;
107
104
@@ -124,10 +121,9 @@ struct SMU73_Discrete_MemoryLevel
124
121
125
122
typedef struct SMU73_Discrete_MemoryLevel SMU73_Discrete_MemoryLevel ;
126
123
127
- struct SMU73_Discrete_LinkLevel
128
- {
124
+ struct SMU73_Discrete_LinkLevel {
129
125
uint8_t PcieGenSpeed ; ///< 0:PciE-gen1 1:PciE-gen2 2:PciE-gen3
130
- uint8_t PcieLaneCount ; ///< 1=x1, 2=x2, 3=x4, 4=x8, 5=x12, 6=x16
126
+ uint8_t PcieLaneCount ; ///< 1=x1, 2=x2, 3=x4, 4=x8, 5=x12, 6=x16
131
127
uint8_t EnabledForActivity ;
132
128
uint8_t SPC ;
133
129
uint32_t DownThreshold ;
@@ -139,8 +135,7 @@ typedef struct SMU73_Discrete_LinkLevel SMU73_Discrete_LinkLevel;
139
135
140
136
141
137
// MC ARB DRAM Timing registers.
142
- struct SMU73_Discrete_MCArbDramTimingTableEntry
143
- {
138
+ struct SMU73_Discrete_MCArbDramTimingTableEntry {
144
139
uint32_t McArbDramTiming ;
145
140
uint32_t McArbDramTiming2 ;
146
141
uint8_t McArbBurstTime ;
@@ -151,16 +146,14 @@ struct SMU73_Discrete_MCArbDramTimingTableEntry
151
146
152
147
typedef struct SMU73_Discrete_MCArbDramTimingTableEntry SMU73_Discrete_MCArbDramTimingTableEntry ;
153
148
154
- struct SMU73_Discrete_MCArbDramTimingTable
155
- {
149
+ struct SMU73_Discrete_MCArbDramTimingTable {
156
150
SMU73_Discrete_MCArbDramTimingTableEntry entries [SMU__NUM_SCLK_DPM_STATE ][SMU__NUM_MCLK_DPM_LEVELS ];
157
151
};
158
152
159
153
typedef struct SMU73_Discrete_MCArbDramTimingTable SMU73_Discrete_MCArbDramTimingTable ;
160
154
161
155
// UVD VCLK/DCLK state (level) definition.
162
- struct SMU73_Discrete_UvdLevel
163
- {
156
+ struct SMU73_Discrete_UvdLevel {
164
157
uint32_t VclkFrequency ;
165
158
uint32_t DclkFrequency ;
166
159
uint32_t MinVoltage ;
@@ -172,8 +165,7 @@ struct SMU73_Discrete_UvdLevel
172
165
typedef struct SMU73_Discrete_UvdLevel SMU73_Discrete_UvdLevel ;
173
166
174
167
// Clocks for other external blocks (VCE, ACP, SAMU).
175
- struct SMU73_Discrete_ExtClkLevel
176
- {
168
+ struct SMU73_Discrete_ExtClkLevel {
177
169
uint32_t Frequency ;
178
170
uint32_t MinVoltage ;
179
171
uint8_t Divider ;
@@ -182,8 +174,7 @@ struct SMU73_Discrete_ExtClkLevel
182
174
183
175
typedef struct SMU73_Discrete_ExtClkLevel SMU73_Discrete_ExtClkLevel ;
184
176
185
- struct SMU73_Discrete_StateInfo
186
- {
177
+ struct SMU73_Discrete_StateInfo {
187
178
uint32_t SclkFrequency ;
188
179
uint32_t MclkFrequency ;
189
180
uint32_t VclkFrequency ;
@@ -206,8 +197,7 @@ struct SMU73_Discrete_StateInfo
206
197
207
198
typedef struct SMU73_Discrete_StateInfo SMU73_Discrete_StateInfo ;
208
199
209
- struct SMU73_Discrete_DpmTable
210
- {
200
+ struct SMU73_Discrete_DpmTable {
211
201
// Multi-DPM controller settings
212
202
SMU73_PIDController GraphicsPIDController ;
213
203
SMU73_PIDController MemoryPIDController ;
@@ -225,9 +215,9 @@ struct SMU73_Discrete_DpmTable
225
215
uint32_t MvddLevelCount ;
226
216
227
217
228
- uint8_t BapmVddcVidHiSidd [SMU73_MAX_LEVELS_VDDC ];
229
- uint8_t BapmVddcVidLoSidd [SMU73_MAX_LEVELS_VDDC ];
230
- uint8_t BapmVddcVidHiSidd2 [SMU73_MAX_LEVELS_VDDC ];
218
+ uint8_t BapmVddcVidHiSidd [SMU73_MAX_LEVELS_VDDC ];
219
+ uint8_t BapmVddcVidLoSidd [SMU73_MAX_LEVELS_VDDC ];
220
+ uint8_t BapmVddcVidHiSidd2 [SMU73_MAX_LEVELS_VDDC ];
231
221
232
222
uint8_t GraphicsDpmLevelCount ;
233
223
uint8_t MemoryDpmLevelCount ;
@@ -246,19 +236,19 @@ struct SMU73_Discrete_DpmTable
246
236
uint32_t Reserved [4 ];
247
237
248
238
// State table entries for each DPM state
249
- SMU73_Discrete_GraphicsLevel GraphicsLevel [SMU73_MAX_LEVELS_GRAPHICS ];
239
+ SMU73_Discrete_GraphicsLevel GraphicsLevel [SMU73_MAX_LEVELS_GRAPHICS ];
250
240
SMU73_Discrete_MemoryLevel MemoryACPILevel ;
251
- SMU73_Discrete_MemoryLevel MemoryLevel [SMU73_MAX_LEVELS_MEMORY ];
252
- SMU73_Discrete_LinkLevel LinkLevel [SMU73_MAX_LEVELS_LINK ];
241
+ SMU73_Discrete_MemoryLevel MemoryLevel [SMU73_MAX_LEVELS_MEMORY ];
242
+ SMU73_Discrete_LinkLevel LinkLevel [SMU73_MAX_LEVELS_LINK ];
253
243
SMU73_Discrete_ACPILevel ACPILevel ;
254
- SMU73_Discrete_UvdLevel UvdLevel [SMU73_MAX_LEVELS_UVD ];
255
- SMU73_Discrete_ExtClkLevel VceLevel [SMU73_MAX_LEVELS_VCE ];
256
- SMU73_Discrete_ExtClkLevel AcpLevel [SMU73_MAX_LEVELS_ACP ];
257
- SMU73_Discrete_ExtClkLevel SamuLevel [SMU73_MAX_LEVELS_SAMU ];
244
+ SMU73_Discrete_UvdLevel UvdLevel [SMU73_MAX_LEVELS_UVD ];
245
+ SMU73_Discrete_ExtClkLevel VceLevel [SMU73_MAX_LEVELS_VCE ];
246
+ SMU73_Discrete_ExtClkLevel AcpLevel [SMU73_MAX_LEVELS_ACP ];
247
+ SMU73_Discrete_ExtClkLevel SamuLevel [SMU73_MAX_LEVELS_SAMU ];
258
248
SMU73_Discrete_Ulv Ulv ;
259
249
260
250
uint32_t SclkStepSize ;
261
- uint32_t Smio [SMU73_MAX_ENTRIES_SMIO ];
251
+ uint32_t Smio [SMU73_MAX_ENTRIES_SMIO ];
262
252
263
253
uint8_t UvdBootLevel ;
264
254
uint8_t VceBootLevel ;
@@ -368,8 +358,7 @@ typedef struct SMU73_Discrete_DpmTable SMU73_Discrete_DpmTable;
368
358
369
359
370
360
// --------------------------------------------------- Fan Table -----------------------------------------------------------
371
- struct SMU73_Discrete_FanTable
372
- {
361
+ struct SMU73_Discrete_FanTable {
373
362
uint16_t FdoMode ;
374
363
int16_t TempMin ;
375
364
int16_t TempMed ;
@@ -397,8 +386,7 @@ typedef struct SMU73_Discrete_FanTable SMU73_Discrete_FanTable;
397
386
398
387
399
388
400
- struct SMU7_MclkDpmScoreboard
401
- {
389
+ struct SMU7_MclkDpmScoreboard {
402
390
403
391
uint32_t PercentageBusy ;
404
392
@@ -448,8 +436,8 @@ struct SMU7_MclkDpmScoreboard
448
436
uint8_t VbiWaitCounter ;
449
437
uint8_t EnabledLevelsChange ;
450
438
451
- uint16_t LevelResidencyCounters [SMU73_MAX_LEVELS_MEMORY ];
452
- uint16_t LevelSwitchCounters [SMU73_MAX_LEVELS_MEMORY ];
439
+ uint16_t LevelResidencyCounters [SMU73_MAX_LEVELS_MEMORY ];
440
+ uint16_t LevelSwitchCounters [SMU73_MAX_LEVELS_MEMORY ];
453
441
454
442
void (* TargetStateCalculator )(uint8_t );
455
443
void (* SavedTargetStateCalculator )(uint8_t );
@@ -469,8 +457,7 @@ struct SMU7_MclkDpmScoreboard
469
457
470
458
typedef struct SMU7_MclkDpmScoreboard SMU7_MclkDpmScoreboard ;
471
459
472
- struct SMU7_UlvScoreboard
473
- {
460
+ struct SMU7_UlvScoreboard {
474
461
uint8_t EnterUlv ;
475
462
uint8_t ExitUlv ;
476
463
uint8_t UlvActive ;
@@ -485,8 +472,7 @@ struct SMU7_UlvScoreboard
485
472
486
473
typedef struct SMU7_UlvScoreboard SMU7_UlvScoreboard ;
487
474
488
- struct VddgfxSavedRegisters
489
- {
475
+ struct VddgfxSavedRegisters {
490
476
uint32_t GPU_DBG [3 ];
491
477
uint32_t MEC_BaseAddress_Hi ;
492
478
uint32_t MEC_BaseAddress_Lo ;
@@ -497,8 +483,7 @@ struct VddgfxSavedRegisters
497
483
498
484
typedef struct VddgfxSavedRegisters VddgfxSavedRegisters ;
499
485
500
- struct SMU7_VddGfxScoreboard
501
- {
486
+ struct SMU7_VddGfxScoreboard {
502
487
uint8_t VddGfxEnable ;
503
488
uint8_t VddGfxActive ;
504
489
uint8_t VPUResetOccured ;
0 commit comments