summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/Common/Include/SmipGenerated.h
blob: 8be39f7e2fc12fc79904e3b8dee3e6b6dfce468b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
/** @file
  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>

  This program and the accompanying materials
  are licensed and made available under the terms and conditions of the BSD License
  which accompanies this distribution.  The full text of the license may be found at
  http://opensource.org/licenses/bsd-license.php.

  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

#ifndef _IAFW_SMIP_H_
#define _IAFW_SMIP_H_


#pragma pack(push,1)


typedef struct _Reserved_
{
  UINT8  ReservedByte;

} Reserved;

typedef struct _Bcu_
{
  UINT8  BattCurrLimit12;
  UINT8  BattTimeLimit12;
  UINT8  BattTimeLimit3;
  UINT8  BattTimeDb;
  UINT8  BrstCfgOuts;
  UINT8  BrstCfgActs;
} Bcu;

typedef struct _IAFWBatteryConfig_
{
  UINT8   sbctrev;
  UINT8   fpo;
  UINT8   fpo1;
  UINT8   dbiingpio;
  UINT8   dbioutgpio;
  UINT8   batchptyp;
  UINT16  ia_apps_run;
  UINT8   batiddbibase;
  UINT8   batidanlgbase;
  UINT8   ia_apps_cap;
  UINT16  vbattfreqcap;
  UINT8   capfreqidx;
  UINT8   rsvd;
  UINT8   battidx;
  UINT8   ia_apps_to_use;
  UINT8   turbochrg;
  UINT8   iabbth;
  UINT32  rsvd4;
  UINT8   btformat;
  UINT8   b1class;
  UINT8   b1idtolrnc;
  UINT16  b1idres;
  UINT8   b1type;
  UINT16  b1cap;
  UINT16  b1vmax;
  UINT16  b1chrterm;
  UINT16  b1lowbatt;
  UINT8   b1safeul;
  UINT8   b1safell;
  UINT16  b1t6ul;
  UINT16  b1t6fcv;
  UINT16  b1t6fci;
  UINT16  b1t6mcvstart;
  UINT16  b1t6mcvstop;
  UINT16  b1t6mci;
  UINT16  b1t5ul;
  UINT16  b1t5fcv;
  UINT16  b1t5fci;
  UINT16  b1t5mcvstart;
  UINT16  b1t5mcvstop;
  UINT16  b1t5mci;
  UINT16  b1t4ul;
  UINT16  b1t4fcv;
  UINT16  b1t4fci;
  UINT16  b1t4mcvstart;
  UINT16  b1t4mcvstop;
  UINT16  b1t4mci;
  UINT16  b1t3ul;
  UINT16  b1t3fcv;
  UINT16  b1t3fci;
  UINT16  b1t3mcvstart;
  UINT16  b1t3mcvstop;
  UINT16  b1t3mci;
  UINT16  b1t2ul;
  UINT16  b1t2fcv;
  UINT16  b1t2fci;
  UINT16  b1t2mcvstart;
  UINT16  b1t2mcvstop;
  UINT16  b1t2mci;
  UINT16  b1t1ul;
  UINT16  b1t1fcv;
  UINT16  b1t1fci;
  UINT16  b1t1mcvstart;
  UINT16  b1t1mcvstop;
  UINT16  b1t1mci;
  UINT16  b1t1ll;
  UINT8   b2class;
  UINT8   b2idtolrnc;
  UINT16  b2idres;
  UINT8   b2type;
  UINT16  b2cap;
  UINT16  b2vmax;
  UINT16  b2chrterm;
  UINT16  b2lowbatt;
  UINT8   b2safeul;
  UINT8   b2safell;
  UINT16  b2t6ul;
  UINT16  b2t6fcv;
  UINT16  b2t6fci;
  UINT16  b2t6mcvstart;
  UINT16  b2t6mcvstop;
  UINT16  b2t6mci;
  UINT16  b2t5ul;
  UINT16  b2t5fcv;
  UINT16  b2t5fci;
  UINT16  b2t5mcvstart;
  UINT16  b2t5mcvstop;
  UINT16  b2t5mci;
  UINT16  b2t4ul;
  UINT16  b2t4fcv;
  UINT16  b2t4fci;
  UINT16  b2t4mcvstart;
  UINT16  b2t4mcvstop;
  UINT16  b2t4mci;
  UINT16  b2t3ul;
  UINT16  b2t3fcv;
  UINT16  b2t3fci;
  UINT16  b2t3mcvstart;
  UINT16  b2t3mcvstop;
  UINT16  b2t3mci;
  UINT16  b2t2ul;
  UINT16  b2t2fcv;
  UINT16  b2t2fci;
  UINT16  b2t2mcvstart;
  UINT16  b2t2mcvstop;
  UINT16  b2t2mci;
  UINT16  b2t1ul;
  UINT16  b2t1fcv;
  UINT16  b2t1fci;
  UINT16  b2t1mcvstart;
  UINT16  b2t1mcvstop;
  UINT16  b2t1mci;
  UINT16  b2t1ll;
  UINT8   b3class;
  UINT8   b3idtolrnc;
  UINT16  b3idres;
  UINT8   b3type;
  UINT16  b3cap;
  UINT16  b3vmax;
  UINT16  b3chrterm;
  UINT16  b3lowbatt;
  UINT8   b3safeul;
  UINT8   b3safell;
  UINT16  b3t6ul;
  UINT16  b3t6fcv;
  UINT16  b3t6fci;
  UINT16  b3t6mcvstart;
  UINT16  b3t6mcvstop;
  UINT16  b3t6mci;
  UINT16  b3t5ul;
  UINT16  b3t5fcv;
  UINT16  b3t5fci;
  UINT16  b3t5mcvstart;
  UINT16  b3t5mcvstop;
  UINT16  b3t5mci;
  UINT16  b3t4ul;
  UINT16  b3t4fcv;
  UINT16  b3t4fci;
  UINT16  b3t4mcvstart;
  UINT16  b3t4mcvstop;
  UINT16  b3t4mci;
  UINT16  b3t3ul;
  UINT16  b3t3fcv;
  UINT16  b3t3fci;
  UINT16  b3t3mcvstart;
  UINT16  b3t3mcvstop;
  UINT16  b3t3mci;
  UINT16  b3t2ul;
  UINT16  b3t2fcv;
  UINT16  b3t2fci;
  UINT16  b3t2mcvstart;
  UINT16  b3t2mcvstop;
  UINT16  b3t2mci;
  UINT16  b3t1ul;
  UINT16  b3t1fcv;
  UINT16  b3t1fci;
  UINT16  b3t1mcvstart;
  UINT16  b3t1mcvstop;
  UINT16  b3t1mci;
  UINT16  b3t1ll;
  UINT8   b4class;
  UINT8   b4idtolrnc;
  UINT16  b4idres;
  UINT8   b4type;
  UINT16  b4cap;
  UINT16  b4vmax;
  UINT16  b4chrterm;
  UINT16  b4lowbatt;
  UINT8   b4safeul;
  UINT8   b4safell;
  UINT16  b4t6ul;
  UINT16  b4t6fcv;
  UINT16  b4t6fci;
  UINT16  b4t6mcvstart;
  UINT16  b4t6mcvstop;
  UINT16  b4t6mci;
  UINT16  b4t5ul;
  UINT16  b4t5fcv;
  UINT16  b4t5fci;
  UINT16  b4t5mcvstart;
  UINT16  b4t5mcvstop;
  UINT16  b4t5mci;
  UINT16  b4t4ul;
  UINT16  b4t4fcv;
  UINT16  b4t4fci;
  UINT16  b4t4mcvstart;
  UINT16  b4t4mcvstop;
  UINT16  b4t4mci;
  UINT16  b4t3ul;
  UINT16  b4t3fcv;
  UINT16  b4t3fci;
  UINT16  b4t3mcvstart;
  UINT16  b4t3mcvstop;
  UINT16  b4t3mci;
  UINT16  b4t2ul;
  UINT16  b4t2fcv;
  UINT16  b4t2fci;
  UINT16  b4t2mcvstart;
  UINT16  b4t2mcvstop;
  UINT16  b4t2mci;
  UINT16  b4t1ul;
  UINT16  b4t1fcv;
  UINT16  b4t1fci;
  UINT16  b4t1mcvstart;
  UINT16  b4t1mcvstop;
  UINT16  b4t1mci;
  UINT16  b4t1ll;
} IAFWBatteryConfig;

typedef struct _PlatfromMultiBOMConf_
{
  UINT8  PanelSel;
  UINT8  WorldCameraSel;
  UINT8  UserCameraSel;
  UINT8  AudioSel;
  UINT8  ModemSel;
  UINT8  TouchSel;
  UINT8  WifiSel;
} PlatfromMultiBOMConf;

typedef struct _IAFWMultiBOMConfig_
{
  PlatfromMultiBOMConf  PlatfromMultiBOM0;
  PlatfromMultiBOMConf  PlatfromMultiBOM1;
  PlatfromMultiBOMConf  PlatfromMultiBOM2;
  PlatfromMultiBOMConf  PlatfromMultiBOM3;
  PlatfromMultiBOMConf  PlatfromMultiBOM4;
} IAFWMultiBOMConfig;

typedef struct _PlatfromFeatureConf_
{
  UINT8  OsSelection;
  UINT8  Vibrator;
  UINT8  Ssic1Support;
  UINT8  ScUsbOtg;
} PlatfromFeatureConf;

typedef struct _IAFWFeatureConfig_
{
  PlatfromFeatureConf  PlatfromFeatureConf0;
  PlatfromFeatureConf  PlatfromFeatureConf1;
  PlatfromFeatureConf  PlatfromFeatureConf2;
  PlatfromFeatureConf  PlatfromFeatureConf3;
  PlatfromFeatureConf  PlatfromFeatureConf4;
} IAFWFeatureConfig;

typedef struct _PlatfromDramConf_
{
  UINT8  Package;
  UINT8  Profile;
  UINT8  MemoryDown;
  UINT8  DDR3LPageSize;
  UINT8  DDR3LASR ;
  UINT8  ScramblerSupport;
  UINT16 ChannelHashMask;
  UINT16 SliceHashMask;
  UINT8  InterleavedMode;
  UINT8  ChannelsSlicesEnabled;
  UINT8  MinRefRate2xEnabled;
  UINT8  DualRankSupportEnabled;
  UINT8  DisableFastBoot;
  UINT8  RmtMode;
  UINT8  RmtCheckRun;
  UINT16 RmtMarginCheckScaleHighThreshold;
  UINT16 MemorySizeLimit;
  UINT16 LowMemMaxVal;
  UINT16 HighMemMaxVal;
  UINT8  SpdAddress0;
  UINT8  SpdAddress1;
  UINT8  Ch0RankEnabled;
  UINT8  Ch0DeviceWidth;
  UINT8  Ch0DramDensity;
  UINT8  Ch0Option;
  UINT8  Ch0OdtConfig;
  UINT8  Ch0TristateClk1;
  UINT8  Ch0Mode2N;
  UINT8  Ch0OdtLevels;
  UINT8  Ch1RankEnabled;
  UINT8  Ch1DeviceWidth;
  UINT8  Ch1DramDensity;
  UINT8  Ch1Option;
  UINT8  Ch1OdtConfig;
  UINT8  Ch1TristateClk1;
  UINT8  Ch1Mode2N;
  UINT8  Ch1OdtLevels;
  UINT8  Ch2RankEnabled;
  UINT8  Ch2DeviceWidth;
  UINT8  Ch2DramDensity;
  UINT8  Ch2Option;
  UINT8  Ch2OdtConfig;
  UINT8  Ch2TristateClk1;
  UINT8  Ch2Mode2N;
  UINT8  Ch2OdtLevels;
  UINT8  Ch3RankEnabled;
  UINT8  Ch3DeviceWidth;
  UINT8  Ch3DramDensity;
  UINT8  Ch3Option;
  UINT8  Ch3OdtConfig;
  UINT8  Ch3TristateClk1;
  UINT8  Ch3Mode2N;
  UINT8  Ch3OdtLevels;
  UINT8  Ch0_Bit00_swizzling;
  UINT8  Ch0_Bit01_swizzling;
  UINT8  Ch0_Bit02_swizzling;
  UINT8  Ch0_Bit03_swizzling;
  UINT8  Ch0_Bit04_swizzling;
  UINT8  Ch0_Bit05_swizzling;
  UINT8  Ch0_Bit06_swizzling;
  UINT8  Ch0_Bit07_swizzling;
  UINT8  Ch0_Bit08_swizzling;
  UINT8  Ch0_Bit09_swizzling;
  UINT8  Ch0_Bit10_swizzling;
  UINT8  Ch0_Bit11_swizzling;
  UINT8  Ch0_Bit12_swizzling;
  UINT8  Ch0_Bit13_swizzling;
  UINT8  Ch0_Bit14_swizzling;
  UINT8  Ch0_Bit15_swizzling;
  UINT8  Ch0_Bit16_swizzling;
  UINT8  Ch0_Bit17_swizzling;
  UINT8  Ch0_Bit18_swizzling;
  UINT8  Ch0_Bit19_swizzling;
  UINT8  Ch0_Bit20_swizzling;
  UINT8  Ch0_Bit21_swizzling;
  UINT8  Ch0_Bit22_swizzling;
  UINT8  Ch0_Bit23_swizzling;
  UINT8  Ch0_Bit24_swizzling;
  UINT8  Ch0_Bit25_swizzling;
  UINT8  Ch0_Bit26_swizzling;
  UINT8  Ch0_Bit27_swizzling;
  UINT8  Ch0_Bit28_swizzling;
  UINT8  Ch0_Bit29_swizzling;
  UINT8  Ch0_Bit30_swizzling;
  UINT8  Ch0_Bit31_swizzling;
  UINT8  Ch1_Bit00_swizzling;
  UINT8  Ch1_Bit01_swizzling;
  UINT8  Ch1_Bit02_swizzling;
  UINT8  Ch1_Bit03_swizzling;
  UINT8  Ch1_Bit04_swizzling;
  UINT8  Ch1_Bit05_swizzling;
  UINT8  Ch1_Bit06_swizzling;
  UINT8  Ch1_Bit07_swizzling;
  UINT8  Ch1_Bit08_swizzling;
  UINT8  Ch1_Bit09_swizzling;
  UINT8  Ch1_Bit10_swizzling;
  UINT8  Ch1_Bit11_swizzling;
  UINT8  Ch1_Bit12_swizzling;
  UINT8  Ch1_Bit13_swizzling;
  UINT8  Ch1_Bit14_swizzling;
  UINT8  Ch1_Bit15_swizzling;
  UINT8  Ch1_Bit16_swizzling;
  UINT8  Ch1_Bit17_swizzling;
  UINT8  Ch1_Bit18_swizzling;
  UINT8  Ch1_Bit19_swizzling;
  UINT8  Ch1_Bit20_swizzling;
  UINT8  Ch1_Bit21_swizzling;
  UINT8  Ch1_Bit22_swizzling;
  UINT8  Ch1_Bit23_swizzling;
  UINT8  Ch1_Bit24_swizzling;
  UINT8  Ch1_Bit25_swizzling;
  UINT8  Ch1_Bit26_swizzling;
  UINT8  Ch1_Bit27_swizzling;
  UINT8  Ch1_Bit28_swizzling;
  UINT8  Ch1_Bit29_swizzling;
  UINT8  Ch1_Bit30_swizzling;
  UINT8  Ch1_Bit31_swizzling;
  UINT8  Ch2_Bit00_swizzling;
  UINT8  Ch2_Bit01_swizzling;
  UINT8  Ch2_Bit02_swizzling;
  UINT8  Ch2_Bit03_swizzling;
  UINT8  Ch2_Bit04_swizzling;
  UINT8  Ch2_Bit05_swizzling;
  UINT8  Ch2_Bit06_swizzling;
  UINT8  Ch2_Bit07_swizzling;
  UINT8  Ch2_Bit08_swizzling;
  UINT8  Ch2_Bit09_swizzling;
  UINT8  Ch2_Bit10_swizzling;
  UINT8  Ch2_Bit11_swizzling;
  UINT8  Ch2_Bit12_swizzling;
  UINT8  Ch2_Bit13_swizzling;
  UINT8  Ch2_Bit14_swizzling;
  UINT8  Ch2_Bit15_swizzling;
  UINT8  Ch2_Bit16_swizzling;
  UINT8  Ch2_Bit17_swizzling;
  UINT8  Ch2_Bit18_swizzling;
  UINT8  Ch2_Bit19_swizzling;
  UINT8  Ch2_Bit20_swizzling;
  UINT8  Ch2_Bit21_swizzling;
  UINT8  Ch2_Bit22_swizzling;
  UINT8  Ch2_Bit23_swizzling;
  UINT8  Ch2_Bit24_swizzling;
  UINT8  Ch2_Bit25_swizzling;
  UINT8  Ch2_Bit26_swizzling;
  UINT8  Ch2_Bit27_swizzling;
  UINT8  Ch2_Bit28_swizzling;
  UINT8  Ch2_Bit29_swizzling;
  UINT8  Ch2_Bit30_swizzling;
  UINT8  Ch2_Bit31_swizzling;
  UINT8  Ch3_Bit00_swizzling;
  UINT8  Ch3_Bit01_swizzling;
  UINT8  Ch3_Bit02_swizzling;
  UINT8  Ch3_Bit03_swizzling;
  UINT8  Ch3_Bit04_swizzling;
  UINT8  Ch3_Bit05_swizzling;
  UINT8  Ch3_Bit06_swizzling;
  UINT8  Ch3_Bit07_swizzling;
  UINT8  Ch3_Bit08_swizzling;
  UINT8  Ch3_Bit09_swizzling;
  UINT8  Ch3_Bit10_swizzling;
  UINT8  Ch3_Bit11_swizzling;
  UINT8  Ch3_Bit12_swizzling;
  UINT8  Ch3_Bit13_swizzling;
  UINT8  Ch3_Bit14_swizzling;
  UINT8  Ch3_Bit15_swizzling;
  UINT8  Ch3_Bit16_swizzling;
  UINT8  Ch3_Bit17_swizzling;
  UINT8  Ch3_Bit18_swizzling;
  UINT8  Ch3_Bit19_swizzling;
  UINT8  Ch3_Bit20_swizzling;
  UINT8  Ch3_Bit21_swizzling;
  UINT8  Ch3_Bit22_swizzling;
  UINT8  Ch3_Bit23_swizzling;
  UINT8  Ch3_Bit24_swizzling;
  UINT8  Ch3_Bit25_swizzling;
  UINT8  Ch3_Bit26_swizzling;
  UINT8  Ch3_Bit27_swizzling;
  UINT8  Ch3_Bit28_swizzling;
  UINT8  Ch3_Bit29_swizzling;
  UINT8  Ch3_Bit30_swizzling;
  UINT8  Ch3_Bit31_swizzling;
  UINT8  reserved[14];
} PlatfromDramConf;

typedef struct _IAFWDramConfig_
{
  UINT32            Platform_override;
  UINT32            BRAM_Flushing;
  UINT32            Message_level_mask;
  PlatfromDramConf  PlatformDram0;
  PlatfromDramConf  PlatformDram1;
  PlatfromDramConf  PlatformDram2;
  PlatfromDramConf  PlatformDram3;
  PlatfromDramConf  PlatformDram4;
  PlatfromDramConf  PlatformDram5;
} IAFWDramConfig;

// XML original class name: Pin
typedef struct _GpioConfig_
{
  UINT32  half0;
  UINT32  half1;
} GpioConfig;

typedef struct _GpioProfile_
{
  UINT32  offset;
  UINT32  numGpioEntries;
} GpioProfile;

typedef struct _GpioTable_
{
  UINT32      marker;
  GpioConfig  *gpioCfg;
} GpioTable;

// XML original class name: PlatformConfig
typedef struct _IAFWPlatformConfig_
{
  UINT32       numProfiles;
  GpioProfile  *profile;
} IAFWPlatformConfig;

typedef struct _BoardINFO_
{
  UINT8  BOARDID;
  UINT8  FABID;
} BoardINFO;

typedef struct _IAFWSOCSkuInfo_
{
  BoardINFO  Board0;
} IAFWSOCSkuInfo;

typedef struct _IafwBiosKnobs_
{
  UINT8  Reserved1;
  UINT8  Reserved2;
  UINT8  Reserved3;
  UINT8  Reserved4;
  UINT8  Reserved5;
  UINT8  Reserved6;
  UINT8  BootMode;
  UINT8  HifType;
} IafwBiosKnobs;

typedef struct _IafwSmipLayout_
{
  UINT32              IafwSmipSignature;
  UINT8               IafwSmipVersion;
  IafwBiosKnobs       Reserved;
  Bcu                 BatteryCtrlUnit;
  IAFWBatteryConfig   BatteryConfig;
  IAFWMultiBOMConfig  MultiBOMConfig;
  IAFWFeatureConfig   FeatureConfig;
  IAFWDramConfig      DramConfig;
  IAFWSOCSkuInfo      SOCSkuInfo;
  IAFWPlatformConfig  PlatformConfig;
  UINT32              IafwSmipFooter;
} IafwSmipLayout;

#pragma pack(pop)
#endif