summaryrefslogtreecommitdiff
path: root/Core/EM/usb/setup/usb.sd
blob: 89aeffe6f2c0da16146925d6adc79ea338526bd2 (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
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
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2014, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/USB/ALASKA/Setup/usb.sd 48    12/24/14 10:40p Wilsonlee $
//
// $Revision: 48 $
//
// $Date: 12/24/14 10:40p $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/USB/ALASKA/Setup/usb.sd $
// 
// 48    12/24/14 10:40p Wilsonlee
// [TAG]  		EIP196287
// [Category]  	Improvement
// [Description]  	Display info of connected usb controllers and remove or
// grayed-out some item according the connected usb controller number.
// [Files]  		uhcd.c, usbport.c, usb.uni, usb.sd, usbsetup.c,
// AmiUsbController.h, UsbPolicy.h
// 
// 47    12/23/14 10:27p Wilsonlee
// [TAG]  		EIP196897
// [Category]  	Improvement
// [Description]  	Hide USB legacy support setup question if
// USB_RUNTIME_DRIVER_IN_SMM is 0.
// [Files]  		usb.sd
// 
// 46    12/17/14 9:18p Wilsonlee
// [TAG]  		EIP196712
// [Category]  	Improvement
// [Description]  	Change usb form definition to USB_FORM _USB.
// [Files]  		usb.sd
// 
// 45    11/23/14 10:30p Wilsonlee
// [TAG]  		EIP190205
// [Category]  	Improvement
// [Description]  	Add the token "DEFAULT_XHCI_HANDOFF_OPTION" that
// controls the default value of the XHCI Hand-off option.
// [Files]  		usb.sdl, usb.sd
// 
// 44    7/28/14 11:25p Wilsonlee
// [TAG]  		EIP176898
// [Category]  	Improvement
// [Description]  	Use suppressif TRUE to hide the setup item.
// [Files]  		usb.sd
// 
// 43    4/29/14 10:23p Wilsonlee
// [TAG]  		EIP161709
// [Category]  	New Feature
// [Description]  	Dynamically update the usb device list in BIOS setup.
// [Files]  		usb.sdl, usb.sd, usbsetup.c, uhcd.c
// 
// 42    10/20/13 10:33p Wilsonlee
// [TAG]  		EIP138258
// [Category]  	New Feature
// [Description]  	Change option name "USB3.0 Support" to "XHCI Legacy
// Support" and add the token
// "HIDE_USB_XHCI_LEGACY_SUPPORT_SETUP_QUESTION" to switch to hide/Un-hide
// USB XHCI Legacy Support setup question.
// [Files]  		usb.sd, usb.uni, usb.sdl
// 
// 41    5/27/13 2:21a Ryanchou
// [TAG]  		EIP122407
// [Category]  	Improvement
// [Description]  	Move the USB varstore out ADVANCED_FORM_SET definition
// check.
// [Files]  		usb.sd
// 
// 40    4/16/13 11:08a Ryanchou
// Fix compile error if toke EFI_SPECIFICATION_VERSION greater than
// 0x2000.
// 
// 39    3/19/13 4:03a Ryanchou
// [TAG]  		EIP118177
// [Category]  	Improvement
// [Description]  	Dynamically allocate HCStrucTable at runtime.
// [Files]  		usb.sdl, usbport.c, usbsb.c, amiusb.c, ehci.c, ohci.c,
// syskbc.c, sysnokbc.c, uhci.c, usb.c, usbCCID.c, usbdef.h, usbhid.c,
// usbhub.c, usbmass.c, usbrt.mak, usb.sd, amiusbhc.c, efiusbccid.c,
// efiusbhid.c, efiusbmass.c, efiusbms.c, uhcd.c, uhcd.h, uhcd.mak,
// usbmisc.c, usbsrc.sdl
// 
// 38    1/11/13 4:25a Ryanchou
// [TAG]  		EIP102491
// [Category]  	Improvement
// [Description]  	Synchronized with Aptio V USB module
// [Files]  		usbport.c, usbsb.c, ehci.c, ehci.h, ohci.c, ohci.h, uhci.h,
// usb.c, usbdef.h, usbhid.c, usbhub.c, usbkbd.c, usbkbd.h, usbmass.c.
// usbms.c, usbpoint.c, xhci.h, usb.sd, amiusbhc.c, componentname.c,
// efiusbkc.c, efiusbmass.c, uhcd.c, uhcd.h, usbbus.c, usbbus.h, usbmisc.c
// 
// 37    12/21/12 5:04a Ryanchou
// [TAG]  		EIP71730
// [Category]  	New Feature
// [Description]  	Added OHCI handoff support.
// [Files]  		usb.sdl, usbport.c, amiusb.c, usbdef.h, UsbPolicy.h, usb.sd,
// usb.uni
// 
// 36    10/25/12 1:38a Wilsonlee
// [TAG]  		EIP102493
// [Category]  	New Feature
// [Description]  	USB Module version is added to the setup page.
// [Files]  		usbsetup.c, usb.sd, usb.uni
// 
// 35    9/04/12 8:02a Wilsonlee
// [TAG]  		EIP99882
// [Category]  	New Feature
// [Description]  	Add the usb setup item and usbpolicyprotocol to enable
// or disable the usb mass storage driver.
// [Files]  		UsbPolicy.h, usb.uni, usb.sd, usbmass.c, usbdef.h,
// efiusbmass.c, usbport.c, uhcd.c
// 
// 34    8/07/12 9:38p Wilsonlee
// [TAG]  		EIP96366
// [Category]  	New Feature
// [Description]  	Add the token "DEFAULT_USB_EMUL6064_OPTION" that
// control the default value of the I/O port 60h/64h emulation support
// option.
// [Files]  		usb.sd, usb.sdl, amiusb.c, amiusb.h
// 
// 33    7/12/12 2:35a Roberthsu
// [TAG]           EIP93460
// [Category]      Improvement
// [Description]   Add token decide mass available under efi application
// when legacy support disabled.
// [Files]         usb.sd,usb.uni,usbmass.c,usbsrc.sdl
// 
// 32    5/04/12 2:30a Wilsonlee
// [TAG]  		EIP89212
// [Category]  	Bug Fix
// [Severity]  	Important
// [Symptom]  	Build process stopped with EIP83614 change.
// [RootCause]  	Build error when the token "EFI_SPECIFICATION_VERSION" is
// 0x20000.
// [Solution]  	Rollback the EIP83614 changee to avoid this issue.
// [Files]  		usb.sd
// 
// 31    5/03/12 5:09a Ryanchou
// [TAG]  		EIP83361
// [Category]  	New Feature
// [Description]  	Added "USB 2.0 Controller Mode" setup item.
// [Files]  		ehci.c, usb.sd, usb.sdl, usb.uni, usbdef.h, UsbPolicy.h,
// usbport.c
// 
// 30    3/04/12 9:41p Wilsonlee
// [TAG]  		EIP83614
// [Category]  	Improvement
// [Description]  	Manufacturing mode fixes.
// [Files]  		usb.sd
// 
// 29    2/18/11 1:13a Ryanchou
// [TAG]  		EIP48184
// [Category]  	Improvement
// [Description]  	Update files according to the new Setup Customization
// guidelines.
// [Files]  		usb.sd, UsbPolicy.h
// 
// 28    10/12/10 2:31a Rameshr
// [TAG]- EIP 44585
// [Category]-IMPROVEMENT
// [Description]- Number of maximum supported USB Mass Storage device
// increased from 8 to 16. 
// [Files]- Uin13.bin, UsbPort.c, UsbInt13.h, Usb.c, Usbdef.h, Uasbmass.c,
// Usb.sd, usb.uni, UsbSetup.c, UsbSrc.sdl, UsbPolicy.h
// 
// 27    7/13/10 7:15a Ryanchou
// EIP38356: Implement shutdown USB legacy support in ACPI enable call.
// 
// 26    5/20/10 2:10p Olegi
// 
// 25    5/17/10 5:20p Robert
// two setup questions were using SUPPRESS_GRAYOUT_ENDIF when they should
// only be using endif;  PowerGoodDeviceDelay and UsbXhciSupport.  The
// change makes it UEFI 2.1 compliant
// 
// 24    5/17/10 4:09p Olegi
// Removed unnecessary inclusion of TOKEN.H
// 
// 23    4/19/10 1:52p Olegi
// 
// 22    4/12/10 12:19p Olegi
// Moving structure definitions to the .H file. EIP36942
// 
// 21    3/02/10 10:10a Olegi
// 
// 20    12/10/09 10:13a Olegi
// Added UsbControlTimeout setup selection. EIP30079.
// 
// 19    11/10/09 8:54a Olegi
// EIP30149: HII 2.1 compliance.
// 
// 18    9/09/09 3:14p Davidd
// Added "USB Support" setup question - EIP 25360
// 
// 17    5/21/09 5:18p Olegi
// Added hotplug devices support.
// 
// 16    10/24/08 3:04p Olegi
// 
// 15    8/12/08 10:34a Fasihm
// Added the Manufacturing flag to all the setup questions.
// 
// 14    7/04/08 1:04p Olegi
// 
// 13    5/16/08 12:07p Olegi
// Compliance with AMI coding standard.
// 
// 11    6/04/07 11:07a Fasihm
// Changed the setup structures to use OneOf instead of CheckBox, so as to
// reset the system based on change in the setup options.
// 
//**********************************************************************
//<AMI_FHDR_START>
//
// Name:	usb.sd
//
// Description:	This is the setup page 'USB Configuration.'
//              The link to the page is in the setup 'Advanced' tab. 
//<AMI_FHDR_END>
//**********************************************************************

#ifdef SETUP_DATA_DEFINITION
/***********************************************************/
/* Put NVRAM data definitions here.
/* For example:	UINT8 Data1;
/* These definitions will be converted by the build process
/* to a definitions of SETUP_DATA fields.
/***********************************************************/
#endif

#if defined(VFRCOMPILE) && !defined(CONTROLS_ARE_DEFINED)
#define CONTROL_DEFINITION
#endif
#ifdef CONTROL_DEFINITION

#define USB_ONEOF_USBMAINSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbMainSupport,\
		prompt      = STRING_TOKEN(STR_USB_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 0, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
	endoneof;
                                        //(EIP93460)>
#if LEGACY_USB_DISABLE_FOR_USB_MASS
#if USB_RUNTIME_DRIVER_IN_SMM
#define USB_ONEOF_USBLEGACYSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbLegacySupport,\
		prompt      = STRING_TOKEN(STR_USB_LEGACY_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_LEGACY_SUPPORT_HELP1),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 1, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 2, flags = RESET_REQUIRED;\
	endoneof;
#else
#define USB_ONEOF_USBLEGACYSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbLegacySupport,\
		prompt      = STRING_TOKEN(STR_USB_LEGACY_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_LEGACY_SUPPORT_HELP1),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 0, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 1, flags =  DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 2, flags = RESET_REQUIRED;\
	endoneof;
#endif
#else
#if USB_RUNTIME_DRIVER_IN_SMM
#define USB_ONEOF_USBLEGACYSUPPORT\
    oneof varid     = USB_SUPPORT_SETUP.UsbLegacySupport,\
		prompt      = STRING_TOKEN(STR_USB_LEGACY_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_LEGACY_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 1, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 2, flags = RESET_REQUIRED;\
	endoneof;
#else
#define USB_ONEOF_USBLEGACYSUPPORT\
    oneof varid     = USB_SUPPORT_SETUP.UsbLegacySupport,\
		prompt      = STRING_TOKEN(STR_USB_LEGACY_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_LEGACY_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 0, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 2, flags = RESET_REQUIRED;\
	endoneof;
#endif
#endif 
                                        //<(EIP93460)
#define USB_ONEOF_USBHISPEEDSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbHiSpeedSupport,\
		prompt      = STRING_TOKEN(STR_USB_HISPEED_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_HISPEED_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_USB_HISPEED), value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_FULLSPEED), value = 0, flags = RESET_REQUIRED;\
	endoneof;

#if XHCI_SUPPORT
#define USB_ONEOF_USBXHCISUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbXhciSupport,\
		prompt      = STRING_TOKEN(STR_USB_XHCI_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_XHCI_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = RESET_REQUIRED ;\
	endoneof;
#if EFI_SPECIFICATION_VERSION > 0x20000
#define USB_ONEOF_USBXHCIHANDOFF\
	oneof varid     = USB_SUPPORT_SETUP.UsbXhciHandoff,\
		prompt      = STRING_TOKEN(STR_USB_BIOS_XHCI_HANDOFF),\
		help        = STRING_TOKEN(STR_USB_BIOS_XHCI_HANDOFF_HELP),\
        default     = DEFAULT_XHCI_HANDOFF_OPTION,\
		option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = RESET_REQUIRED ;\
	endoneof;
#else
#define USB_ONEOF_USBXHCIHANDOFF\
	oneof varid     = USB_SUPPORT_SETUP.UsbXhciHandoff,\
		prompt      = STRING_TOKEN(STR_USB_BIOS_XHCI_HANDOFF),\
		help        = STRING_TOKEN(STR_USB_BIOS_XHCI_HANDOFF_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = RESET_REQUIRED ;\
	endoneof;
#endif
#else
#define USB_ONEOF_USBXHCISUPPORT
#define USB_ONEOF_USBXHCIHANDOFF
#endif

#if USB_EHCI_HANDOFF_SUPPORT
#define USB_ONEOF_USBEHCIHANDOFF\
	oneof varid  = USB_SUPPORT_SETUP.UsbEhciHandoff,\
			prompt = STRING_TOKEN(STR_USB_BIOS_EHCI_HANDOFF),\
			help = STRING_TOKEN(STR_USB_BIOS_EHCI_HANDOFF_HELP),\
			option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
			option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = RESET_REQUIRED;\
	endoneof;
#else
#define USB_ONEOF_USBEHCIHANDOFF
#endif

#if USB_OHCI_HANDOFF_SUPPORT
#define USB_ONEOF_USBOHCIHANDOFF\
	oneof varid  = USB_SUPPORT_SETUP.UsbOhciHandoff,\
			prompt = STRING_TOKEN(STR_USB_BIOS_OHCI_HANDOFF),\
			help = STRING_TOKEN(STR_USB_BIOS_OHCI_HANDOFF_HELP),\
			option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
			option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = RESET_REQUIRED;\
	endoneof;
#else
#define USB_ONEOF_USBOHCIHANDOFF
#endif

#if USB_DEV_MASS
#define USB_ONEOF_USBMASSDRIVERSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbMassDriverSupport,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DRIVER_SUPPORT),\
		help        = STRING_TOKEN(STR_USB_MASS_DRIVER_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 0, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
	endoneof;
#else
#define USB_ONEOF_USBMASSDRIVERSUPPORT
#endif

#if defined (EMUL6064_SUPPORT) && EMUL6064_SUPPORT
#if EFI_SPECIFICATION_VERSION > 0x20000
#define USB_ONEOF_USBEMUL6064\
	oneof varid  = USB_SUPPORT_SETUP.UsbEmul6064,\
		prompt = STRING_TOKEN(STR_USB_6064),\
        help = STRING_TOKEN(STR_USB_6064_HELP),\
        default = DEFAULT_USB_EMUL6064_OPTION,\
		option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = MANUFACTURING | RESET_REQUIRED;\
	endoneof;
#else
#define USB_ONEOF_USBEMUL6064\
	oneof varid  = USB_SUPPORT_SETUP.UsbEmul6064,\
		prompt = STRING_TOKEN(STR_USB_6064),\
        help = STRING_TOKEN(STR_USB_6064_HELP),\
		option text = STRING_TOKEN(STR_USB_DISABLED), value = 0, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_ENABLED), value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
	endoneof;
#endif
#else
#define USB_ONEOF_USBEMUL6064
#endif

#if defined (USB_HOTPLUG_FDD) && USB_HOTPLUG_FDD
#define USB_ONEOF_USBHOTPLUGFDDSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbHotplugFddSupport,\
		prompt      = STRING_TOKEN(STR_USB_HOTPLUG_FDD),\
		help        = STRING_TOKEN(STR_USB_HOTPLUG_FDD_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 2, flags = RESET_REQUIRED | MANUFACTURING | DEFAULT ;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 3, flags = RESET_REQUIRED ;\
	endoneof;
#else
#define USB_ONEOF_USBHOTPLUGFDDSUPPORT
#endif

#if defined (USB_HOTPLUG_HDD) && USB_HOTPLUG_HDD
#define USB_ONEOF_USBHOTPLUGHDDSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbHotplugHddSupport,\
		prompt      = STRING_TOKEN(STR_USB_HOTPLUG_HDD),\
		help        = STRING_TOKEN(STR_USB_HOTPLUG_HDD_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 2, flags = RESET_REQUIRED | MANUFACTURING | DEFAULT ;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 3, flags = RESET_REQUIRED ;\
	endoneof;
#else
#define USB_ONEOF_USBHOTPLUGHDDSUPPORT
#endif

#if defined (USB_HOTPLUG_CDROM) && USB_HOTPLUG_CDROM
#define USB_ONEOF_USBHOTPLUGCDROMSUPPORT\
	oneof varid     = USB_SUPPORT_SETUP.UsbHotplugCdromSupport,\
		prompt      = STRING_TOKEN(STR_USB_HOTPLUG_CDROM),\
		help        = STRING_TOKEN(STR_USB_HOTPLUG_CDROM_HELP),\
		option text = STRING_TOKEN(STR_USB_ENABLED),	value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_DISABLED),	value = 2, flags = RESET_REQUIRED | MANUFACTURING | DEFAULT ;\
		option text = STRING_TOKEN(STR_USB_AUTO),		value = 3, flags = RESET_REQUIRED ;\
	endoneof;
#else
#define USB_ONEOF_USBHOTPLUGCDROMSUPPORT
#endif

#define USB_ONEOF_USBCONTROLTIMEOUT\
	oneof varid     = USB_SUPPORT_SETUP.UsbControlTimeOut,\
		prompt      = STRING_TOKEN(STR_USB_CONTROL_TIME_OUT),\
		help        = STRING_TOKEN(STR_USB_CONTROL_TIME_OUT_HELP),\
		option text = STRING_TOKEN(STR_USB_DELAY_01),	value = 1, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DELAY_05),	value = 5, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DELAY_10),	value = 10, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DELAY_20),	value = 20, flags = RESET_REQUIRED | MANUFACTURING | DEFAULT;\
	endoneof;

#define USB_ONEOF_USBMASSRESETDELAY\
	oneof varid     = USB_SUPPORT_SETUP.UsbMassResetDelay,\
		prompt      = STRING_TOKEN(STR_USB_MASS_RESET_DELAY),\
		help        = STRING_TOKEN(STR_USB_MASS_RESET_DELAY_HELP),\
		option text = STRING_TOKEN(STR_USB_DELAY_10),	value = 0, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DELAY_20),	value = 1, flags = RESET_REQUIRED | MANUFACTURING | DEFAULT;\
		option text = STRING_TOKEN(STR_USB_DELAY_30),	value = 2, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DELAY_40),	value = 3, flags = RESET_REQUIRED;\
	endoneof;

#define USB_ONEOF_POWERGOODDEVICEDELAY\
    oneof varid     = USB_SUPPORT_SETUP.PowerGoodDeviceDelay,\
    	prompt      = STRING_TOKEN(STR_USB_POWERGOOD_DELAY),\
    	help        = STRING_TOKEN(STR_USB_POWERGOOD_DELAY_HELP),\
    	option text = STRING_TOKEN(STR_USB_AUTO), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_DELAY_VALUE), value = 1, flags = RESET_REQUIRED;\
    endoneof;

