]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/EdkIIGlueConfig.h
2c5a3201e75968de359f902219c4290c6e7c5ea3
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / EdkIIGlueConfig.h
1 /*++
2
3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. 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
13 Module Name:
14
15 EdkIIGlueConfig.h
16
17 Abstract:
18
19 Configurable items provided by GlueLib
20
21 --*/
22
23 #ifndef __EDKII_GLUE_CONFIG_H__
24 #define __EDKII_GLUE_CONFIG_H__
25
26 #include "EdkIIGlueProcessorBind.h"
27
28 //
29 // Glue Library version
30 //
31 // 0x3000 - the 3rd release
32 // 0x5000 - support IPF. Jan, 2007
33 // 0x6000 - support EBC. Feb, 2007
34 // 0x7000 - size reduction, Jun, 2007
35 // 0x7100 - backward compatibility supported, Jun, 2007
36 //
37 // For reference only, don't change the value
38 //
39 #define EDKII_GLUE_LIBRARY_VERSION 0x7100
40
41
42 //
43 // Check to make sure EFI_SPECIFICATION_VERSION and TIANO_RELEASE_VERSION are defined.
44 //
45 #if !defined(EFI_SPECIFICATION_VERSION)
46 #error EFI_SPECIFICATION_VERSION not defined
47 #elif !defined(TIANO_RELEASE_VERSION)
48 #error TIANO_RELEASE_VERSION not defined
49 #elif (TIANO_RELEASE_VERSION == 0)
50 #error TIANO_RELEASE_VERSION can not be zero
51 #endif
52
53
54 //
55 // Glue Library debug flag
56 //
57 // Controls debug ON/OFF of GlueLib itself, no
58 // effect on any other libraries or modules
59 //
60 // Values:
61 // FALSE : debug off
62 // any TRUE value : debug on
63 //
64 #define EDKII_GLUE_LIBRARY_DEBUG_ENABLE 0
65
66
67 //
68 // max unicode string length
69 //
70 #define EDKII_GLUE_MaximumUnicodeStringLength 1000000
71
72 //
73 // max ascii string length
74 //
75 #define EDKII_GLUE_MaximumAsciiStringLength 1000000
76
77 //
78 // spin lock timeout
79 //
80 #define EDKII_GLUE_SpinLockTimeout 10000000
81
82 //
83 // max linked list length
84 //
85 #define EDKII_GLUE_MaximumLinkedListLength 1000000
86
87 //
88 // debug print level
89 //
90 #define EDKII_GLUE_DebugPrintErrorLevel EFI_D_ERROR
91
92 //
93 // debug propery mask
94 //
95 #define EDKII_GLUE_DebugPropertyMask ( DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED \
96 | DEBUG_PROPERTY_DEBUG_PRINT_ENABLED \
97 | DEBUG_PROPERTY_DEBUG_CODE_ENABLED \
98 | DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED \
99 | DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED \
100 | DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED \
101 )
102
103 //
104 // clear memory value
105 //
106 #define EDKII_GLUE_DebugClearMemoryValue 0xAF
107
108 //
109 // pci express base address.
110 // "PCD_EDKII_GLUE_PciExpressBaseAddress" is required to be defined explicitly:
111 // e.g. in EDK II DSC file to build EDK modules:
112 // [BuildOptions]
113 // *_*_*_CC_FLAGS = /D PCD_EDKII_GLUE_PciExpressBaseAddress=0xC0000000
114 //
115 #ifndef EDKII_GLUE_PciExpressBaseAddress
116 #define EDKII_GLUE_PciExpressBaseAddress PCD_EDKII_GLUE_PciExpressBaseAddress
117 #endif
118
119 //
120 //
121 // This value is FSB Clock frequency. Its unit is Hz and its
122 // default value is 200000000, that means FSB frequency is 200Mhz.
123 //
124 #define EDKII_GLUE_FSBClock 200000000
125
126 //
127 // post code property mask
128 //
129 #define EDKII_GLUE_PostCodePropertyMask ( POST_CODE_PROPERTY_POST_CODE_ENABLED \
130 | POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED \
131 )
132
133 //
134 // status code property mask
135 //
136 #define EDKII_GLUE_ReportStatusCodePropertyMask ( REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED \
137 | REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED \
138 | REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED \
139 )
140
141 //
142 // for IPF only
143 // The base address of IPF IO Block
144 //
145 #ifdef MDE_CPU_IPF
146 #define EDKII_GLUE_IoBlockBaseAddressForIpf 0x0ffffc000000
147 #endif
148
149 #endif