2 # This file is used to save global datas
4 # Copyright (c) 2008 - 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
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.
14 from collections
import OrderedDict
15 from Common
.LongFilePathSupport
import OpenLongFilePath
as open
20 gSHELL_INF
= 'Application\Shell'
30 gIdentifierTableList
= []
34 gMACRO
['EFI_SOURCE'] = gEFI_SOURCE
35 gMACRO
['EDK_SOURCE'] = gEDK_SOURCE
36 gMACRO
['SHELL_INF'] = gSHELL_INF
37 gMACRO
['CAPSULE_INF'] = ''
39 # Log file for unmatched variables
40 gUN_MATCHED_LOG
= 'Log_UnMatched.log'
41 gOP_UN_MATCHED
= open(gUN_MATCHED_LOG
, 'w+')
43 # Log file for all INF files
44 gINF_FILES
= 'Log_Inf_File.log'
45 gOP_INF
= open(gINF_FILES
, 'w+')
47 # Log file for not dispatched PEIM/DRIVER
48 gUN_DISPATCHED_LOG
= 'Log_UnDispatched.log'
49 gOP_UN_DISPATCHED
= open(gUN_DISPATCHED_LOG
, 'w+')
51 # Log file for unmatched variables in function calling
52 gUN_MATCHED_IN_LIBRARY_CALLING_LOG
= 'Log_UnMatchedInLibraryCalling.log'
53 gOP_UN_MATCHED_IN_LIBRARY_CALLING
= open(gUN_MATCHED_IN_LIBRARY_CALLING_LOG
, 'w+')
55 # Log file for order of dispatched PEIM/DRIVER
56 gDISPATCH_ORDER_LOG
= 'Log_DispatchOrder.log'
57 gOP_DISPATCH_ORDER
= open(gDISPATCH_ORDER_LOG
, 'w+')
59 # Log file for found source files
60 gSOURCE_FILES
= 'Log_SourceFiles.log'
61 gOP_SOURCE_FILES
= open(gSOURCE_FILES
, 'w+')
63 # Dict for GUID found in DEC files
72 # Dict for consumed PPI function calling
73 gConsumedPpiLibrary
= OrderedDict()
74 gConsumedPpiLibrary
['EfiCommonLocateInterface'] = 0
75 gConsumedPpiLibrary
['PeiServicesLocatePpi'] = 0
77 # Dict for produced PROTOCOL function calling
78 gProducedProtocolLibrary
= OrderedDict()
79 gProducedProtocolLibrary
['RegisterEsalClass'] = 0
80 gProducedProtocolLibrary
['CoreInstallProtocolInterface'] = 1
81 gProducedProtocolLibrary
['CoreInstallMultipleProtocolInterfaces'] = -1
82 gProducedProtocolLibrary
['EfiInstallProtocolInterface'] = 1
83 gProducedProtocolLibrary
['EfiReinstallProtocolInterface'] = 1
84 gProducedProtocolLibrary
['EfiLibNamedEventSignal'] = 0
85 gProducedProtocolLibrary
['LibInstallProtocolInterfaces'] = 1
86 gProducedProtocolLibrary
['LibReinstallProtocolInterfaces'] = 1
88 # Dict for consumed PROTOCOL function calling
89 gConsumedProtocolLibrary
= OrderedDict()
90 gConsumedProtocolLibrary
['EfiHandleProtocol'] = 0
91 gConsumedProtocolLibrary
['EfiLocateProtocolHandleBuffers'] = 0
92 gConsumedProtocolLibrary
['EfiLocateProtocolInterface'] = 0
93 gConsumedProtocolLibrary
['EfiHandleProtocol'] = 1
95 # Dict for callback PROTOCOL function callling
96 gCallbackProtocolLibrary
= OrderedDict()
97 gCallbackProtocolLibrary
['EfiRegisterProtocolCallback'] = 2
99 gArchProtocolGuids
= {'665e3ff6-46cc-11d4-9a38-0090273fc14d',
100 '26baccb1-6f42-11d4-bce7-0080c73c8881',
101 '26baccb2-6f42-11d4-bce7-0080c73c8881',
102 '1da97072-bddc-4b30-99f1-72a0b56fff2a',
103 '27cfac87-46cc-11d4-9a38-0090273fc14d',
104 '27cfac88-46cc-11d4-9a38-0090273fc14d',
105 'b7dfb4e1-052f-449f-87be-9818fc91b733',
106 'a46423e3-4617-49f1-b9ff-d1bfa9115839',
107 'd2b2b828-0826-48a7-b3df-983c006024f0',
108 '26baccb3-6f42-11d4-bce7-0080c73c8881',
109 '1e5668e2-8481-11d4-bcf1-0080c73c8881',
110 '6441f818-6362-4e44-b570-7dba31dd2453',
111 '665e3ff5-46cc-11d4-9a38-0090273fc14d'}