]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Eot/EotGlobalData.py
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / Python / Eot / EotGlobalData.py
1 ## @file
2 # This file is used to save global datas
3 #
4 # Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7
8 from collections import OrderedDict
9 from Common.LongFilePathSupport import OpenLongFilePath as open
10
11 gEFI_SOURCE = ''
12 gEDK_SOURCE = ''
13 gWORKSPACE = ''
14 gSHELL_INF = 'Application\Shell'
15 gMAKE_FILE = ''
16 gDSC_FILE = ''
17 gFV_FILE = []
18 gFV = []
19 gMAP_FILE = []
20 gMap = {}
21
22
23 gDb = ''
24 gIdentifierTableList = []
25
26 # Global macro
27 gMACRO = {}
28 gMACRO['EFI_SOURCE'] = gEFI_SOURCE
29 gMACRO['EDK_SOURCE'] = gEDK_SOURCE
30 gMACRO['SHELL_INF'] = gSHELL_INF
31 gMACRO['CAPSULE_INF'] = ''
32
33 # Log file for unmatched variables
34 gUN_MATCHED_LOG = 'Log_UnMatched.log'
35 gOP_UN_MATCHED = open(gUN_MATCHED_LOG, 'w+')
36
37 # Log file for all INF files
38 gINF_FILES = 'Log_Inf_File.log'
39 gOP_INF = open(gINF_FILES, 'w+')
40
41 # Log file for not dispatched PEIM/DRIVER
42 gUN_DISPATCHED_LOG = 'Log_UnDispatched.log'
43 gOP_UN_DISPATCHED = open(gUN_DISPATCHED_LOG, 'w+')
44
45 # Log file for unmatched variables in function calling
46 gUN_MATCHED_IN_LIBRARY_CALLING_LOG = 'Log_UnMatchedInLibraryCalling.log'
47 gOP_UN_MATCHED_IN_LIBRARY_CALLING = open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG, 'w+')
48
49 # Log file for order of dispatched PEIM/DRIVER
50 gDISPATCH_ORDER_LOG = 'Log_DispatchOrder.log'
51 gOP_DISPATCH_ORDER = open(gDISPATCH_ORDER_LOG, 'w+')
52
53 # Log file for found source files
54 gSOURCE_FILES = 'Log_SourceFiles.log'
55 gOP_SOURCE_FILES = open(gSOURCE_FILES, 'w+')
56
57 # Dict for GUID found in DEC files
58 gGuidDict = dict()
59
60 # Dict for PROTOCOL
61 gProtocolList = {}
62 # Dict for PPI
63 gPpiList = {}
64
65
66 # Dict for consumed PPI function calling
67 gConsumedPpiLibrary = OrderedDict()
68 gConsumedPpiLibrary['EfiCommonLocateInterface'] = 0
69 gConsumedPpiLibrary['PeiServicesLocatePpi'] = 0
70
71 # Dict for produced PROTOCOL function calling
72 gProducedProtocolLibrary = OrderedDict()
73 gProducedProtocolLibrary['RegisterEsalClass'] = 0
74 gProducedProtocolLibrary['CoreInstallProtocolInterface'] = 1
75 gProducedProtocolLibrary['CoreInstallMultipleProtocolInterfaces'] = -1
76 gProducedProtocolLibrary['EfiInstallProtocolInterface'] = 1
77 gProducedProtocolLibrary['EfiReinstallProtocolInterface'] = 1
78 gProducedProtocolLibrary['EfiLibNamedEventSignal'] = 0
79 gProducedProtocolLibrary['LibInstallProtocolInterfaces'] = 1
80 gProducedProtocolLibrary['LibReinstallProtocolInterfaces'] = 1
81
82 # Dict for consumed PROTOCOL function calling
83 gConsumedProtocolLibrary = OrderedDict()
84 gConsumedProtocolLibrary['EfiHandleProtocol'] = 0
85 gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0
86 gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0
87 gConsumedProtocolLibrary['EfiHandleProtocol'] = 1
88
89 # Dict for callback PROTOCOL function calling
90 gCallbackProtocolLibrary = OrderedDict()
91 gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2
92
93 gArchProtocolGuids = {'665e3ff6-46cc-11d4-9a38-0090273fc14d',
94 '26baccb1-6f42-11d4-bce7-0080c73c8881',
95 '26baccb2-6f42-11d4-bce7-0080c73c8881',
96 '1da97072-bddc-4b30-99f1-72a0b56fff2a',
97 '27cfac87-46cc-11d4-9a38-0090273fc14d',
98 '27cfac88-46cc-11d4-9a38-0090273fc14d',
99 'b7dfb4e1-052f-449f-87be-9818fc91b733',
100 'a46423e3-4617-49f1-b9ff-d1bfa9115839',
101 'd2b2b828-0826-48a7-b3df-983c006024f0',
102 '26baccb3-6f42-11d4-bce7-0080c73c8881',
103 '1e5668e2-8481-11d4-bcf1-0080c73c8881',
104 '6441f818-6362-4e44-b570-7dba31dd2453',
105 '665e3ff5-46cc-11d4-9a38-0090273fc14d'}