]>
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 | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _PLAT_VAR_CLEANUP_HII_\r | |
16 | #define _PLAT_VAR_CLEANUP_HII_\r | |
17 | \r | |
18 | //\r | |
19 | // {24F14D8A-D7A8-4991-91E0-96C3B7DB8456}\r | |
20 | //\r | |
21 | #define VARIABLE_CLEANUP_HII_GUID \\r | |
22 | { \\r | |
23 | 0x24f14d8a, 0xd7a8, 0x4991, { 0x91, 0xe0, 0x96, 0xc3, 0xb7, 0xdb, 0x84, 0x56 } \\r | |
24 | }\r | |
25 | \r | |
26 | #define MAX_USER_VARIABLE_COUNT 0x1000\r | |
27 | \r | |
28 | typedef struct {\r | |
29 | UINT8 SelectAll;\r | |
30 | //\r | |
31 | // FALSE is to not delete, TRUE is to delete.\r | |
32 | //\r | |
33 | UINT8 UserVariable[MAX_USER_VARIABLE_COUNT];\r | |
34 | } VARIABLE_CLEANUP_DATA;\r | |
35 | \r | |
36 | #define VARIABLE_CLEANUP_VARSTORE_ID 0x8000\r | |
37 | \r | |
38 | //\r | |
39 | // Field offset of structure VARIABLE_CLEANUP_DATA\r | |
40 | //\r | |
41 | #define VAR_OFFSET(Field) ((UINTN) &(((VARIABLE_CLEANUP_DATA *) 0)->Field))\r | |
42 | #define USER_VARIABLE_VAR_OFFSET (VAR_OFFSET (UserVariable))\r | |
43 | \r | |
44 | #define FORM_ID_VARIABLE_CLEANUP 0x8000\r | |
45 | \r | |
46 | #define LABEL_START 0x0000\r | |
47 | #define LABEL_END 0xFFFF\r | |
48 | \r | |
49 | #define SELECT_ALL_QUESTION_ID 0x7FFD\r | |
50 | #define SAVE_AND_EXIT_QUESTION_ID 0x7FFE\r | |
51 | #define NO_SAVE_AND_EXIT_QUESTION_ID 0x7FFF\r | |
52 | \r | |
53 | //\r | |
54 | // Tool automatic generated Question Id start from 1.\r | |
55 | // In order to avoid to conflict them, the user variable QuestionID offset is defined from 0x8000.\r | |
56 | //\r | |
57 | #define USER_VARIABLE_QUESTION_ID 0x8000\r | |
58 | \r | |
59 | #endif\r |