2 Internal structure for Var Check Hii.
4 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _VAR_CHECK_STRUCTURE_H_
10 #define _VAR_CHECK_STRUCTURE_H_
13 // Alignment for Hii Variable and Question header.
15 #define HEADER_ALIGNMENT 4
16 #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)))
20 #define VAR_CHECK_HII_REVISION 0x0002
25 UINT32 Length
; // Length include this header
32 } VAR_CHECK_HII_VARIABLE_HEADER
;
36 UINT8 Length
; // Length include this header
39 BOOLEAN BitFieldStore
; // Whether the Question is stored in bit field, if TRUE, the VarOffset/StorageWidth will be saved as bit level, otherwise in byte level.
40 } VAR_CHECK_HII_QUESTION_HEADER
;
44 UINT8 Length
; // Length include this header
47 BOOLEAN BitFieldStore
; // Whether the Question is stored in bit field, if TRUE, the VarOffset/StorageWidth will be saved as bit level, otherwise in byte level.
48 //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;
49 } VAR_CHECK_HII_QUESTION_ONEOF
;
53 UINT8 Length
; // Length include this header
56 BOOLEAN BitFieldStore
; // Whether the Question is stored in bit field, if TRUE, the VarOffset/StorageWidth will be saved as bit level, otherwise in byte level.
57 } VAR_CHECK_HII_QUESTION_CHECKBOX
;
61 UINT8 Length
; // Length include this header
64 BOOLEAN BitFieldStore
; // Whether the Question is stored in bit field, if TRUE, the VarOffset/StorageWidth will be saved as bit level, otherwise in byte level.
65 //UINTx Minimum; // x = UINT8/UINT16/UINT32/UINT64;
66 //UINTx Maximum; // x = UINT8/UINT16/UINT32/UINT64;
67 } VAR_CHECK_HII_QUESTION_NUMERIC
;
71 UINT8 Length
; // Length include this header
74 BOOLEAN BitFieldStore
; // Whether the Question is stored in bit field, if TRUE, the VarOffset/StorageWidth will be saved as bit level, otherwise in byte level.
76 //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;
77 } VAR_CHECK_HII_QUESTION_ORDEREDLIST
;