2007-06-28 09:00:39 +02:00
|
|
|
/*++
|
|
|
|
|
2010-04-28 13:42:36 +02:00
|
|
|
Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials
|
2007-06-28 09:00:39 +02:00
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
|
|
|
|
Module Name:
|
|
|
|
|
|
|
|
EdkIIGlueConfig.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Configurable items provided by GlueLib
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#ifndef __EDKII_GLUE_CONFIG_H__
|
|
|
|
#define __EDKII_GLUE_CONFIG_H__
|
|
|
|
|
|
|
|
#include "EdkIIGlueProcessorBind.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// Glue Library version
|
|
|
|
//
|
|
|
|
// 0x3000 - the 3rd release
|
|
|
|
// 0x5000 - support IPF. Jan, 2007
|
|
|
|
// 0x6000 - support EBC. Feb, 2007
|
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
1.1) Bug fixes. (For details, please check Documents & files: Snapshot/Release Notes at https://edk.tianocore.org/servlets/ProjectDocumentList?folderID=43&expandFolder=43&folderID=6)
1.2) Add new UEFI protocol definitions for AbsolutePointer, FormBrowser2, HiiConfigAccess, HiiConfigRouting, HiiDatabase, HiiFont, HiiImage, HiiString, SimpleTextInputEx, DPC protocol.
1.3) Add Smbios 2.5, 2.6 supports.
Incompatible changes hilighted:
1) EFI_MANAGED_NETWORK_PROTOCOL_GUID changed.
2) EFI_IP4_IPCONFIG_DATA changed.
2) Add in EdkCompatibilityPkg/EdkCompatibilityPkg.dsc to build all libraries in this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4623 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 08:10:05 +01:00
|
|
|
// 0x7000 - size reduction, Jun, 2007
|
|
|
|
// 0x7100 - backward compatibility supported, Jun, 2007
|
2007-06-28 09:00:39 +02:00
|
|
|
//
|
|
|
|
// For reference only, don't change the value
|
|
|
|
//
|
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
1.1) Bug fixes. (For details, please check Documents & files: Snapshot/Release Notes at https://edk.tianocore.org/servlets/ProjectDocumentList?folderID=43&expandFolder=43&folderID=6)
1.2) Add new UEFI protocol definitions for AbsolutePointer, FormBrowser2, HiiConfigAccess, HiiConfigRouting, HiiDatabase, HiiFont, HiiImage, HiiString, SimpleTextInputEx, DPC protocol.
1.3) Add Smbios 2.5, 2.6 supports.
Incompatible changes hilighted:
1) EFI_MANAGED_NETWORK_PROTOCOL_GUID changed.
2) EFI_IP4_IPCONFIG_DATA changed.
2) Add in EdkCompatibilityPkg/EdkCompatibilityPkg.dsc to build all libraries in this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4623 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 08:10:05 +01:00
|
|
|
#define EDKII_GLUE_LIBRARY_VERSION 0x7100
|
2007-06-28 09:00:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Check to make sure EFI_SPECIFICATION_VERSION and TIANO_RELEASE_VERSION are defined.
|
|
|
|
//
|
|
|
|
#if !defined(EFI_SPECIFICATION_VERSION)
|
|
|
|
#error EFI_SPECIFICATION_VERSION not defined
|
|
|
|
#elif !defined(TIANO_RELEASE_VERSION)
|
|
|
|
#error TIANO_RELEASE_VERSION not defined
|
|
|
|
#elif (TIANO_RELEASE_VERSION == 0)
|
|
|
|
#error TIANO_RELEASE_VERSION can not be zero
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Glue Library debug flag
|
|
|
|
//
|
|
|
|
// Controls debug ON/OFF of GlueLib itself, no
|
|
|
|
// effect on any other libraries or modules
|
|
|
|
//
|
|
|
|
// Values:
|
|
|
|
// FALSE : debug off
|
|
|
|
// any TRUE value : debug on
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_LIBRARY_DEBUG_ENABLE 0
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// max unicode string length
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_MaximumUnicodeStringLength 1000000
|
|
|
|
|
|
|
|
//
|
|
|
|
// max ascii string length
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_MaximumAsciiStringLength 1000000
|
|
|
|
|
|
|
|
//
|
|
|
|
// spin lock timeout
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_SpinLockTimeout 10000000
|
|
|
|
|
|
|
|
//
|
|
|
|
// max linked list length
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_MaximumLinkedListLength 1000000
|
|
|
|
|
|
|
|
//
|
|
|
|
// debug print level
|
|
|
|
//
|
2008-11-18 08:59:24 +01:00
|
|
|
#define EDKII_GLUE_DebugPrintErrorLevel (EFI_D_ERROR|EFI_D_INFO)
|
2007-06-28 09:00:39 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// debug propery mask
|
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
1.1) Bug fixes. (For details, please check Documents & files: Snapshot/Release Notes at https://edk.tianocore.org/servlets/ProjectDocumentList?folderID=43&expandFolder=43&folderID=6)
1.2) Add new UEFI protocol definitions for AbsolutePointer, FormBrowser2, HiiConfigAccess, HiiConfigRouting, HiiDatabase, HiiFont, HiiImage, HiiString, SimpleTextInputEx, DPC protocol.
1.3) Add Smbios 2.5, 2.6 supports.
Incompatible changes hilighted:
1) EFI_MANAGED_NETWORK_PROTOCOL_GUID changed.
2) EFI_IP4_IPCONFIG_DATA changed.
2) Add in EdkCompatibilityPkg/EdkCompatibilityPkg.dsc to build all libraries in this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4623 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 08:10:05 +01:00
|
|
|
//
|
|
|
|
#define EDKII_GLUE_DebugPropertyMask ( DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED \
|
|
|
|
| DEBUG_PROPERTY_DEBUG_PRINT_ENABLED \
|
|
|
|
| DEBUG_PROPERTY_DEBUG_CODE_ENABLED \
|
|
|
|
| DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED \
|
|
|
|
| DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED \
|
|
|
|
)
|
2007-06-28 09:00:39 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// clear memory value
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_DebugClearMemoryValue 0xAF
|
|
|
|
|
|
|
|
//
|
2008-03-27 05:49:40 +01:00
|
|
|
// pci express base address.
|
|
|
|
// "PCD_EDKII_GLUE_PciExpressBaseAddress" is required to be defined explicitly:
|
|
|
|
// e.g. in EDK II DSC file to build EDK modules:
|
|
|
|
// [BuildOptions]
|
|
|
|
// *_*_*_CC_FLAGS = /D PCD_EDKII_GLUE_PciExpressBaseAddress=0xC0000000
|
2007-06-28 09:00:39 +02:00
|
|
|
//
|
2008-09-10 14:53:36 +02:00
|
|
|
#ifndef EDKII_GLUE_PciExpressBaseAddress
|
2008-03-27 05:49:40 +01:00
|
|
|
#define EDKII_GLUE_PciExpressBaseAddress PCD_EDKII_GLUE_PciExpressBaseAddress
|
2008-09-10 14:53:36 +02:00
|
|
|
#endif
|
2007-06-28 09:00:39 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// This value is FSB Clock frequency. Its unit is Hz and its
|
|
|
|
// default value is 200000000, that means FSB frequency is 200Mhz.
|
|
|
|
//
|
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
1.1) Bug fixes. (For details, please check Documents & files: Snapshot/Release Notes at https://edk.tianocore.org/servlets/ProjectDocumentList?folderID=43&expandFolder=43&folderID=6)
1.2) Add new UEFI protocol definitions for AbsolutePointer, FormBrowser2, HiiConfigAccess, HiiConfigRouting, HiiDatabase, HiiFont, HiiImage, HiiString, SimpleTextInputEx, DPC protocol.
1.3) Add Smbios 2.5, 2.6 supports.
Incompatible changes hilighted:
1) EFI_MANAGED_NETWORK_PROTOCOL_GUID changed.
2) EFI_IP4_IPCONFIG_DATA changed.
2) Add in EdkCompatibilityPkg/EdkCompatibilityPkg.dsc to build all libraries in this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4623 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 08:10:05 +01:00
|
|
|
#define EDKII_GLUE_FSBClock 200000000
|
2007-06-28 09:00:39 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// post code property mask
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_PostCodePropertyMask ( POST_CODE_PROPERTY_POST_CODE_ENABLED \
|
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
1.1) Bug fixes. (For details, please check Documents & files: Snapshot/Release Notes at https://edk.tianocore.org/servlets/ProjectDocumentList?folderID=43&expandFolder=43&folderID=6)
1.2) Add new UEFI protocol definitions for AbsolutePointer, FormBrowser2, HiiConfigAccess, HiiConfigRouting, HiiDatabase, HiiFont, HiiImage, HiiString, SimpleTextInputEx, DPC protocol.
1.3) Add Smbios 2.5, 2.6 supports.
Incompatible changes hilighted:
1) EFI_MANAGED_NETWORK_PROTOCOL_GUID changed.
2) EFI_IP4_IPCONFIG_DATA changed.
2) Add in EdkCompatibilityPkg/EdkCompatibilityPkg.dsc to build all libraries in this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4623 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 08:10:05 +01:00
|
|
|
| POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED \
|
2007-06-28 09:00:39 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
//
|
|
|
|
// status code property mask
|
|
|
|
//
|
|
|
|
#define EDKII_GLUE_ReportStatusCodePropertyMask ( REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED \
|
1) Sync EdkCompatibilityPkg with EDK 1.04. The changes includes:
1.1) Bug fixes. (For details, please check Documents & files: Snapshot/Release Notes at https://edk.tianocore.org/servlets/ProjectDocumentList?folderID=43&expandFolder=43&folderID=6)
1.2) Add new UEFI protocol definitions for AbsolutePointer, FormBrowser2, HiiConfigAccess, HiiConfigRouting, HiiDatabase, HiiFont, HiiImage, HiiString, SimpleTextInputEx, DPC protocol.
1.3) Add Smbios 2.5, 2.6 supports.
Incompatible changes hilighted:
1) EFI_MANAGED_NETWORK_PROTOCOL_GUID changed.
2) EFI_IP4_IPCONFIG_DATA changed.
2) Add in EdkCompatibilityPkg/EdkCompatibilityPkg.dsc to build all libraries in this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4623 6f19259b-4bc3-4df7-8a09-765794883524
2008-01-24 08:10:05 +01:00
|
|
|
| REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED \
|
|
|
|
| REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED \
|
|
|
|
)
|
2007-06-28 09:00:39 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// for IPF only
|
|
|
|
// The base address of IPF IO Block
|
|
|
|
//
|
|
|
|
#ifdef MDE_CPU_IPF
|
|
|
|
#define EDKII_GLUE_IoBlockBaseAddressForIpf 0x0ffffc000000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|