• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /** @file
2 Defines and prototypes for the UEFI VFR compiler internal use.
3 
4 Copyright (c) 2004 - 2014, 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_PATH                 255
23 #define MAX_VFR_LINE_LEN         4096
24 
25 #define EFI_IFR_MAX_LENGTH       0xFF
26 #define MAX_IFR_EXPRESSION_DEPTH 0x9
27 
28 #define EFI_VARSTORE_ID_INVALID  0
29 #define EFI_VAROFFSET_INVALID    0xFFFF
30 #define EFI_VARSTORE_ID_START    0x20
31 #define EFI_STRING_ID_INVALID    0x0
32 #define EFI_IMAGE_ID_INVALID     0xFFFF
33 
34 #define EFI_IFR_MAX_DEFAULT_TYPE 0x10
35 
36 typedef enum {
37   QUESTION_NORMAL,
38   QUESTION_DATE,
39   QUESTION_TIME,
40   QUESTION_REF,
41 } EFI_QUESION_TYPE;
42 
43 typedef enum {
44   EQUAL,
45   LESS_EQUAL,
46   LESS_THAN,
47   GREATER_THAN,
48   GREATER_EQUAL
49 } EFI_COMPARE_TYPE;
50 
51 #endif
52