]>
Commit | Line | Data |
---|---|---|
1241af95 SZ |
1 | /** @file\r |
2 | Internal structure for Var Check 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 _VAR_CHECK_STRUCTURE_H_\r | |
16 | #define _VAR_CHECK_STRUCTURE_H_\r | |
17 | \r | |
18 | //\r | |
19 | // Alignment for Hii Variable and Question header.\r | |
20 | //\r | |
21 | #define HEADER_ALIGNMENT 4\r | |
22 | #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)))\r | |
23 | \r | |
24 | #pragma pack (1)\r | |
25 | \r | |
26 | #define VAR_CHECK_HII_REVISION 0x0001\r | |
27 | \r | |
28 | typedef struct {\r | |
29 | UINT16 Revision;\r | |
30 | UINT16 HeaderLength;\r | |
31 | UINT32 Length; // Length include this header\r | |
32 | UINT8 OpCode;\r | |
33 | UINT8 Reserved;\r | |
34 | UINT16 Size;\r | |
35 | UINT32 Attributes;\r | |
36 | EFI_GUID Guid;\r | |
37 | //CHAR16 Name[];\r | |
38 | } VAR_CHECK_HII_VARIABLE_HEADER;\r | |
39 | \r | |
40 | typedef struct {\r | |
41 | UINT8 OpCode;\r | |
42 | UINT8 Length; // Length include this header\r | |
43 | UINT16 VarOffset;\r | |
44 | UINT8 StorageWidth;\r | |
45 | } VAR_CHECK_HII_QUESTION_HEADER;\r | |
46 | \r | |
47 | typedef struct {\r | |
48 | UINT8 OpCode;\r | |
49 | UINT8 Length; // Length include this header\r | |
50 | UINT16 VarOffset;\r | |
51 | UINT8 StorageWidth;\r | |
52 | //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;\r | |
53 | } VAR_CHECK_HII_QUESTION_ONEOF;\r | |
54 | \r | |
55 | typedef struct {\r | |
56 | UINT8 OpCode;\r | |
57 | UINT8 Length; // Length include this header\r | |
58 | UINT16 VarOffset;\r | |
59 | UINT8 StorageWidth;\r | |
60 | } VAR_CHECK_HII_QUESTION_CHECKBOX;\r | |
61 | \r | |
62 | typedef struct {\r | |
63 | UINT8 OpCode;\r | |
64 | UINT8 Length; // Length include this header\r | |
65 | UINT16 VarOffset;\r | |
66 | UINT8 StorageWidth;\r | |
67 | //UINTx Minimum; // x = UINT8/UINT16/UINT32/UINT64;\r | |
68 | //UINTx Maximum; // x = UINT8/UINT16/UINT32/UINT64;\r | |
69 | } VAR_CHECK_HII_QUESTION_NUMERIC;\r | |
70 | \r | |
71 | typedef struct {\r | |
72 | UINT8 OpCode;\r | |
73 | UINT8 Length; // Length include this header\r | |
74 | UINT16 VarOffset;\r | |
75 | UINT8 StorageWidth;\r | |
76 | UINT8 MaxContainers;\r | |
77 | //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;\r | |
78 | } VAR_CHECK_HII_QUESTION_ORDEREDLIST;\r | |
79 | \r | |
80 | #pragma pack ()\r | |
81 | \r | |
82 | #endif\r |