#define USB_NUMERIC_POWERGOODDEVICENUMDELAY\
    numeric varid = USB_SUPPORT_SETUP.PowerGoodDeviceNumDelay,\
        prompt  = STRING_TOKEN (STR_USB_DELAY_NUM_VALUE),\
        help    = STRING_TOKEN (STR_USB_DELAY_NUM_VALUE_HELP),\
        flags   = RESET_REQUIRED,\
        minimum = 1,\
        maximum = 40,\
        step    = 1,\
        default = 5,\
    endnumeric;

#if USB_MASS_EMULATION_NATIVE
#define USB_ONEOF_USBEMU1\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu1,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE1),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED;\
	endoneof;

#define USB_ONEOF_USBEMU2\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu2,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE2),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU3\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu3,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE3),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU4\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu4,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE4),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU5\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu5,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE5),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU6\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu6,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE6),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU7\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu7,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE7),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU8\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu8,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE8),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU9\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu9,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE9),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU10\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu10,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE10),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU11\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu11,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE11),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU12\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu12,\
			prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE12),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU13\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu13,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE13),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;
#define USB_ONEOF_USBEMU14\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu14,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE14),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU15\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu15,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE15),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU16\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu16,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE16),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP1),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;
#else //#if USB_MASS_EMULATION_NATIVE
#define USB_ONEOF_USBEMU1\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu1,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE1),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU2\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu2,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE2),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU3\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu3,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE3),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU4\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu4,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE4),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU5\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu5,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE5),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU6\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu6,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE6),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU7\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu7,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE7),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU8\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu8,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE8),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU9\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu9,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE9),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU10\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu10,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE10),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU11\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu11,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE11),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU12\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu12,\
			prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE12),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU13\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu13,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE13),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;
