]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/EdkIIGlueConfig.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / EdkIIGlueConfig.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 EdkIIGlueConfig.h\r
16 \r
17Abstract: \r
18\r
19 Configurable items provided by GlueLib\r
20\r
21--*/\r
22\r
23#ifndef __EDKII_GLUE_CONFIG_H__\r
24#define __EDKII_GLUE_CONFIG_H__\r
25\r
26#include "EdkIIGlueProcessorBind.h"\r
27\r
28//\r
29// Glue Library version\r
30//\r
31// 0x3000 - the 3rd release\r
32// 0x5000 - support IPF. Jan, 2007\r
33// 0x6000 - support EBC. Feb, 2007\r
34//\r
35// For reference only, don't change the value\r
36//\r
37#define EDKII_GLUE_LIBRARY_VERSION 0x6000\r
38\r
39\r
40//\r
41// Check to make sure EFI_SPECIFICATION_VERSION and TIANO_RELEASE_VERSION are defined.\r
42//\r
43#if !defined(EFI_SPECIFICATION_VERSION)\r
44 #error EFI_SPECIFICATION_VERSION not defined\r
45#elif !defined(TIANO_RELEASE_VERSION)\r
46 #error TIANO_RELEASE_VERSION not defined\r
47#elif (TIANO_RELEASE_VERSION == 0)\r
48 #error TIANO_RELEASE_VERSION can not be zero\r
49#endif\r
50\r
51\r
52//\r
53// Glue Library debug flag\r
54//\r
55// Controls debug ON/OFF of GlueLib itself, no\r
56// effect on any other libraries or modules\r
57//\r
58// Values:\r
59// FALSE : debug off\r
60// any TRUE value : debug on\r
61//\r
62#define EDKII_GLUE_LIBRARY_DEBUG_ENABLE 0\r
63\r
64\r
65//\r
66// max unicode string length\r
67//\r
68#define EDKII_GLUE_MaximumUnicodeStringLength 1000000\r
69\r
70//\r
71// max ascii string length\r
72//\r
73#define EDKII_GLUE_MaximumAsciiStringLength 1000000\r
74\r
75//\r
76// spin lock timeout\r
77//\r
78#define EDKII_GLUE_SpinLockTimeout 10000000\r
79\r
80//\r
81// max linked list length\r
82//\r
83#define EDKII_GLUE_MaximumLinkedListLength 1000000\r
84\r
85//\r
86// debug print level\r
87// only when EFI_DEBUG is defined, the mask is effective\r
88//\r
89#define EDKII_GLUE_DebugPrintErrorLevel EFI_D_ERROR\r
90\r
91//\r
92// debug propery mask\r
93// only when EFI_DEBUG is defined, the mask is effective\r
94//\r
95#define EDKII_GLUE_DebugPropertyMask ( DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED \\r
96 | DEBUG_PROPERTY_DEBUG_PRINT_ENABLED \\r
97 | DEBUG_PROPERTY_DEBUG_CODE_ENABLED \\r
98 | DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED \\r
99 | DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED \\r
100 | DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED \\r
101 )\r
102\r
103//\r
104// clear memory value\r
105//\r
106#define EDKII_GLUE_DebugClearMemoryValue 0xAF\r
107\r
108//\r
109// pci express base address\r
110//\r
111#define EDKII_GLUE_PciExpressBaseAddress 0xE0000000\r
112\r
113//\r
114//\r
115// This value is FSB Clock frequency. Its unit is Hz and its \r
116// default value is 200000000, that means FSB frequency is 200Mhz.\r
117//\r
118#define EDKII_GLUE_FSBClock 200000000\r
119\r
120//\r
121// post code property mask\r
122//\r
123#define EDKII_GLUE_PostCodePropertyMask ( POST_CODE_PROPERTY_POST_CODE_ENABLED \\r
124 | POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED \\r
125 )\r
126\r
127//\r
128// status code property mask\r
129//\r
130#define EDKII_GLUE_ReportStatusCodePropertyMask ( REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED \\r
131 | REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED \\r
132 | REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED \\r
133 )\r
134\r
135\r
136//\r
137// for IPF only\r
138// The base address of IPF IO Block\r
139//\r
140#ifdef MDE_CPU_IPF\r
141#define EDKII_GLUE_IoBlockBaseAddressForIpf 0x0ffffc000000\r
142#endif\r
143\r
144#endif\r