]>
Commit | Line | Data |
---|---|---|
c95d9ab8 SZ |
1 | /** @file\r |
2 | Include file for platform variable cleanup HII.\r | |
3 | \r | |
4 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
9d510e61 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
c95d9ab8 SZ |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef _PLAT_VAR_CLEANUP_HII_\r | |
10 | #define _PLAT_VAR_CLEANUP_HII_\r | |
11 | \r | |
12 | //\r | |
13 | // {24F14D8A-D7A8-4991-91E0-96C3B7DB8456}\r | |
14 | //\r | |
15 | #define VARIABLE_CLEANUP_HII_GUID \\r | |
16 | { \\r | |
17 | 0x24f14d8a, 0xd7a8, 0x4991, { 0x91, 0xe0, 0x96, 0xc3, 0xb7, 0xdb, 0x84, 0x56 } \\r | |
18 | }\r | |
19 | \r | |
20 | #define MAX_USER_VARIABLE_COUNT 0x1000\r | |
21 | \r | |
22 | typedef struct {\r | |
23 | UINT8 SelectAll;\r | |
24 | //\r | |
25 | // FALSE is to not delete, TRUE is to delete.\r | |
26 | //\r | |
27 | UINT8 UserVariable[MAX_USER_VARIABLE_COUNT];\r | |
28 | } VARIABLE_CLEANUP_DATA;\r | |
29 | \r | |
30 | #define VARIABLE_CLEANUP_VARSTORE_ID 0x8000\r | |
31 | \r | |
32 | //\r | |
33 | // Field offset of structure VARIABLE_CLEANUP_DATA\r | |
34 | //\r | |
35 | #define VAR_OFFSET(Field) ((UINTN) &(((VARIABLE_CLEANUP_DATA *) 0)->Field))\r | |
36 | #define USER_VARIABLE_VAR_OFFSET (VAR_OFFSET (UserVariable))\r | |
37 | \r | |
38 | #define FORM_ID_VARIABLE_CLEANUP 0x8000\r | |
39 | \r | |
40 | #define LABEL_START 0x0000\r | |
41 | #define LABEL_END 0xFFFF\r | |
42 | \r | |
43 | #define SELECT_ALL_QUESTION_ID 0x7FFD\r | |
44 | #define SAVE_AND_EXIT_QUESTION_ID 0x7FFE\r | |
45 | #define NO_SAVE_AND_EXIT_QUESTION_ID 0x7FFF\r | |
46 | \r | |
47 | //\r | |
48 | // Tool automatic generated Question Id start from 1.\r | |
49 | // In order to avoid to conflict them, the user variable QuestionID offset is defined from 0x8000.\r | |
50 | //\r | |
51 | #define USER_VARIABLE_QUESTION_ID 0x8000\r | |
52 | \r | |
53 | #endif\r |