#define USB_ONEOF_USBEMU14\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu14,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE14),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU15\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu15,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE15),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;

#define USB_ONEOF_USBEMU16\
	oneof varid     = USB_SUPPORT_SETUP.UsbEmu16,\
		prompt      = STRING_TOKEN(STR_USB_MASS_DEVICE16),\
		help        = STRING_TOKEN(STR_USB_EMULATION_TYPE_HELP),\
		option text = STRING_TOKEN(STR_USB_AUTO),	         value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FLOPPY),     value = 1, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_FORCED_FDD), value = 2, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_HDD),        value = 3, flags = RESET_REQUIRED ;\
		option text = STRING_TOKEN(STR_USB_EMUL_CDROM),      value = 4, flags = RESET_REQUIRED ;\
	endoneof;
#endif //#if USB_MASS_EMULATION_NATIVE

#endif //#ifdef CONTROL_DEFINITION


#ifdef CONTROLS_WITH_DEFAULTS

USB_ONEOF_USBMAINSUPPORT    // UINT8    UsbMainSupport; // Disable \[Enable]
USB_ONEOF_USBLEGACYSUPPORT  // UINT8    UsbLegacySupport;   //[Enable]\ Disable \ Auto
USB_ONEOF_USBHISPEEDSUPPORT // UINT8    UsbHiSpeedSupport;   //[HiSpeed]\ FullSpeed
USB_ONEOF_USBXHCISUPPORT    // UINT8    UsbXhciSupport; //[Enable]\ Disable
USB_ONEOF_USBXHCIHANDOFF    // UINT8    UsbXhciHandoff; //[Enable]\ Disable
USB_ONEOF_USBEHCIHANDOFF    // UINT8    UsbEhciHandoff; //[Disable] \ Enable
USB_ONEOF_USBMASSDRIVERSUPPORT  // UINT8    UsbMassDriverSupport; // Disable \[Enable]
USB_ONEOF_USBEMUL6064      // UINT8    UsbEmul6064; // Disable \[Enable]
USB_ONEOF_USBHOTPLUGFDDSUPPORT  // UINT8    UsbHotplugFddSupport;   // Enable \[Disable]\ Auto
USB_ONEOF_USBHOTPLUGHDDSUPPORT // UINT8 UsbHotplugHddSupport;   // Enable \[Disable]\ Auto
USB_ONEOF_USBHOTPLUGCDROMSUPPORT // UINT8   UsbHotplugCdromSupport; // Enable \[Disable]\ Auto
USB_ONEOF_USBCONTROLTIMEOUT // UINT8    UsbControlTimeOut;  // 1 sec \ 5 sec \ 10 sec \[20 sec]
USB_ONEOF_USBMASSRESETDELAY // UINT8    UsbMassResetDelay;  // 10 sec \[20 sec]\ 30 sec \ 40sec
USB_ONEOF_POWERGOODDEVICEDELAY // UINT8 PowerGoodDeviceDelay;   //[Auto]\ Manual
USB_NUMERIC_POWERGOODDEVICENUMDELAY // UINT8    PowerGoodDeviceNumDelay;    //[1...40] (seconds)
USB_ONEOF_USBEMU1 // UINT8  UsbEmu1;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU2 // UINT8  UsbEmu2;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU3 // UINT8  UsbEmu3;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU4 // UINT8  UsbEmu4;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU5 // UINT8  UsbEmu5;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU6 // UINT8  UsbEmu6;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU7 // UINT8  UsbEmu7;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU8 // UINT8  UsbEmu8;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU9 // UINT8  UsbEmu9;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU10 // UINT8 UsbEmu10;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU11 // UINT8 UsbEmu11;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU12 // UINT8 UsbEmu12;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU13 // UINT8 UsbEmu13;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU14 // UINT8 UsbEmu14;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU15 // UINT8 UsbEmu15;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
USB_ONEOF_USBEMU16 // UINT8 UsbEmu16;   //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM

