summaryrefslogtreecommitdiff
path: root/Board/EM/Csm/csm.sd
blob: 42c5fc91165561498df1e2aaae802a2953ab87d8 (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
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2014, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**           5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093      **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/CSM/Generic/csm.sd 24    9/09/15 9:46a Olegi $
//
// $Revision: 24 $
//
// $Date: 9/09/15 9:46a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/CSM/Generic/csm.sd $
// 
// 24    9/09/15 9:46a Olegi
// [TAG]  		EIP237381
// [Description]  	Aptio 4 CSM: add INT19 TRAP setup question
// 
// 23    8/06/14 4:23p Fasihm
// [TAG]           EIP180681
// [Category]      Improvement
// [Severity]      Normal
// [Symptom]       Aptio 4 CSM: Clean the setup settings and options.
// [Solution]      INT19 trap setup question removed, cleaned code. 
// [Files]
//         Board\EM\Csm\csm.sd
//         Board\EM\Csm\csm.uni
//         Core\EM\CSM\CsmBsp.c
//         Core\EM\CSM\CsmOpROM.c
// 
// 22    10/18/13 4:01p Olegi
// [TAG]  		EIP139866
// [Description]  	Create interface to manage LegacyToEfi CSM feature
// [Files]  		csm.uni
// csm.sd
// 
// 21    10/07/13 9:05a Olegi
// EIP135289
// Legacy2Efi changes
// 
// 20    6/20/12 4:58p Olegi
// 
// 19    6/04/12 5:43p Olegi
// 
// 18    12/23/11 2:42p Olegi
// [TAG]  		EIP79228
// [Category]  	Improvement
// [Description]  	Implement CSM_INT19_TRAP_IMMEDIATE_ACTION functionality
// [Files]  		csm.uni
// csm.sd
// 
// 17    10/09/11 11:36p Olegi
// 
// 16    10/03/11 3:40p Olegi
// CSM opt-out changes
// 
// 15    3/10/11 1:59a Rameshr
// [TAG]- EIP 54231
// [Category]-IMPROVEMENT
// [Description]- Display the virus warning message when writting into MBR
// of HDD. This support added for IDE, AHCI and USB HD devices.
// [Files]- CsmOem.cif, Csm.uni, Csm.sdl, Csm.sd, Amilegacy16.bin,
// AI13.Bin, Ui13.bin, VirusProtect module
// 
// 14    12/03/10 11:18a Olegi
// [TAG]  		EIP48174
// [Category]  	Spec Update
// [Severity]  	Normal
// [Description]  	Update SD file according to the new Setup Customization
// guidelines.
// [Files]  		CSM.SD
// 
// 13    1/12/10 11:52a Olegi
// Updated copyright message.
// 
// 12    11/10/09 8:37a Olegi
// EIP30139: HII2.1 compliance.
// 
// 11    2/10/09 4:55p Olegi
// Added CSM16 version in Boot page. EIP#19133.
// 
// 10    12/09/08 10:17a Olegi
// Added KeepGateA20Active question.
// 
// 9     8/29/08 9:59a Fasihm
// Added the manufacturing flag to the commented question also.
// 
// 8     7/31/08 6:40p Fasihm
// Added the MANUFACTURING flag to the setup questions.
// 
// 7     1/31/08 11:55a Olegi
// "Bootup Numlock State" moved to Core
// 
// 6     12/03/07 4:12p Olegi
// 
// 5     7/31/07 3:37p Olegi
// 
// 4     6/21/07 10:34a Olegi
// 
// 3     6/04/07 10:46a Olegi
// 
// 2     6/02/07 11:26a Olegi
// 
// 1     5/21/07 4:54p Olegi
// 
//**********************************************************************

//**********************************************************************
//<AMI_FHDR_START>
//
// Name:	CSM.SD
//
// Description:	CSM Setup data definitions, currently go under Boot page
//
//<AMI_FHDR_END>
//**********************************************************************

#ifdef SETUP_DATA_DEFINITION
    UINT8	ExpansionCardText;
    UINT8   I19Trap;
	UINT8	ZipEmulation;
    UINT8   KeepGA20Active;
//      UINT8   CsmSupport;
#endif

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

#define CSM_ONEOF_KEEPGA20ACTIVE\
	oneof varid     = SETUP_DATA.KeepGA20Active,\
		prompt      = STRING_TOKEN(STR_CSM_GA20_ACTIVE),\
		help        = STRING_TOKEN(STR_CSM_GA20_ACTIVE_HELP),\
		option text = STRING_TOKEN(STR_CSM_GA20_ACTIVE_UPONREQUEST), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
		option text = STRING_TOKEN(STR_CSM_GA20_ACTIVE_ALWAYS),	value = 1, flags = 0, key = 0;\
	endoneof;

#define CSM_ONEOF_EXPANSIONCARDTEXT\
	oneof varid     = SETUP_DATA.ExpansionCardText,\
		prompt      = STRING_TOKEN(STR_CSM_OPROM_DISPLAY_MODE),\
		help        = STRING_TOKEN(STR_CSM_OPROM_DISPLAY_MODE_HELP),\
		option text = STRING_TOKEN(STR_CSM_OPROM_DISPLAY_FORCE_BIOS),	value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
		option text = STRING_TOKEN(STR_CSM_OPROM_DISPLAY_KEEP_CURRENT),	value = 0, flags = 0, key = 0;\
	endoneof;

#define CSM_CHECKBOX_I19TRAP\
	oneof varid  = SETUP_DATA.I19Trap,\
		prompt      = STRING_TOKEN(STR_CSM_I19_TRAP),\
		help        = STRING_TOKEN(STR_CSM_I19_TRAP_HELP),\
		option text = STRING_TOKEN(STR_CSM_I19_TRAP_IMMEDIATE),	value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;\
		option text = STRING_TOKEN(STR_CSM_I19_TRAP_POSTPONED),	value = 0, flags = 0;\
	endoneof;

#if CSM_SET_ZIP_EMULATION_TYPE

#define CSM_ONEOF_ZIPEMULATION\
	oneof varid     = SETUP_DATA.ZipEmulation,\
		prompt      = STRING_TOKEN(STR_CSM_ZIP_EMULATION_PROMPT),\
		help        = STRING_TOKEN(STR_CSM_ZIP_EMULATION_HELP),\
		option text = STRING_TOKEN(STR_CSM_ZIP_EMULATION_FDD),	value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
		option text = STRING_TOKEN(STR_CSM_ZIP_EMULATION_HDD),	value = 1, flags = 0, key = 0;\
	endoneof;

#else
#define CSM_ONEOF_ZIPEMULATION
#endif //#if CSM_SET_ZIP_EMULATION_TYPE
/*
#define CSM_ONEOF_CSMSUPPORT\
	oneof varid     = SETUP_DATA.CsmSupport,\
		prompt      = STRING_TOKEN(STR_CSM_SUPPORT_PROMPT),\
		help        = STRING_TOKEN(STR_CSM_SUPPORT_HELP),\
		option text = STRING_TOKEN(STR_DISABLED),	value = 0, flags = 0, key = 0;\
		option text = STRING_TOKEN(STR_ENABLED),	value = 1, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
	endoneof;
*/

#endif //#ifdef CONTROL_DEFINITION

#ifdef CONTROLS_WITH_DEFAULTS

	CSM_ONEOF_KEEPGA20ACTIVE
	CSM_ONEOF_EXPANSIONCARDTEXT
    CSM_CHECKBOX_I19TRAP
	CSM_ONEOF_ZIPEMULATION
#endif //#ifdef CONTROLS_WITH_DEFAULTS

//Select Top level menu itmem (forset) for you pages
#ifdef BOOT_FORM_SET
    #ifndef SUPPRESS_GRAYOUT_ENDIF //old Core
    #define SUPPRESS_GRAYOUT_ENDIF endif;
    #endif

#ifdef FORM_SET_TYPEDEF
//If you need any additional type definitions add them here
//typedef struct{
//    UINT8 MyField;
//} MyVariable;
#endif

#ifdef FORM_SET_VARSTORE
//If you need custom varstore's define them here
//    varstore MY_VARIABLE,
//        key   = AUTO_ID(MY_VARSTORE_ID),
//        name  = MyVariable,
//        guid  = SETUP_GUID;
#endif

#ifdef FORM_SET_ITEM
//	Define controls to be added to the top level page of the formset
//	checkbox varid = SETUP_DATA.MyCombobox,
//		prompt = STRING_TOKEN(...),
//		help = STRING_TOKEN(...),  
//		flags = 0 | MANUFACTURING, // Flags behavior for checkbox is overloaded so that it equals a DEFAULT value.  1 = ON, 0 = off
//	endcheckbox;	

#endif

#ifdef FORM_SET_GOTO
// Define goto commands for the forms defined in this file
	goto CSM_FORM_ID, 
		prompt = STRING_TOKEN(STR_CSM_FORM),
		help = STRING_TOKEN(STR_CSM_FORM_HELP);
#endif

#ifdef FORM_SET_FORM
// Define forms
	form formid = AUTO_ID(CSM_FORM_ID),
		title = STRING_TOKEN(STR_CSM_FORM);

    SUBTITLE(STRING_TOKEN(STR_CSM_FORM))
	SEPARATOR

	text
		help   = STRING_TOKEN(STR_CSM_MODULE_VERSION),
		text   = STRING_TOKEN(STR_CSM_MODULE_VERSION),
		text   = STRING_TOKEN(STR_CSM_MODULE_VERSION_VALUE),
		flags  = 0,
		key    = 0;
	SEPARATOR

	CSM_ONEOF_KEEPGA20ACTIVE
	CSM_ONEOF_EXPANSIONCARDTEXT
    CSM_CHECKBOX_I19TRAP
#if CSM_SET_ZIP_EMULATION_TYPE
	CSM_ONEOF_ZIPEMULATION
#endif

	endform;
#endif

#endif

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