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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
|
/*++
Copyright (c) 2004 - 2014, 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 that 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.
Module Name:
SetupVariable.h
Abstract:
Driver configuration include file
--*/
#ifndef _SETUP_VARIABLE_H
#define _SETUP_VARIABLE_H
//
// ---------------------------------------------------------------------------
//
// Driver Configuration
//
// ---------------------------------------------------------------------------
//
//
// {EC87D643-EBA4-4bb5-A1E5-3F3E36B20DA9}
//
#define SYSTEM_CONFIGURATION_GUID\
{ \
0xec87d643, 0xeba4, 0x4bb5, 0xa1, 0xe5, 0x3f, 0x3e, 0x36, 0xb2, 0xd, 0xa9 \
}
#define ROOT_SECURITY_GUID\
{ \
0xd387d688, 0xeba4, 0x45b5, 0xa1, 0xe5, 0x3f, 0x3e, 0x36, 0xb2, 0xd, 0x37 \
}
//
// {6936B3BD-4350-46d9-8940-1FA20961AEB1}
//
#define SYSTEM_ROOT_MAIN_GUID\
{ \
0x6936b3bd, 0x4350, 0x46d9, 0x89, 0x40, 0x1f, 0xa2, 0x9, 0x61, 0xae, 0xb1 \
}
//
// {21FEE8DB-0D29-477e-B5A9-96EB343BA99C}
//
#define ADDITIONAL_SYSTEM_INFO_GUID\
{ \
0x21fee8db, 0xd29, 0x477e, 0xb5, 0xa9, 0x96, 0xeb, 0x34, 0x3b, 0xa9, 0x9c \
}
#define SETUP_GUID { 0xEC87D643, 0xEBA4, 0x4BB5, 0xA1, 0xE5, 0x3F, 0x3E, 0x36, 0xB2, 0x0D, 0xA9 }
// {1B838190-4625-4ead-ABC9-CD5E6AF18FE0}
#define EFI_HII_EXPORT_DATABASE_GUID { 0x1b838190, 0x4625, 0x4ead, 0xab, 0xc9, 0xcd, 0x5e, 0x6a, 0xf1, 0x8f, 0xe0 }
#define PASSWORD_MAX_SIZE 20
#define MAX_CUSTOM_VID_TABLE_STATES 6
//
// Overclocking Source Defines
//
#define OVERCLOCK_SOURCE_BIOS 0
#define OVERCLOCK_SOURCE_OS 1
#define PCH_PCIE_MAX_ROOT_PORTS 4
#pragma pack(1)
// NOTE: When you add anything to this structure,
// you MUST add it to the very bottom!!!!
// You must make sure the structure size is able to divide by 32!
typedef struct {
//
// Floppy
//
UINT8 Floppy;
UINT8 FloppyLockHide;
UINT8 FloppyWriteProtect;
UINT8 FloppyWriteProtectLockHide;
//
// System ports
//
UINT8 Serial;
UINT8 SerialLockHide;
UINT8 Serial2;
UINT8 Serial2LockHide;
UINT8 Parallel;
UINT8 ParallelLockHide;
UINT8 ParallelMode;
UINT8 ParallelModeLockHide;
UINT8 AllUsb;
UINT8 UsbPortsLockHide;
UINT8 Usb2;
UINT8 Usb2LockHide;
UINT8 UsbLegacy;
UINT8 UsbLegacyLockHide;
UINT8 Audio;
UINT8 AudioLockHide;
UINT8 Lan;
UINT8 LanLockHide;
//
// Keyboard
//
UINT8 Numlock;
UINT8 NumlockLockHide;
//
// ECIR
//
UINT8 ECIR;
UINT8 ECIRLockHide;
//
// Power State
//
UINT8 PowerState;
UINT8 PowerStateLockHide;
//
// Wake on RTC variables
//
UINT8 WakeOnRtcS5;
UINT8 WakeOnRtcS5LockHide;
UINT8 RTCWakeupDate;
UINT8 RTCWakeupDateLockHide;
UINT8 RTCWakeupTimeHour;
UINT8 RTCWakeupHourLockHide;
UINT8 RTCWakeupTimeMinute;
UINT8 RTCWakeupMinuteLockHide;
UINT8 RTCWakeupTimeSecond;
UINT8 RTCWakeupSecondLockHide;
//
// Wake On Lan
//
UINT8 WakeOnLanS5;
UINT8 WakeOnLanS5LockHide;
//Spread spectrum
UINT8 SpreadSpectrum;
//
// Boot Order
//
UINT8 BootOrder[8];
UINT8 BootOrderLockHide;
//
// Hard Drive Boot Order
//
UINT8 HardDriveBootOrder[8];
UINT8 HardDriveBootOrderLockHide;
//
// CD Drive Boot Order
//
UINT8 CdDriveBootOrder[4];
UINT8 CdDriveBootOrderLockHide;
//
// FDD Drive Boot Order
//
UINT8 FddDriveBootOrder[4];
UINT8 FddDriveBootOrderLockHide;
//
// Drive Boot Order
//
UINT8 DriveBootOrder[16];
UINT8 DriveBootOrderLockHide;
//
// Boot Menu Type
//
UINT8 BootMenuType;
UINT8 BootMenuTypeLockHide;
//
// Boot from Removable Devices
//
UINT8 BootFloppy;
UINT8 BootFloppyLockHide;
//
// Boot from Optical Devices
//
UINT8 BootCd;
UINT8 BootCdLockHide;
//
// Boot from Network
//
UINT8 BootNetwork;
UINT8 BootNetworkLockHide;
//
// Boot USB
//
UINT8 BootUsb;
UINT8 BootUsbLockHide;
//
// USB Zip Emulation Type
//
UINT8 UsbZipEmulation;
UINT8 UsbZipEmulationLockHide;
//
// USB Devices Boot First in Boot Order
//
UINT8 UsbDevicesBootFirst;
UINT8 UsbDevicesBootFirstLockHide;
//
// USB Boot Device SETUP Emulation
//
UINT8 UsbSetupDeviceEmulation;
UINT8 UsbSetupDeviceEmulationLockHide;
//
// BIOS INT13 Emulation for USB Mass Devices
//
UINT8 UsbBIOSINT13DeviceEmulation;
UINT8 UsbBIOSINT13DeviceEmulationLockHide;
//
// BIOS INT13 Emulation Size for USB Mass Devices
//
UINT16 UsbBIOSINT13DeviceEmulationSize;
UINT8 UsbBIOSINT13DeviceEmulationSizeLockHide;
//
// Dummy place holder to prevent VFR compiler problem.
//
UINT16 DummyDataForVfrBug; // Don't change or use.
//
// Language Select
//
UINT8 LanguageSelect;
//
// SATA Type (Ide, Ahci, Raid)
//
UINT8 SataType;
UINT8 SataTypeLockHide;
UINT8 SataTestMode;
//
// Fixed Disk Boot Sector (Fdbs)
//
UINT8 Fdbs;
UINT8 FdbsLockHide;
//
// DisplaySetupPrompt
//
UINT8 DisplaySetupPrompt;
UINT8 DisplaySetupPromptLockHide;
//
// ASF
//
UINT8 Asf;
UINT8 AsfLockHide;
//
// Event Logging
//
UINT8 EventLogging;
UINT8 EventLoggingLockHide;
//
// Clear Event Log
//
UINT8 ClearEvents;
UINT8 ClearEventsLockHide;
//
// Expansion Card Text
//
UINT8 ExpansionCardText;
UINT8 ExpansionCardTextLockHide;
//
// Video Adaptor
//
UINT8 PrimaryVideoAdaptor;
UINT8 PrimaryVideoAdaptorLockHide;
//
// Chassis intrusion
//
UINT8 IntruderDetection;
UINT8 IntruderDetectionLockHide;
//
// User Access Level
//
UINT8 UserPasswordLevel;
UINT8 UserPasswordLevelLockHide;
//
// Maximum FSB Automatic/Disable
//
UINT8 MaxFsb;
UINT8 MaxFsbLockHide;
//
// Hard Disk Pre-delay
//
UINT8 HddPredelay;
UINT8 HddPredelayLockHide;
//
// S.M.A.R.T. Mode
//
UINT8 SmartMode;
UINT8 SmartModeLockHide;
//
// ACPI Suspend State
//
UINT8 AcpiSuspendState;
UINT8 AcpiSuspendStateLockHide;
//
// PCI Latency Timer
//
UINT8 PciLatency;
UINT8 PciLatencyLockHide;
//
// Fan Control
//
UINT8 FanControl;
UINT8 FanControlLockHide;
//
// CPU Fan Control
//
UINT8 CpuFanControl;
UINT8 CpuFanControlLockHide;
//
// Lowest Fan Speed
//
UINT8 LowestFanSpeed;
UINT8 LowestFanSpeedLockHide;
//
// Processor (CPU)
//
UINT8 CpuFlavor;
UINT8 CpuidMaxValue;
UINT8 CpuidMaxValueLockHide;
UINT8 ExecuteDisableBit;
UINT8 ExecuteDisableBitLockHide;
//
// EIST or GV3 setup option
//
UINT8 ProcessorEistEnable;
UINT8 ProcessorEistEnableLockHide;
//
// C1E Enable
//
UINT8 ProcessorC1eEnable;
UINT8 ProcessorC1eEnableLockHide;
//
// Enabling CPU C-States of processor
//
UINT8 ProcessorCcxEnable;
UINT8 ProcessorCcxEnableLockHide;
//
// Package C-State Limit
//
UINT8 PackageCState;
UINT8 PackageCStateLockHide;
//
// Enable/Disable NHM C3(ACPI C2) report to OS
//
UINT8 OSC2Report;
UINT8 OSC2ReportLockHide;
//
// Enable/Disable NHM C6(ACPI C3) report to OS
//
UINT8 C6Enable;
UINT8 C6EnableLockHide;
//
// Enable/Disable NHM C7(ACPI C3) report to OS
//
UINT8 C7Enable;
UINT8 C7EnableLockHide;
//
// EIST/PSD Function select option
//
UINT8 ProcessorEistPsdFunc;
UINT8 ProcessorEistPsdFuncLockHide;
//
//
//
UINT8 CPU00;
UINT8 CPU01;
//
//
//
UINT8 CPU02;
UINT8 CPU03;
//
//
//
UINT8 CPU04;
UINT8 CPU05;
//
//
//
UINT8 CPU06;
UINT8 CPU07;
//
//
//
UINT8 CPU08;
UINT8 CPU09;
//
//
//
UINT8 CPU10;
UINT8 CPU11;
//
//
//
UINT8 CPU12;
UINT8 CPU13;
//
//
//
UINT8 CPU14;
UINT8 CPU15;
//
//
//
UINT8 CPU16;
UINT8 CPU17;
//
//
//
UINT8 CPU18;
UINT8 CPU19;
//
//
//
UINT8 CPU20;
UINT8 CPU21;
//
//
//
UINT8 CPU22;
UINT8 CPU23;
//
//
//
UINT8 CPU24;
UINT8 CPU25;
//
//
//
UINT8 CPU26;
UINT8 CPU27;
//
//
//
UINT8 CPU28;
UINT8 CPU29;
//
//
//
UINT8 CPU30;
UINT8 CPU31;
//
//
//
UINT8 CPU32;
UINT8 CPU33;
//
//
//
UINT8 CPU34;
UINT8 CPU35;
//
//
//
UINT8 CPU36;
UINT8 CPU37;
//
//
//
UINT8 CPU38;
UINT8 CPU39;
//
//
//
UINT16 CPU40;
UINT8 CPU41;
//
//
//
UINT8 CPU42;
UINT8 CPU43;
//
//
//
UINT16 CPU44;
UINT8 CPU45;
//
//
//
UINT8 CPU46;
UINT8 CPU47;
//
//
//
UINT8 CPU48;
UINT8 CPU49;
//
//
//
UINT8 CPU50;
UINT8 CPU51;
//
//
//
UINT8 CPU52;
UINT8 CPU53;
//
//
//
UINT8 CPU54;
UINT8 CPU55;
//
//
//
UINT8 CPU56;
UINT8 CPU57;
//
//
//
UINT8 CPU58;
UINT8 CPU59;
//
//
//
UINT8 CPU60;
UINT8 CPU61;
//
//
//
UINT8 CPU62;
UINT8 CPU63;
//
//
//
UINT8 CPU64;
UINT8 CPU65;
//
//
//
UINT8 CPU66;
UINT8 CPU67;
//
//
//
UINT16 CPU68;
UINT8 CPU69;
//
//
//
UINT16 CPU70;
//
//
//
UINT8 CPU71;
//
//
//
UINT8 MEM00;
UINT8 MEM01;
//
//
//
UINT8 MEM02;
UINT8 MEM03;
UINT16 MEM04;
UINT8 MEM05;
UINT8 MEM06;
UINT8 MEM07;
UINT8 MEM08;
UINT8 MEM09;
UINT8 MEM10;
UINT8 MEM11;
UINT8 MEM12;
UINT8 MEM13;
UINT8 MEM14;
UINT8 MEM15;
UINT8 MEM16;
UINT8 MEM17;
UINT16 MEM18;
UINT8 MEM19;
UINT8 MEM20;
UINT8 MEM21;
UINT8 MEM22;
UINT8 MEM23;
UINT8 MEM24;
UINT8 MEM25;
UINT8 MEM26;
UINT8 MEM27;
UINT8 MEM28;
UINT8 MEM29;
UINT8 MEM30;
UINT8 MEM31;
UINT8 MEM32;
UINT8 MEM33;
UINT8 MEM34;
UINT8 MEM35;
//
//
//
UINT8 MEM36;
UINT8 MEM37;
UINT8 MEM38;
UINT8 MEM39;
//
//
//
UINT8 MEM40;
UINT8 MEM41;
UINT8 MEM42;
UINT8 MEM43;
UINT8 MEM44;
UINT8 MEM45;
UINT8 MEM46;
UINT8 MEM47;
//
// Port 80 decode 0/1 - PCI/LPC
UINT8 Port80Route;
UINT8 Port80RouteLockHide;
//
// ECC Event Logging
//
UINT8 EccEventLogging;
UINT8 EccEventLoggingLockHide;
//
// TPM Enable/Disable
//
UINT8 ETpm;
//
// TPM question 0 = Disabled, 1 = Enabled
//
UINT8 ETpmClear;
//
// Secondary SATA Controller question 0 = Disabled, 1 = Enabled
//
UINT8 ExtSata;
UINT8 ExtSataLockHide;
//
// Mode selection for Secondary SATA Controller (0=IDE, 1=RAID)
//
UINT8 ExtSataMode;
UINT8 ExtSataModeLockHide;
//
// LT Technology 0/1 -> Disable/Enable
//
UINT8 LtTechnology;
UINT8 LtTechnologyLockHide;
//
// HPET Support 0/1 -> Disable/Enable
//
UINT8 Hpet;
UINT8 HpetLockHide;
//
// ICH Function Level Reset enable/disable
//
UINT8 FlrCapability;
UINT8 FlrCapabilityLockHide;
// VT-d Option
UINT8 VTdSupport;
UINT8 VTdSupportLockHide;
UINT8 InterruptRemap;
UINT8 InterruptRemapLockHide;
UINT8 Isoc;
UINT8 IsocLockHide;
UINT8 CoherencySupport;
UINT8 CoherencySupportLockHide;
UINT8 ATS;
UINT8 ATSLockHide;
UINT8 PassThroughDma;
UINT8 PassThroughDmaLockHide;
//
// IGD option
//
UINT8 GraphicsDriverMemorySize;
UINT8 GraphicsDriverMemorySizeLockHide;
//
// Discrete SATA Type (Ide, Raid, Ahci)
//
UINT8 ExtSataMode2;
UINT8 ExtSataMode2LockHide;
UINT8 ProcessorReserve00;
UINT8 ProcessorReserve01;
//
// IGD Aperture Size question
//
UINT8 IgdApertureSize;
UINT8 IgdApertureSizeLockHide;
//
// Boot Display Device
//
UINT8 BootDisplayDevice;
UINT8 BootDisplayDeviceLockHide;
//
// System fan speed duty cycle
//
UINT8 SystemFanDuty;
UINT8 SystemFanDutyLockHide;
//
// S3 state LED indicator
//
UINT8 S3StateIndicator;
UINT8 S3StateIndicatorLockHide;
//
// S1 state LED indicator
//
UINT8 S1StateIndicator;
UINT8 S1StateIndicatorLockHide;
//
// PS/2 Wake from S5
//
UINT8 WakeOnS5Keyboard;
UINT8 WakeOnS5KeyboardLockHide;
//
// SATA Controller question 0 = Disabled, 1 = Enabled
//
UINT8 Sata;
UINT8 SataLockHide;
//
// PS2 port
//
UINT8 PS2;
//
// No VideoBeep
//
UINT8 NoVideoBeepEnable;
//
// Integrated Graphics Device
//
UINT8 Igd;
//
// Video Device select order
//
UINT8 VideoSelectOrder[8];
// Flash update sleep delay
UINT8 FlashSleepDelay;
UINT8 FlashSleepDelayLockHide;
//
// Boot Display Device2
//
UINT8 BootDisplayDevice2;
UINT8 BootDisplayDevice2LockHide;
//
// Flat Panel
//
UINT8 EdpInterfaceType;
UINT8 EdpInterfaceTypeLockHide;
UINT8 LvdsInterfaceType;
UINT8 LvdsInterfaceTypeLockHide;
UINT8 ColorDepth;
UINT8 ColorDepthLockHide;
UINT8 EdidConfiguration;
UINT8 EdidConfigurationLockHide;
UINT8 PwmReserved;
UINT8 MaxInverterPWMLockHide;
UINT8 PreDefinedEdidConfiguration;
UINT8 PreDefinedEdidConfigurationLockHide;
UINT16 ScreenBrightnessResponseTime;
UINT8 ScreenBrightnessResponseTimeLockHide;
UINT8 Serial3;
UINT8 Serial3LockHide;
UINT8 Serial4;
UINT8 Serial4LockHide;
UINT8 CurrentSetupProfile;
UINT8 CurrentSetupProfileLockHide;
//
// FSC system Variable
//
UINT8 CPUFanUsage;
UINT8 CPUFanUsageLockHide;
UINT16 CPUUnderSpeedthreshold;
UINT8 CPUUnderSpeedthresholdLockHide;
UINT8 CPUFanControlMode;
UINT8 CPUFanControlModeLockHide;
UINT16 Voltage12UnderVolts;
UINT8 Voltage12UnderVoltsLockHide;
UINT16 Voltage12OverVolts;
UINT8 Voltage12OverVoltsLockHide;
UINT16 Voltage5UnderVolts;
UINT8 Voltage5UnderVoltsLockHide;
UINT16 Voltage5OverVolts;
UINT8 Voltage5OverVoltsLockHide;
UINT16 Voltage3p3UnderVolts;
UINT8 Voltage3p3UnderVoltsLockHide;
UINT16 Voltage3p3OverVolts;
UINT8 Voltage3p3OverVoltsLockHide;
UINT16 Voltage2p5UnderVolts;
UINT8 Voltage2p5UnderVoltsLockHide;
UINT16 Voltage2p5OverVolts;
UINT8 Voltage2p5OverVoltsLockHide;
UINT16 VoltageVccpUnderVolts;
UINT8 VoltageVccpUnderVoltsLockHide;
UINT16 VoltageVccpOverVolts;
UINT8 VoltageVccpOverVoltsLockHide;
UINT16 Voltage5BackupUnderVolts;
UINT8 Voltage5BackupUnderVoltsLockHide;
UINT16 Voltage5BackupOverVolts;
UINT8 Voltage5BackupOverVoltsLockHide;
UINT16 VS3p3StbyUnderVolt;
UINT8 VS3p3StbyUnderVoltLockHide;
UINT16 VS3p3StbyOverVolt;
UINT8 VS3p3StbyOverVoltLockHide;
UINT8 CPUFanMinDutyCycle;
UINT8 CPUFanMinDutyCycleLockHide;
UINT8 CPUFanMaxDutyCycle;
UINT8 CPUFanMaxDutyCycleLockHide;
UINT8 CPUFanOnDutyCycle;
UINT8 CPUFanOnDutyCycleLockHide;
UINT16 CpuOverTemp;
UINT8 CpuOverTempLockHide;
UINT16 CpuControlTemp;
UINT8 CpuControlTempLockHide;
UINT16 CpuAllOnTemp;
UINT8 CpuAllOnTempLockHide;
UINT8 CpuResponsiveness;
UINT8 CpuResponsivenessLockHide;
UINT8 CpuDamping;
UINT8 CpuDampingLockHide;
UINT16 PchOverTemp;
UINT8 PchOverTempLockHide;
UINT16 PchControlTemp;
UINT8 PchControlTempLockHide;
UINT16 PchAllOnTemp;
UINT8 PchAllOnTempLockHide;
UINT8 PchResponsiveness;
UINT8 PchResponsivenessLockHide;
UINT8 PchDamping;
UINT8 PchDampingLockHide;
UINT16 MemoryOverTemp;
UINT8 MemoryOverTempLockHide;
UINT16 MemoryControlTemp;
UINT8 MemoryControlTempLockHide;
UINT16 MemoryAllOnTemp;
UINT8 MemoryAllOnTempLockHide;
UINT8 MemoryResponsiveness;
UINT8 MemoryResponsivenessLockHide;
UINT8 MemoryDamping;
UINT8 MemoryDampingLockHide;
UINT16 VROverTemp;
UINT8 VROverTempLockHide;
UINT16 VRControlTemp;
UINT8 VRControlTempLockHide;
UINT16 VRAllOnTemp;
UINT8 VRAllOnTempLockHide;
UINT8 VRResponsiveness;
UINT8 VRResponsivenessLockHide;
UINT8 VRDamping;
UINT8 VRDampingLockHide;
UINT8 LvdsBrightnessSteps;
UINT8 LvdsBrightnessStepsLockHide;
UINT8 EdpDataRate;
UINT8 EdpDataRateLockHide;
UINT16 LvdsPowerOnToBacklightEnableDelayTime;
UINT8 LvdsPowerOnToBacklightEnableDelayTimeLockHide;
UINT16 LvdsPowerOnDelayTime;
UINT8 LvdsPowerOnDelayTimeLockHide;
UINT16 LvdsBacklightOffToPowerDownDelayTime;
UINT8 LvdsBacklightOffToPowerDownDelayTimeLockHide;
UINT16 LvdsPowerDownDelayTime;
UINT8 LvdsPowerDownDelayTimeLockHide;
UINT16 LvdsPowerCycleDelayTime;
UINT8 LvdsPowerCycleDelayTimeLockHide;
UINT8 IgdFlatPanel;
UINT8 IgdFlatPanelLockHide;
UINT8 Lan2;
UINT8 Lan2LockHide;
UINT8 SwapMode;
UINT8 SwapModeLockHide;
UINT8 Sata0HotPlugCap;
UINT8 Sata0HotPlugCapLockHide;
UINT8 Sata1HotPlugCap;
UINT8 Sata1HotPlugCapLockHide;
UINT8 UsbCharging;
UINT8 UsbChargingLockHide;
UINT8 Cstates;
UINT8 EnableC4;
UINT8 EnableC6;
UINT8 FastBoot;
UINT8 EfiNetworkSupport;
UINT8 PxeRom;
//Add for PpmPlatformPlicy
UINT8 PPM00;
UINT8 PPM01;
UINT8 PPM02;
UINT8 PPM03;
UINT8 PPM04;
UINT8 PPM05;
UINT8 PPM06;
UINT8 PPM07;
UINT8 PPM08;
UINT8 PPM09;
UINT8 PPM10;
UINT8 QuietBoot;
UINT8 LegacyUSBBooting;
UINT8 PwmReserved02;
//
// Thermal Policy Values
//
UINT8 EnableDigitalThermalSensor;
UINT8 PassiveThermalTripPoint;
UINT8 PassiveTc1Value;
UINT8 PassiveTc2Value;
UINT8 PassiveTspValue;
UINT8 DisableActiveTripPoints;
UINT8 CriticalThermalTripPoint;
UINT8 IchPciExp[4];
UINT8 DeepStandby;
UINT8 AlsEnable;
UINT8 IgdLcdIBia;
UINT8 LogBootTime;
UINT8 PcieRootPortIOApic[4];
UINT8 IffsEnable;
UINT8 IffsOnS3RtcWake;
UINT8 IffsS3WakeTimerMin;
UINT8 IffsOnS3CritBattWake;
UINT8 IffsCritBattWakeThreshold;
UINT8 ScramblerSupport;
UINT8 SecureBoot;
UINT8 SecureBootCustomMode;
UINT8 SecureBootUserPhysicalPresent;
UINT8 CoreFreMultipSelect;
UINT8 MaxCState;
UINT8 PanelScaling;
UINT8 IgdLcdIGmchBlc;
UINT8 GfxBoost;
UINT8 IgdThermal;
UINT8 SEC00;
UINT8 SEC01;
UINT8 SEC02;
UINT8 SEC03;
UINT8 MeasuredBootEnable;
UINT8 UseProductKey;
//Image Signal Processor PCI Device Configuration
//
UINT8 ISPDevSel;
UINT8 ISPEn;
// Passwords
UINT16 UserPassword[PASSWORD_MAX_SIZE];
UINT16 AdminPassword[PASSWORD_MAX_SIZE];
UINT8 Tdt;
UINT8 Recovery;
UINT8 Suspend;
UINT8 TdtState;
UINT8 TdtEnrolled;
UINT8 PBAEnable;
UINT8 HpetBootTime;
UINT8 UsbDebug;
UINT8 Lpe;
//
// LPSS Configuration
//
UINT8 LpssPciModeEnabled;
//Scc
UINT8 LpsseMMCEnabled;
UINT8 LpssSdioEnabled;
UINT8 LpssSdcardEnabled;
UINT8 LpssSdCardSDR25Enabled;
UINT8 LpssSdCardDDR50Enabled;
UINT8 LpssMipiHsi;
UINT8 LpsseMMC45Enabled;
UINT8 LpsseMMC45DDR50Enabled;
UINT8 LpsseMMC45HS200Enabled;
UINT8 LpsseMMC45RetuneTimerValue;
UINT8 eMMCBootMode;
//LPSS2
UINT8 LpssDma1Enabled;
UINT8 LpssI2C0Enabled;
UINT8 LpssI2C1Enabled;
UINT8 LpssI2C2Enabled;
UINT8 LpssI2C3Enabled;
UINT8 LpssI2C4Enabled;
UINT8 LpssI2C5Enabled;
UINT8 LpssI2C6Enabled;
//LPSS1
UINT8 LpssDma0Enabled;
UINT8 LpssPwm0Enabled;
UINT8 LpssPwm1Enabled;
UINT8 LpssHsuart0Enabled;
UINT8 LpssHsuart1Enabled;
UINT8 LpssSpiEnabled;
UINT8 I2CTouchAd;
UINT8 GTTSize;
//
// DVMT5.0 Graphic memory setting
//
UINT8 IgdDvmt50PreAlloc;
UINT8 IgdDvmt50TotalAlloc;
UINT8 IgdTurboEnabled;
//
// Usb Config
//
UINT8 UsbAutoMode; // PCH controller Auto mode
UINT8 UsbXhciSupport;
UINT8 Hsic0;
UINT8 PchUsb30Mode;
UINT8 PchUsb30Streams;
UINT8 PchUsb20;
UINT8 PchUsbPerPortCtl;
UINT8 PchUsbPort[8];
UINT8 PchUsbRmh;
UINT8 PchUsbOtg;
UINT8 PchUsbVbusOn; //OTG VBUS control
UINT8 PchFSAOn; //FSA control
UINT8 EhciPllCfgEnable;
//Gbe
UINT8 PcieRootPortSpeed[PCH_PCIE_MAX_ROOT_PORTS];
UINT8 SlpLanLowDc;
UINT8 ISCT00;
UINT8 ISCT01;
UINT8 ISCT02;
UINT8 ISCT03;
UINT8 ISCT04;
UINT8 ISCT05;
UINT8 ISCT06;
UINT8 ISCT07;
//
// Azalia Configuration
//
UINT8 PchAzalia;
UINT8 AzaliaVCiEnable;
UINT8 AzaliaDs;
UINT8 AzaliaPme;
UINT8 HdmiCodec;
UINT8 UartInterface;
UINT8 PcuUart1;
//UINT8 PcuUart2;//for A0
UINT8 StateAfterG3;
UINT8 EnableClockSpreadSpec;
UINT8 GraphicReserve00;
UINT8 GOPEnable;
UINT8 GOPBrightnessLevel; //Gop Brightness level
UINT8 PavpMode;
UINT8 SEC04;
UINT8 SEC05;
UINT8 SEC06;
UINT8 SEC07;
UINT8 HdmiCodecPortB;
UINT8 HdmiCodecPortC;
UINT8 HdmiCodecPortD;
UINT8 LidStatus;
UINT8 Reserved00;
UINT8 Reserved01;
UINT16 Reserved02;
UINT16 Reserved03;
UINT16 Reserved04;
UINT16 Reserved05;
UINT16 Reserved06;
UINT16 Reserved07;
UINT16 Reserved08;
UINT16 Reserved09;
UINT16 Reserved0A;
UINT16 Reserved0B;
UINT16 Reserved0C;
UINT16 Reserved0D;
UINT8 Reserved0E;
UINT8 Reserved0F;
UINT32 Reserved10;
UINT32 Reserved11;
UINT32 Reserved12;
UINT32 Reserved13;
UINT32 Reserved14;
UINT8 Reserved15;
UINT8 Reserved16;
UINT8 Reserved17;
UINT8 Reserved18;
UINT8 Reserved19;
UINT8 Reserved1A;
UINT8 Reserved1B;
UINT8 Reserved1C;
UINT8 Reserved1D;
UINT8 Reserved1E;
UINT8 Reserved1F;
UINT8 Reserved20;
UINT8 PmicEnable;
UINT8 IdleReserve;
UINT8 TSEGSizeSel;
UINT8 ACPIMemDbg;
UINT8 ExISupport;
UINT8 BatteryChargingSolution; //0-non ULPMC 1-ULPMC
UINT8 PnpSettings;
UINT8 CfioPnpSettings;
UINT8 PchEhciDebug;
UINT8 CRIDSettings;
UINT8 ULPMCFWLock;
UINT8 SpiRwProtect;
UINT8 GraphicReserve02;
UINT8 PDMConfig;
UINT16 LmMemSize;
UINT8 PunitBIOSConfig;
UINT8 LpssSdioMode;
UINT8 ENDBG2;
UINT8 WittEnable;
UINT8 UtsEnable;
UINT8 TristateLpc;
UINT8 GraphicReserve05;
UINT8 UsbXhciLpmSupport;
UINT8 EnableAESNI;
UINT8 SecureErase;
UINT8 MmioSize;
UINT8 SAR1;
UINT8 DisableCodec262;
UINT8 ReservedO;
UINT8 PcieDynamicGating; // Need PMC enable it first from PMC 0x3_12 MCU 318.
UINT8 MipiDsi;
//Added flow control item for UART1 and UART2
UINT8 LpssHsuart0FlowControlEnabled;
UINT8 LpssHsuart1FlowControlEnabled;
UINT8 SdCardRemovable; // ACPI reporting MMC/SD media as: removable/non-removable
UINT8 GpioWakeCapability;
} SYSTEM_CONFIGURATION;
#pragma pack()
#ifndef PLATFORM_SETUP_VARIABLE_NAME
#define PLATFORM_SETUP_VARIABLE_NAME L"Setup"
#endif
#pragma pack(1)
typedef struct{
// Passwords
UINT16 UserPassword[PASSWORD_MAX_SIZE];
UINT16 AdminPassword[PASSWORD_MAX_SIZE];
UINT16 DummyDataForVfrBug; // Don't change or use
} SYSTEM_PASSWORDS;
#pragma pack()
//
// #defines for Drive Presence
//
#define EFI_HDD_PRESENT 0x01
#define EFI_HDD_NOT_PRESENT 0x00
#define EFI_CD_PRESENT 0x02
#define EFI_CD_NOT_PRESENT 0x00
#define EFI_HDD_WARNING_ON 0x01
#define EFI_CD_WARNING_ON 0x02
#define EFI_SMART_WARNING_ON 0x04
#define EFI_HDD_WARNING_OFF 0x00
#define EFI_CD_WARNING_OFF 0x00
#define EFI_SMART_WARNING_OFF 0x00
#ifndef VFRCOMPILE
extern EFI_GUID gEfiSetupVariableGuid;
#endif
#define SETUP_DATA SYSTEM_CONFIGURATION
#endif // #ifndef _SETUP_VARIABLE
|