#endif //#ifdef CONTROLS_WITH_DEFAULTS

#ifdef FORM_SET_TYPEDEF
	#include <Protocol\UsbPolicy.h>
#endif

#ifdef FORM_SET_VARSTORE
	varstore USB_MASS_DEV_NUM,
		key   = AUTO_ID(USB_MASS_DEV_NUM_KEY),
		name  = UsbMassDevNum,
		guid  = SETUP_GUID;

	varstore USB_MASS_DEV_VALID,
		key   = AUTO_ID(USB_MASS_DEV_VALID_KEY),
		name  = UsbMassDevValid,
		guid  = SETUP_GUID;

    varstore USB_CONTROLLER_NUM,
        key   = AUTO_ID(USB_CONTROLLER_NUM_KEY),
        name  = UsbControllerNum,
        guid  = SETUP_GUID;

	varstore USB_SUPPORT_SETUP,
		key   = AUTO_ID(USB_SUPPORT_KEY),
		name  = UsbSupport,
		guid  = SETUP_GUID;
#endif

//**********************************************************************
//                ADVANCED - USB Configuration Form
//**********************************************************************
#ifdef ADVANCED_FORM_SET

#ifndef SUPPRESS_GRAYOUT_ENDIF //old Core
#define SUPPRESS_GRAYOUT_ENDIF endif;
#endif

	#ifdef FORM_SET_ITEM
		//
		// Define controls to be added to the main page of the formset
		//
	#endif

	#ifdef FORM_SET_GOTO
	//
	// Define goto commands for the forms defined in this file
	//
	goto USB_CONFIG_FORM_ID,
		prompt  = STRING_TOKEN(STR_USB_CONFIGURATION),
		help    = STRING_TOKEN(STR_USB_CONFIGURATION_HELP);
	#endif

	#ifdef FORM_SET_FORM
		//
		// Define forms
		//
        #ifndef USB_FORM_USB
        #define USB_FORM_USB
		form formid = AUTO_ID(USB_CONFIG_FORM_ID),
		title = STRING_TOKEN(STR_USB_CONFIGURATION);

		SUBTITLE(STRING_TOKEN(STR_USB_CONFIGURATION))
		SEPARATOR
                                        //(EIP102493+)>		
        //Display USB Module Version. 
        text
            help   = STRING_TOKEN(STR_EMPTY),
            text   = STRING_TOKEN(STR_USB_MODULE_VER_HELP),
            text   = STRING_TOKEN(STR_USB_MODULE_VER),
            flags  = 0,
            key    = 0;

        SEPARATOR
                                        //<(EIP102493+)
        text
            help   = STRING_TOKEN(STR_EMPTY),
            text   = STRING_TOKEN(STR_USB_CONTROLLERS_ENABLED),
            text   = STRING_TOKEN(STR_EMPTY),
            flags  = 0,
            key    = 0;
        SUBTITLE(STRING_TOKEN(STR_USB_CONTROLLERS_ENABLED_LIST))

		text
			help   = STRING_TOKEN(STR_EMPTY),
			text   = STRING_TOKEN(STR_USB_DEVICES_ENABLED),
			text   = STRING_TOKEN(STR_EMPTY),
			flags  = 0,
			key    = 0;

		SUBTITLE(STRING_TOKEN(STR_USB_DEVICES_ENABLED_LIST))
		SEPARATOR
