]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/VfrCompile/EfiVfr.h
BaseTools: Replace BSD License with BSD+Patent License
[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 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _EFIVFR_H_
10 #define _EFIVFR_H_
11
12 #include "Common/UefiBaseTypes.h"
13 #include "Common/UefiInternalFormRepresentation.h"
14 #include "Common/MdeModuleHii.h"
15
16 #define MAX_VFR_LINE_LEN 4096
17
18 #define EFI_IFR_MAX_LENGTH 0xFF
19 #define MAX_IFR_EXPRESSION_DEPTH 0x9
20
21 #define EFI_VARSTORE_ID_INVALID 0
22 #define EFI_VAROFFSET_INVALID 0xFFFF
23 #define EFI_VARSTORE_ID_START 0x20
24 #define EFI_STRING_ID_INVALID 0x0
25 #define EFI_IMAGE_ID_INVALID 0xFFFF
26
27 #define EFI_IFR_MAX_DEFAULT_TYPE 0x10
28
29 typedef enum {
30 QUESTION_NORMAL,
31 QUESTION_DATE,
32 QUESTION_TIME,
33 QUESTION_REF,
34 } EFI_QUESION_TYPE;
35
36 typedef enum {
37 EQUAL,
38 LESS_EQUAL,
39 LESS_THAN,
40 GREATER_THAN,
41 GREATER_EQUAL
42 } EFI_COMPARE_TYPE;
43
44 #endif