]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/EdkIIGlueConfig.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / EdkIIGlueConfig.h
diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/EdkIIGlueConfig.h b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/EdkIIGlueConfig.h
new file mode 100644 (file)
index 0000000..6bbcfee
--- /dev/null
@@ -0,0 +1,144 @@
+/*++\r
+\r
+Copyright (c) 2004 - 2006, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.  \r
+\r
+\r
+Module Name:\r
+\r
+  EdkIIGlueConfig.h\r
+  \r
+Abstract: \r
+\r
+  Configurable items provided by GlueLib\r
+\r
+--*/\r
+\r
+#ifndef __EDKII_GLUE_CONFIG_H__\r
+#define __EDKII_GLUE_CONFIG_H__\r
+\r
+#include "EdkIIGlueProcessorBind.h"\r
+\r
+//\r
+//  Glue Library version\r
+//\r
+//  0x3000  - the 3rd release\r
+//  0x5000  - support IPF. Jan, 2007\r
+//  0x6000  - support EBC. Feb, 2007\r
+//\r
+//  For reference only, don't change the value\r
+//\r
+#define EDKII_GLUE_LIBRARY_VERSION 0x6000\r
+\r
+\r
+//\r
+// Check to make sure EFI_SPECIFICATION_VERSION and TIANO_RELEASE_VERSION are defined.\r
+//\r
+#if !defined(EFI_SPECIFICATION_VERSION)\r
+  #error EFI_SPECIFICATION_VERSION not defined\r
+#elif !defined(TIANO_RELEASE_VERSION)\r
+  #error TIANO_RELEASE_VERSION not defined\r
+#elif (TIANO_RELEASE_VERSION == 0)\r
+  #error TIANO_RELEASE_VERSION can not be zero\r
+#endif\r
+\r
+\r
+//\r
+//  Glue Library debug flag\r
+//\r
+//  Controls debug ON/OFF of GlueLib itself, no\r
+//  effect on any other libraries or modules\r
+//\r
+//  Values:\r
+//    FALSE           : debug off\r
+//    any TRUE value  : debug on\r
+//\r
+#define EDKII_GLUE_LIBRARY_DEBUG_ENABLE  0\r
+\r
+\r
+//\r
+// max unicode string length\r
+//\r
+#define EDKII_GLUE_MaximumUnicodeStringLength   1000000\r
+\r
+//\r
+// max ascii string length\r
+//\r
+#define EDKII_GLUE_MaximumAsciiStringLength     1000000\r
+\r
+//\r
+// spin lock timeout\r
+//\r
+#define EDKII_GLUE_SpinLockTimeout              10000000\r
+\r
+//\r
+// max linked list length\r
+//\r
+#define EDKII_GLUE_MaximumLinkedListLength      1000000\r
+\r
+//\r
+// debug print level\r
+// only when EFI_DEBUG is defined, the mask is effective\r
+//\r
+#define EDKII_GLUE_DebugPrintErrorLevel         EFI_D_ERROR\r
+\r
+//\r
+// debug propery mask\r
+// only when EFI_DEBUG is defined, the mask is effective\r
+//\r
+#define EDKII_GLUE_DebugPropertyMask            (  DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED                \\r
+                                                   | DEBUG_PROPERTY_DEBUG_PRINT_ENABLED               \\r
+                                                   | DEBUG_PROPERTY_DEBUG_CODE_ENABLED                \\r
+                                                   | DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED              \\r
+                                                   | DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED         \\r
+                                                   | DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED           \\r
+                                                )\r
+\r
+//\r
+// clear memory value\r
+//\r
+#define EDKII_GLUE_DebugClearMemoryValue        0xAF\r
+\r
+//\r
+// pci express base address\r
+//\r
+#define EDKII_GLUE_PciExpressBaseAddress        0xE0000000\r
+\r
+//\r
+//\r
+// This value is FSB Clock frequency. Its unit is Hz and its \r
+// default value is 200000000, that means FSB frequency is 200Mhz.\r
+//\r
+#define EDKII_GLUE_FSBClock                  200000000\r
+\r
+//\r
+// post code property mask\r
+//\r
+#define EDKII_GLUE_PostCodePropertyMask         (  POST_CODE_PROPERTY_POST_CODE_ENABLED               \\r
+                                                   | POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED \\r
+                                                )\r
+\r
+//\r
+// status code property mask\r
+//\r
+#define EDKII_GLUE_ReportStatusCodePropertyMask (  REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED  \\r
+                                                   | REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED   \\r
+                                                   | REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED   \\r
+                                                )\r
+\r
+\r
+//\r
+// for IPF only\r
+// The base address of IPF IO Block\r
+//\r
+#ifdef MDE_CPU_IPF\r
+#define EDKII_GLUE_IoBlockBaseAddressForIpf     0x0ffffc000000\r
+#endif\r
+\r
+#endif\r