// UINT8    UsbMainSupport; // Disable \[Enable]
#if HIDE_USB_SUPPORT_SETUP_QUESTION
	    suppressif ideqid USB_SUPPORT_SETUP.UsbMainSupport == USB_SUPPORT_SETUP.UsbMainSupport;
#endif
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBMAINSUPPORT
		endif;
#if HIDE_USB_SUPPORT_SETUP_QUESTION
#if EFI_SPECIFICATION_VERSION>0x20000
        endif;  // suppress-grayout
#endif
#endif
// UINT8    UsbLegacySupport;   //[Enable]\ Disable \ Auto
#if USB_RUNTIME_DRIVER_IN_SMM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0;
#else
        suppressif TRUE;
#endif
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBLEGACYSUPPORT
        SUPPRESS_GRAYOUT_ENDIF

#if EHCI_SUPPORT
#if HIDE_USB_HISPEED_SUPPORT_SETUP_QUESTION
        suppressif TRUE;
#else
        suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_CONTROLLER_NUM.EhciNum == 0;
#endif
// UINT8    UsbHiSpeedSupport; //[HiSpeed]\ FullSpeed
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBHISPEEDSUPPORT
        endif;
#if EFI_SPECIFICATION_VERSION>0x20000
        endif;  // suppress-grayout
