1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21#include <efi.h>
22
23#ifdef NOT_USED
24
25
26
27
28
29
30#define EFI_IFR_AND_OP 0x15
31#define EFI_IFR_END_OP 0x29
32#define EFI_IFR_BITWISE_AND_OP 0x35
33
34
35#define EFI_HII_IIBT_END 0x00
36#define EFI_HII_IIBT_IMAGE_1BIT 0x10
37#endif
38
39
40#define EFI_NULL_MODIFIER 0x0000
41
42u8 packagelist1[] = {
43
44
45
46
47
48
49 0x89, 0xcd, 0xab, 0x03, 0xf4, 0x03, 0x44, 0x70,
50 0x81, 0xde, 0x99, 0xb1, 0x81, 0x20, 0xf7, 0x68,
51 0x3a, 0x01, 0x00, 0x00,
52#ifdef NOT_USED
53
54
55
56 0x4A, 0x00, 0x00,
57 EFI_HII_PACKAGE_SIMPLE_FONTS,
58 1, 0,
59 1, 0,
60 0x55, 0x0, 0x1,
61 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
62 0x77, 0x0, 0x2,
63 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
64 3, 4, 5,
65 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 0, 0, 0,
66
67
68
69 0x6e, 0x00, 0x00,
70 EFI_HII_PACKAGE_FONTS,
71 0x5c, 0x00, 0x00, 0x00,
72 0x5c, 0x00, 0x00, 0x00,
73 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00,
74 0xf5, 0x00, 0xec, 0xec,
75 0xff, 0x33, 0xff, 0x44,
76 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
77 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
78 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
79 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00,
80 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
82 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
83 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66,
84
85
86
87 EFI_HII_GIBT_GLYPH_DEFAULT,
88 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x99,
89 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
90 EFI_HII_GIBT_END,
91#endif
92
93
94
95 0x14, 0x00, 0x00,
96 EFI_HII_PACKAGE_TYPE_GUID,
97 0x5a, 0xc9, 0x87, 0x03, 0x3, 0xd7, 0x46, 0x23,
98 0xb2, 0xab, 0xd0, 0xc7, 0xdd, 0x90, 0x44, 0xf8,
99#ifdef NOT_USED
100
101
102
103 0x08, 0x00, 0x00,
104 EFI_HII_PACKAGE_FORMS,
105
106
107
108 EFI_IFR_AND_OP,
109 0x82,
110 EFI_IFR_END_OP,
111 0x02,
112
113#endif
114
115
116 0x4e, 0x00, 0x00,
117 EFI_HII_PACKAGE_STRINGS,
118 0x3c, 0x00, 0x00, 0x00,
119 0x3c, 0x00, 0x00, 0x00,
120 0x00, 0x00, 0x11, 0x22, 0x44, 0x55, 0x77, 0x89,
121 0x11, 0x00, 0x11, 0x22, 0x44, 0x55, 0x87, 0x89,
122 0x22, 0x00, 0x11, 0x22, 0x44, 0x55, 0x77, 0x89,
123 0x33, 0x00, 0x11, 0x22, 0x44, 0x55, 0x77, 0x89,
124 0x01, 0x00,
125 0x65, 0x6e, 0x2d, 0x55, 0x53, 0x3b, 0x7a, 0x68,
126 0x2d, 0x48, 0x61, 0x6e, 0x74, 0x00,
127 EFI_HII_SIBT_STRING_UCS2,
128 0x45, 0x00, 0x6E, 0x00, 0x67, 0x00, 0x6C, 0x00,
129 0x69, 0x00, 0x73, 0x00, 0x68, 0x00, 0x00, 0x00,
130 EFI_HII_SIBT_END,
131#ifdef NOT_USED
132
133
134
135 0x43, 0x00, 0x00,
136 EFI_HII_PACKAGE_IMAGES,
137 0x0c, 0x00, 0x00, 0x00,
138 0x39, 0x00, 0x00, 0x00,
139 EFI_HII_IIBT_IMAGE_1BIT,
140 0x01,
141 0x0b, 0x00,
142 0x13, 0x00,
143 0x80, 0x00,
144 0xc0, 0x00,
145 0xe0, 0x00,
146 0xf0, 0x00,
147 0xf8, 0x00,
148 0xfc, 0x00,
149 0xfe, 0x00,
150 0xff, 0x00,
151 0xff, 0x80,
152 0xff, 0xc0,
153 0xff, 0xe0,
154 0xfe, 0x00,
155 0xef, 0x00,
156 0xcf, 0x00,
157 0x87, 0x80,
158 0x07, 0x80,
159 0x03, 0xc0,
160 0x03, 0xc0,
161 0x01, 0x80,
162 EFI_HII_IIBT_END,
163 0x01, 0x00,
164 0x06, 0x00,
165 0x00, 0x00, 0x00,
166 0xFF, 0xFF, 0xFF,
167
168
169
170 0x08, 0x00, 0x00,
171 EFI_HII_PACKAGE_DEVICE_PATH,
172 0x01, 0x23, 0x45, 0x66,
173
174#endif
175
176
177 0xc0, 0x00, 0x00,
178 EFI_HII_PACKAGE_KEYBOARD_LAYOUT,
179 0x02, 0x00,
180
181
182
183 0x5d, 0x00,
184 0x95, 0xe4, 0x40, 0x8d, 0xaa, 0xe2, 0x6f, 0x4c,
185 0x89, 0x70, 0x68, 0x85, 0x09, 0xee, 0xc7, 0xd2,
186 0x37, 0x00, 0x00, 0x00,
187
188 0x02,
189
190
191
192 49, 0x00, 0x00, 0x00,
193 'q', 0x00,
194 'Q', 0x00,
195 0x00, 0x00,
196 0x00, 0x00,
197 EFI_NULL_MODIFIER, 0x00,
198 0x03, 0x00,
199
200
201
202 50, 0x00, 0x00, 0x00,
203 'w', 0x00,
204 'W', 0x00,
205 0x00, 0x00,
206 0x00, 0x00,
207 EFI_NULL_MODIFIER, 0x00,
208 0x3, 0x0,
209
210
211
212 0x01, 0x00,
213 'e', 0x0, 'n', 0x0, '-', 0x0, 'U', 0x0, 'S', 0x0,
214
215 ' ', 0x0,
216 'S', 0x0, 'i', 0x0, 'm', 0x0, 'p', 0x0, 'l', 0x0, 'e', 0x0,
217 '1', 0x0, 'o', 0x0, 'n', 0x0, 'l', 0x0, 'y', 0x0, '\0', 0x0,
218
219
220
221
222 0x5d, 0x00,
223 0x3e, 0x0b, 0xe6, 0x2a, 0xd6, 0xb9, 0xd8, 0x49,
224 0x9a, 0x16, 0xc2, 0x48, 0xf1, 0xeb, 0xa8, 0xdb,
225 0x37, 0x00, 0x00, 0x00,
226
227 0x02,
228
229
230
231 51, 0x0, 0x0, 0x0,
232 'e', 0x00,
233 'E', 0x00,
234 0x00, 0x00,
235 0x00, 0x00,
236 EFI_NULL_MODIFIER, 0x0,
237 0x3, 0x0,
238
239
240
241 52, 0x0, 0x0, 0x0,
242 'r', 0x00,
243 'R', 0x00,
244 0x00, 0x00,
245 0x00, 0x00,
246 EFI_NULL_MODIFIER, 0x0,
247 0x3, 0x0,
248
249
250
251 0x01, 0x00,
252 'e', 0x0, 'n', 0x0, '-', 0x0, 'U', 0x0, 'S', 0x0,
253
254 ' ', 0x0,
255 'S', 0x0, 'i', 0x0, 'm', 0x0, 'p', 0x0, 'l', 0x0, 'e', 0x0,
256 '2', 0x0, 'o', 0x0, 'n', 0x0, 'l', 0x0, 'y', 0x0, '\0', 0x0,
257
258
259
260
261 0x4, 0x00, 0x00,
262 EFI_HII_PACKAGE_END
263};
264
265u8 packagelist2[] = {
266
267
268
269 0xd3, 0xde, 0x85, 0x86, 0xce, 0x1b, 0xf3, 0x43,
270 0xa2, 0x0c, 0xa3, 0x06, 0xec, 0x69, 0x72, 0xdd,
271 0xec, 0x00, 0x00, 0x00,
272
273#ifdef NOT_USED
274
275
276
277 0x4A, 0x00, 0x00,
278 EFI_HII_PACKAGE_SIMPLE_FONTS,
279 1, 0,
280 1, 0,
281 0x33, 0x0, 0, 1, 2, 3, 4, 5, 0, 7, 8, 9,
282 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
283 0x44, 0x0, 0x2, 2, 3, 4, 5, 6, 0, 8, 9,
284 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
285 3, 4, 5, 6, 7, 8, 9, 10, 11, 9, 13,
286 14, 15, 16, 17, 18, 19, 20, 21, 0, 0, 0,
287
288
289
290 0x7A, 0x00, 0x00,
291 EFI_HII_PACKAGE_FONTS,
292 0x5C, 0x00, 0x00, 0x00,
293 0x5C, 0x00, 0x00, 0x00,
294 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00,
295 0xf5, 0x00, 0xec, 0xec,
296 0xff, 0x11, 0xff, 0x22,
297 0x99, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
298 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
299 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
300 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x00, 0x00,
301 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
302 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
303 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
304 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88,
305
306
307
308 EFI_HII_GIBT_GLYPH,
309 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00,
310 0xf5, 0x00,
311 0xff, 0x01,
312 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
313 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
314 EFI_HII_GIBT_END,
315#endif
316
317
318
319 0x14, 0x00, 0x00,
320 EFI_HII_PACKAGE_TYPE_GUID,
321 0x5a, 0xc9, 0x87, 0x03, 0x3, 0xd7, 0x46, 0x23,
322 0xb2, 0xab, 0xd0, 0xc7, 0xdd, 0x90, 0x44, 0xf8,
323
324
325 0xc0, 0x00, 0x00,
326 EFI_HII_PACKAGE_KEYBOARD_LAYOUT,
327 0x02, 0x00,
328
329
330
331 0x5d, 0x00,
332 0x1f, 0x6a, 0xf5, 0xe0, 0x6b, 0xdf, 0x7e, 0x4a,
333 0xa3, 0x9a, 0xe7, 0xa5, 0x19, 0x15, 0x45, 0xd6,
334 0x37, 0x00, 0x00, 0x00,
335
336 0x02,
337
338
339
340 32, 0x00, 0x00, 0x00,
341 'a', 0x00,
342 'A', 0x00,
343 0x00, 0x00,
344 0x00, 0x00,
345 EFI_NULL_MODIFIER, 0x00,
346 0x03, 0x00,
347
348
349
350 33 , 0x00, 0x00, 0x00,
351 's', 0x00,
352 'S', 0x00,
353 0x00, 0x00,
354 0x00, 0x00,
355 EFI_NULL_MODIFIER, 0x00,
356 0x3, 0x0,
357
358
359
360 0x01, 0x00,
361 'e', 0x0, 'n', 0x0, '-', 0x0, 'U', 0x0, 'S', 0x0,
362
363 ' ', 0x0,
364 'S', 0x0, 'i', 0x0, 'm', 0x0, 'p', 0x0, 'l', 0x0, 'e', 0x0,
365 '3', 0x0, 'o', 0x0, 'n', 0x0, 'l', 0x0, 'y', 0x0, '\0', 0x0,
366
367
368
369
370 0x5d, 0x00,
371 0xc9, 0x6a, 0xbe, 0x47, 0xcc, 0x54, 0xf9, 0x46,
372 0xa2, 0x62, 0xd5, 0x3b, 0x25, 0x6a, 0xc, 0x34,
373 0x37, 0x00, 0x00, 0x00,
374
375 0x02,
376
377
378
379 34 , 0x0, 0x0, 0x0,
380 'd', 0x00,
381 'D', 0x00,
382 0x00, 0x00,
383 0x00, 0x00,
384 EFI_NULL_MODIFIER, 0x0,
385 0x3, 0x0,
386
387
388
389 35 , 0x0, 0x0, 0x0,
390 'e', 0x00,
391 'E', 0x00,
392 0x00, 0x00,
393 0x00, 0x00,
394 EFI_NULL_MODIFIER, 0x0,
395 0x3, 0x0,
396
397
398
399 0x01, 0x00,
400 'e', 0x0, 'n', 0x0, '-', 0x0, 'U', 0x0, 'S', 0x0,
401
402 ' ', 0x0,
403 'S', 0x0, 'i', 0x0, 'm', 0x0, 'p', 0x0, 'l', 0x0, 'e', 0x0,
404 '4', 0x0, 'o', 0x0, 'n', 0x0, 'l', 0x0, 'y', 0x0, '\0', 0x0,
405
406#ifdef NOT_USED
407
408
409
410 0x08, 0x00, 0x00,
411 EFI_HII_PACKAGE_FORMS,
412
413
414
415 EFI_IFR_BITWISE_AND_OP,
416 0x02,
417 EFI_IFR_END_OP,
418 0x02,
419#endif
420
421
422
423 0x4, 0x00, 0x00,
424 EFI_HII_PACKAGE_END
425};
426
427efi_guid_t packagelist_guid1 =
428 EFI_GUID(0x03abcd89, 0x03f4, 0x7044,
429 0x81, 0xde, 0x99, 0xb1, 0x81, 0x20, 0xf7, 0x68);
430
431efi_guid_t packagelist_guid2 =
432 EFI_GUID(0x8685ded3, 0x1bce, 0x43f3,
433 0xa2, 0x0c, 0xa3, 0x06, 0xec, 0x69, 0x72, 0xdd);
434
435efi_guid_t kb_layout_guid11 =
436 EFI_GUID(0x8d40e495, 0xe2aa, 0x4c6f,
437 0x89, 0x70, 0x68, 0x85, 0x09, 0xee, 0xc7, 0xd2);
438
439efi_guid_t kb_layout_guid12 =
440 EFI_GUID(0x2ae60b3e, 0xb9d6, 0x49d8,
441 0x9a, 0x16, 0xc2, 0x48, 0xf1, 0xeb, 0xa8, 0xdb);
442
443efi_guid_t kb_layout_guid21 =
444 EFI_GUID(0xe0f56a1f, 0xdf6b, 0x4a7e,
445 0xa3, 0x9a, 0xe7, 0xa5, 0x19, 0x15, 0x45, 0xd6);
446
447efi_guid_t kb_layout_guid22 =
448 EFI_GUID(0x47be6ac9, 0x54cc, 0x46f9,
449 0xa2, 0x62, 0xd5, 0x3b, 0x25, 0x6a, 0x0c, 0x34);
450
451efi_guid_t package_guid =
452 EFI_GUID(0x0387c95a, 0xd703, 0x2346,
453 0xb2, 0xab, 0xd0, 0xc7, 0xdd, 0x90, 0x44, 0xf8);
454