2 Internal structure for Var Check Pcd.
4 Copyright (c) 2015, 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 PCD Variable and check data header.
21 #define HEADER_ALIGNMENT 4
22 #define HEADER_ALIGN(Header) (((UINTN) (Header) + HEADER_ALIGNMENT - 1) & (~(HEADER_ALIGNMENT - 1)))
26 #define VAR_CHECK_PCD_REVISION 0x0001
29 VarCheckPcdVariableHeader
,
31 VarCheckPcdValidRange
,
32 VarCheckPcdCheckTypeMax
,
33 } VAR_CHECK_PCD_CHECK_TYPE
;
38 UINT32 Length
; // Length include this header
44 } VAR_CHECK_PCD_VARIABLE_HEADER
;
48 UINT8 Length
; // Length include this header
51 } VAR_CHECK_PCD_VALID_DATA_HEADER
;
55 UINT8 Length
; // Length include this header
58 //UINTx Data[]; // x = UINT8/UINT16/UINT32/UINT64;
59 } VAR_CHECK_PCD_VALID_LIST
;
62 // UINTx Minimum; // x = UINT8/UINT16/UINT32/UINT64
63 // UINTx Maximum; // x = UINT8/UINT16/UINT32/UINT64
64 //} VAR_CHECK_PCD_VALID_RANGE_DATA;
68 UINT8 Length
; // Length include this header
71 // VAR_CHECK_PCD_VALID_RANGE_DATA ValidRange[];
72 } VAR_CHECK_PCD_VALID_RANGE
;