#endif
#endif

#if XHCI_SUPPORT
#if HIDE_USB_XHCI_LEGACY_SUPPORT_SETUP_QUESTION
        suppressif TRUE;
#else
        suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_CONTROLLER_NUM.XhciNum == 0;
#endif
// UINT8    UsbXhciSupport; //[Enable]\ Disable
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBXHCISUPPORT
        endif;
#if EFI_SPECIFICATION_VERSION>0x20000
        endif;  // suppress-grayout
#endif

// UINT8    UsbXhciHandoff; //[Enable]\ Disable
        suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_CONTROLLER_NUM.XhciNum == 0;
	    grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBXHCIHANDOFF
        endif;
#if EFI_SPECIFICATION_VERSION>0x20000
        endif;  // suppress-grayout
#endif
#endif
#if USB_EHCI_HANDOFF_SUPPORT
// UINT8    UsbEhciHandoff; //[Disable] \ Enable
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_CONTROLLER_NUM.EhciNum == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBEHCIHANDOFF
	    SUPPRESS_GRAYOUT_ENDIF
#endif

#if USB_OHCI_HANDOFF_SUPPORT
// UINT8    UsbOhciHandoff; //[Disable] \ Enable
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_CONTROLLER_NUM.OhciNum == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBOHCIHANDOFF
	    SUPPRESS_GRAYOUT_ENDIF
