2 Internal structure for Var Check Hii.
4 Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _VAR_CHECK_STRUCTURE_H_
16 #define _VAR_CHECK_STRUCTURE_H_
19 // Alignment for Hii Variable and Question header.
21 #define HEADER_ALIGNMENT 4
22 #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)))
26 #define VAR_CHECK_HII_REVISION 0x0002
31 UINT32 Length
; // Length include this header
38 } VAR_CHECK_HII_VARIABLE_HEADER
;
42 UINT8 Length
; // Length include this header
45 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.
46 } VAR_CHECK_HII_QUESTION_HEADER
;
50 UINT8 Length
; // Length include this header
53 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.
54 //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;
55 } VAR_CHECK_HII_QUESTION_ONEOF
;
59 UINT8 Length
; // Length include this header
62 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.
63 } VAR_CHECK_HII_QUESTION_CHECKBOX
;
67 UINT8 Length
; // Length include this header
70 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.
71 //UINTx Minimum; // x = UINT8/UINT16/UINT32/UINT64;
72 //UINTx Maximum; // x = UINT8/UINT16/UINT32/UINT64;
73 } VAR_CHECK_HII_QUESTION_NUMERIC
;
77 UINT8 Length
; // Length include this header
80 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.
82 //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;
83 } VAR_CHECK_HII_QUESTION_ORDEREDLIST
;