]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/VfrCompile/EfiVfr.h
BaseTools: resolve initialization order errors in VfrFormPkg.h
[mirror_edk2.git] / BaseTools / Source / C / VfrCompile / EfiVfr.h
1 /** @file
2 Defines and prototypes for the UEFI VFR compiler internal use.
3
4 Copyright (c) 2004 - 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
9
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.
12
13 **/
14
15 #ifndef _EFIVFR_H_
16 #define _EFIVFR_H_
17
18 #include "Common/UefiBaseTypes.h"
19 #include "Common/UefiInternalFormRepresentation.h"
20 #include "Common/MdeModuleHii.h"
21
22 #define MAX_VFR_LINE_LEN 4096
23
24 #define EFI_IFR_MAX_LENGTH 0xFF
25 #define MAX_IFR_EXPRESSION_DEPTH 0x9
26
27 #define EFI_VARSTORE_ID_INVALID 0
28 #define EFI_VAROFFSET_INVALID 0xFFFF
29 #define EFI_VARSTORE_ID_START 0x20
30 #define EFI_STRING_ID_INVALID 0x0
31 #define EFI_IMAGE_ID_INVALID 0xFFFF
32
33 #define EFI_IFR_MAX_DEFAULT_TYPE 0x10
34
35 typedef enum {
36 QUESTION_NORMAL,
37 QUESTION_DATE,
38 QUESTION_TIME,
39 QUESTION_REF,
40 } EFI_QUESION_TYPE;
41
42 typedef enum {
43 EQUAL,
44 LESS_EQUAL,
45 LESS_THAN,
46 GREATER_THAN,
47 GREATER_EQUAL
48 } EFI_COMPARE_TYPE;
49
50 #endif