#endif

        #if USB_DEV_MASS
// UINT8    UsbMassDriverSupport; // Disable \[Enable]
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_USBMASSDRIVERSUPPORT
	    SUPPRESS_GRAYOUT_ENDIF
        #endif

		#if defined (EMUL6064_SUPPORT) && EMUL6064_SUPPORT
// UINT8    UsbEmul6064; // Disable \[Enable]
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
            USB_ONEOF_USBEMUL6064
	    SUPPRESS_GRAYOUT_ENDIF
		#endif

		#if defined (USB_HOTPLUG_FDD) && USB_HOTPLUG_FDD
// UINT8    UsbHotplugFddSupport;   // Enable \[Disable]\ Auto
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_USBHOTPLUGFDDSUPPORT
	    SUPPRESS_GRAYOUT_ENDIF
		#endif

		#if defined (USB_HOTPLUG_HDD) && USB_HOTPLUG_HDD
// UINT8 UsbHotplugHddSupport;   // Enable \[Disable]\ Auto
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_USBHOTPLUGHDDSUPPORT
	    SUPPRESS_GRAYOUT_ENDIF
		#endif

		#if defined (USB_HOTPLUG_CDROM) && USB_HOTPLUG_CDROM
// UINT8   UsbHotplugCdromSupport; // Enable \[Disable]\ Auto
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_USBHOTPLUGCDROMSUPPORT
	    SUPPRESS_GRAYOUT_ENDIF
		#endif

        SEPARATOR
		text
			help   = STRING_TOKEN(STR_EMPTY),
			text   = STRING_TOKEN(STR_USB_DELAYS),
			text   = STRING_TOKEN(STR_EMPTY),
			flags  = 0,
			key    = 0;

