]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/VfrCompile/EfiVfr.h
Sync BaseTool trunk (version r2599) into EDKII BaseTools.
[mirror_edk2.git] / BaseTools / Source / C / VfrCompile / EfiVfr.h
1 /** @file
2
3 Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 EfiVfr.h
15
16 Abstract:
17
18 Defines and prototypes for the UEFI VFR compiler internal use.
19
20 **/
21
22 #ifndef _EFIVFR_H_
23 #define _EFIVFR_H_
24
25 #include "Common/UefiBaseTypes.h"
26 #include "Common/UefiInternalFormRepresentation.h"
27 #include "Common/MdeModuleHii.h"
28
29 #define MAX_PATH 255
30 #define MAX_VFR_LINE_LEN 4096
31
32 #define EFI_IFR_MAX_LENGTH 0xFF
33 #define MAX_IFR_EXPRESSION_DEPTH 0x9
34
35 #define EFI_VARSTORE_ID_INVALID 0
36 #define EFI_VAROFFSET_INVALID 0xFFFF
37 #define EFI_VARSTORE_ID_START 0x20
38 #define EFI_STRING_ID_INVALID 0x0
39 #define EFI_IMAGE_ID_INVALID 0xFFFF
40
41 #define EFI_IFR_MAX_DEFAULT_TYPE 0x10
42
43 typedef enum {
44 QUESTION_NORMAL,
45 QUESTION_DATE,
46 QUESTION_TIME,
47 QUESTION_REF,
48 } EFI_QUESION_TYPE;
49
50 typedef enum {
51 EQUAL,
52 LESS_EQUAL,
53 LESS_THAN,
54 GREATER_THAN,
55 GREATER_EQUAL
56 } EFI_COMPARE_TYPE;
57
58 #endif