summaryrefslogtreecommitdiff
path: root/Core/EM/SMIFlash/SMIFlash.sdl
blob: 7cdc8e2f13400c7f8ab4aa4d63b4e42d0c2bc326 (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
TOKEN
	Name  = "SMIFlash_SUPPORT"
	Value  = "1"
	Help  = "Main switch to enable SMIFlash  support in Project"
	TokenType = Boolean
	TargetMAK = Yes
	Master = Yes
End

TOKEN
	Name  = "SMI_FLASH_INTERFACE_VERSION"
	Value  = "11"
	Help  = "Version of the SMI Flash Interface"
	TokenType = Integer
	TargetH = Yes
End

TOKEN
	Name  = "REPORT_NCB_BY_ROM_LAYOUT"
	Value  = "0"
	Help  = "Report NCBs by ROM Layout Definitions."
	TokenType = Boolean
	TargetMAK = Yes
	TargetH = Yes
End

TOKEN
	Name  = "PRESERVE_PASSWORDS"
	Value  = "0"
	Help  = "1 - Preserve passwords through flashing. 0 - Do not preserve passwords."
	TokenType = Boolean
	TargetMAK = Yes
	TargetH = Yes
End

TOKEN
	Name  = "PRESERVE_EFIBOOTORDER"
	Value  = "1"
	Help  = "1 - Preserve EFI BootOrder through flashing. 0 - Do not preserve EFI BootOrder."
	TokenType = Boolean
	TargetH = Yes
End

TOKEN
	Name  = "AFU_BUFFER_IN_SHADOW"
	Value  = "0"
	Help  = "1 - AFU will store the buffer pointer in F-segment If Afu support."
	TokenType = Boolean
	TargetH = Yes
End

TOKEN
	Name  = "DISABLE_PWR_BUTTON"
	Value  = "0"
	Help  = "1 - Disable PWR Button when flashing BIOS in DOS."
	TokenType = Boolean
	TargetH = Yes
End

PATH
	Name  = "SMI_FLASH_DIR"
End

MODULE
	Help  = "Includes SMIFlash.mak to Project"
	File  = "SMIFlash.mak"
End

ELINK
	Name  = "$(BUILD_DIR)\SMIFlash.ffs"
	Parent  = "FV_MAIN"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "PreserveSetupPassword,"
	Parent  = "SMIFlashPreUpdateList"
	Token = "PRESERVE_PASSWORDS" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "RestoreSetupPassword,"
	Parent  = "SMIFlashEndUpdateList"
	Token = "PRESERVE_PASSWORDS" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "PreserveEfiBootOrders,"
	Parent  = "SMIFlashPreUpdateList"
	Token = "PRESERVE_EFIBOOTORDER" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "RestoreEfiBootOrders,"
	Parent  = "SMIFlashEndUpdateList"
	Token = "PRESERVE_EFIBOOTORDER" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "DisablePowerButton,"
	Parent  = "SMIFlashPreUpdateList"
	Token = "DISABLE_PWR_BUTTON" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "EnablePowerButton,"
	Parent  = "SMIFlashEndUpdateList"
	Token = "DISABLE_PWR_BUTTON" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "DisableUSBKBD,"
	Parent  = "SMIFlashPreUpdateList"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "EnableUSBKBD,"
	Parent  = "SMIFlashEndUpdateList"
	InvokeOrder = AfterParent
End


ELINK
	Name  = "UpdateShadowBuffer,"
	Parent  = "SMIFlashPreHandlerList"
	Token = "AFU_BUFFER_IN_SHADOW" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "ClearShadowBuffer,"
	Parent  = "SMIFlashEndHandlerList"
	Token = "AFU_BUFFER_IN_SHADOW" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "$(BUILD_DIR)\AMICSPLib.Lib"
	Parent  = "PRESERVE_LIB"
	Token = "AFU_BUFFER_IN_SHADOW" "=" "1"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "ReassignNcbByRomLayout,"
	Parent  = "SMIFlashEndHandlerList"
	Token = "REPORT_NCB_BY_ROM_LAYOUT" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "PostRestoreVariables,"
	Parent  = "SMIFlashNotSmmList"
	Token = "FAULT_TOLERANT_NVRAM_UPDATE" "=" "1"
	Token = "BACKUP_NVRAM_WHEN_FLASH" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "USBNonSmmFunction,"
	Parent  = "SMIFlashNotSmmList"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "USBInSmmFunction,"
	Parent  = "SMIFlashInSmmList"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "SMIFlashInSmmList"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "SMIFlashPreserveRomHoleGuid"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "SMIFlashNotSmmList"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "SMIFlashPreUpdateList"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "SMIFlashEndUpdateList"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "SMIFlashPreHandlerList"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "SMIFlashEndHandlerList"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "PRESERVE_LIB"
	InvokeOrder = ReplaceParent
End

ELINK
	Name  = "RestoreSecureVariablesPreHandler,"
	Parent  = "SMIFlashPreHandlerList"
	Token = "FAULT_TOLERANT_NVRAM_UPDATE" "=" "1"
	Token = "BACKUP_NVRAM_WHEN_FLASH" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "RestoreSecureVariablesEndHandler,"
	Parent  = "SMIFlashEndHandlerList"
	Token = "FAULT_TOLERANT_NVRAM_UPDATE" "=" "1"
	Token = "BACKUP_NVRAM_WHEN_FLASH" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "ClearFFSState,"
	Parent  = "SecureUpdBeforeSmiflashWrite,"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "PreserveWin8Variables,"
	Parent  = "SMIFlashPreUpdateList"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "RestoreWin8Variables,"
	Parent  = "SMIFlashEndUpdateList"
	InvokeOrder = AfterParent
End

TOKEN
	Name  = "NON_SECURE_NCB_UPDATE"
	Value  = "0"
	Help  = "1 - Allow NCB Update w/o Secure check."
	TokenType = Boolean
	TargetH = Yes
	Token = "SecSMIFlash_SUPPORT" "=" "1"
End

ELINK
	Name  = "NCBUpdate,"
	Parent  = "SecureUpdBeforeSmiflashWrite,"
	Token = "NON_SECURE_NCB_UPDATE" "=" "1"
	Token = "SecSMIFlash_SUPPORT" "=" "1"
	InvokeOrder = BeforeParent
End

ELINK
	Name  = "NCBUpdate,"
	Parent  = "SecureUpdBeforeSmiflashWrite,"
	Token = "NON_SECURE_NCB_UPDATE" "=" "1"
	Token = "SecSMIFlash_SUPPORT" "=" "1"
	InvokeOrder = AfterParent
End

TOKEN
	Name  = "RECOVERY_PRESERVE_VARS_IN_SMM"
	Value  = "1"
	Help  = "1 - Preserved variables thru SMIFlash Func 0x20/0x24 if Capsule/Recovery mode of Secure Flash."
	TokenType = Boolean
	TargetMAK = Yes
	TargetH = Yes
	Token = "SecSMIFlash_SUPPORT" "=" "1"
End

TOKEN
	Name  = "RECOVERY_PRESERVE_ROMHOLE"
	Value  = "1"
	Help  = "1 - Preserved Romholes if Capsule/Recovery mode of Secure Flash."
	TokenType = Boolean
	TargetH = Yes
	Token = "SecSMIFlash_SUPPORT" "=" "1"
End

ELINK
	Name  = "RecoveryPreserveRomHoles,"
	Parent  = "SMIFlashNotSmmList"
	Token = "RECOVERY_PRESERVE_ROMHOLE" "=" "1"
	Token = "SecSMIFlash_SUPPORT" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "RecoveryHookBeforeFlash,"
	Parent  = "OemBeforeFlashUpdateList"
	Token = "RECOVERY_PRESERVE_VARS_IN_SMM" "=" "1"
	Token = "SecSMIFlash_SUPPORT" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "RecoveryHookAfterFlash,"
	Parent  = "OemAfterFlashUpdateList"
	Token = "RECOVERY_PRESERVE_VARS_IN_SMM" "=" "1"
	Token = "SecSMIFlash_SUPPORT" "=" "1"
	InvokeOrder = AfterParent
End

ELINK
	Name  = "{0xFD44820B,0xF1AB,0x41c0,0xAE,0x4E,0x0C,0x55,0x55,0x6E,0xB9,0xBD},"
	Parent  = "SMIFlashPreserveRomHoleGuid"
	InvokeOrder = AfterParent
End

TOKEN
	Name  = "BACKUP_NVRAM_WHEN_FLASH"
	Value  = "0"
	Help  = "1 - Keep Current NVRAM, update new NVRAM to another NVRAM Region."
	TokenType = Boolean
	TargetH = Yes
	Token = "FAULT_TOLERANT_NVRAM_UPDATE" "=" "1"
End

ELINK
	Name  = "CheckNVRAMArea,"
	Parent  = "SMIFlashPreUpdateList"
	Token = "FAULT_TOLERANT_NVRAM_UPDATE" "=" "1"
	Token = "BACKUP_NVRAM_WHEN_FLASH" "=" "0"
	InvokeOrder = BeforeParent
End

ELINK
	Name  = "UpdateNVRAMArea,"
	Parent  = "SMIFlashEndUpdateList"
	Token = "FAULT_TOLERANT_NVRAM_UPDATE" "=" "1"
	Token = "BACKUP_NVRAM_WHEN_FLASH" "=" "0"
	InvokeOrder = BeforeParent
End