//(EIP30079+)>
// UINT8    UsbControlTimeOut;  // 1 sec \ 5 sec \ 10 sec \[20 sec]
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_USBCONTROLTIMEOUT
		SUPPRESS_GRAYOUT_ENDIF
//<(EIP30079+)
// UINT8    UsbMassResetDelay;  // 10 sec \[20 sec]\ 30 sec \ 40sec
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_USBMASSRESETDELAY
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8 PowerGoodDeviceDelay;   //[Auto]\ Manual
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_ONEOF_POWERGOODDEVICEDELAY
        endif;
// UINT8    PowerGoodDeviceNumDelay;    //[1...40] (seconds)
	    suppressif ideqval USB_SUPPORT_SETUP.PowerGoodDeviceDelay == 0;
        grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR (
                  ideqval USB_CONTROLLER_NUM.UhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.OhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.EhciNum == 0 AND
                  ideqval USB_CONTROLLER_NUM.XhciNum == 0);
            USB_NUMERIC_POWERGOODDEVICENUMDELAY
        SUPPRESS_GRAYOUT_ENDIF

		SEPARATOR

	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0;
		text
			help   = STRING_TOKEN(STR_EMPTY),
			text   = STRING_TOKEN(STR_USB_EMULATION),
			text   = STRING_TOKEN(STR_EMPTY),
			flags  = 0,
			key    = 0;
		endif;
// UINT8  UsbEmu1;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu1Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU1
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu2;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu2Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU2
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu3;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
//		suppressif  ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 2 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 1 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu3Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU3
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu4;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
//		suppressif   ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 3 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 2 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 1 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu4Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU4
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu5;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
//		suppressif  ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 4 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 3 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 2 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 1 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu5Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU5
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu6;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
//		suppressif  ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 5 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 4 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 3 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 2 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 1 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu6Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU6
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu7;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
//		suppressif  ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 6 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 5 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 4 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 3 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 2 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 1 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu7Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU7
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu8;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
//		suppressif  ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 7 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 6 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 5 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 4 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 3 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 2 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 1 OR ideqval USB_MASS_DEV_NUM.UsbMassDevNum == 0 OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu8Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU8
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu9;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu9Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU9
	    SUPPRESS_GRAYOUT_ENDIF

// UINT8  UsbEmu10;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu10Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU10
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu11;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu11Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU11
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu12;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu12Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU12
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu13;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu13Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU13
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu14;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu14Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU14
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu15;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu15Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU15
	    SUPPRESS_GRAYOUT_ENDIF
// UINT8  UsbEmu16;    //[Auto] \ Floppy \ Forced FDD \ Hard Disk \ CD-ROM
	    suppressif ideqval USB_SUPPORT_SETUP.UsbMainSupport == 0 OR ideqval USB_MASS_DEV_VALID.UsbEmu16Valid == 0;
		grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER OR ideqval USB_SUPPORT_SETUP.UsbLegacySupport == 1;
            USB_ONEOF_USBEMU16
	    SUPPRESS_GRAYOUT_ENDIF

        INTERACTIVE_TEXT(STRING_TOKEN(STR_EMPTY), \
                            STRING_TOKEN(STR_EMPTY), \
                            STRING_TOKEN(STR_EMPTY), \
                            AUTO_ID(USB_DEVICES_ENABLED_REFRESH_KEY))

		endform;

	    #endif //#ifndef USB_FORM_USB

	#endif

#endif // ADVANCED_FORM_SET

//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2014, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************