summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/GenDepex/GenDepex.h
blob: b198156baa7d7a65875e6bb70b9ecee7ccd760ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*++
Copyright (c) 2004, Intel Corporation                                                         
All rights reserved. This program and the accompanying materials                          
are licensed and made available under the terms and conditions of the BSD License         
which accompanies this distribution.  The full text of the license may be found at        
http://opensource.org/licenses/bsd-license.php                                            
                                                                                          
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             

  Module Name:  
          GenDepex.h

  Abstract:
          This file contains the relevant declarations required
          to generate a binary Dependency File

  Complies with Tiano C Coding Standards Document, version 0.31, 12 Dec 2000.

--*/

#ifndef _EFI_GEN_DEPEX_H
#define _EFI_GEN_DEPEX_H


#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#ifndef __GNUC__
#include <malloc.h>
#endif

#include <Common/UefiBaseTypes.h>
#include <Common/Dependency.h>

#define DEPENDENCY_START            "DEPENDENCY_START"
#define OPERATOR_BEFORE             "BEFORE"
#define OPERATOR_AFTER              "AFTER"
#define OPERATOR_AND                "AND"
#define OPERATOR_OR                 "OR"
#define OPERATOR_NOT                "NOT"
#define OPERATOR_TRUE               "TRUE"
#define OPERATOR_FALSE              "FALSE"
#define OPERATOR_SOR                "SOR"
#define OPERATOR_END                "END"
#define OPERATOR_LEFT_PARENTHESIS   "("
#define OPERATOR_RIGHT_PARENTHESIS  ")"
#define DEPENDENCY_END              "DEPENDENCY_END"

#define DXE_DEP_LEFT_PARENTHESIS    0x0a
#define DXE_DEP_RIGHT_PARENTHESIS   0x0b

#define LINESIZE                    320
#define SIZE_A_SYMBOL               60
#define DEPENDENCY_OPCODE           UINT8
#define EVAL_STACK_SIZE             0x1024
#define BUFFER_SIZE                 0x100

//
// Utility Name
//
#define UTILITY_NAME  "GenDepex"

//
// Utility version information
//
#define UTILITY_MAJOR_VERSION 0
#define UTILITY_MINOR_VERSION 5

#endif