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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
@@ -23,7 +23,11 @@ Abstract:
|
||||
#ifndef __EDKII_GLUE_DEFINITION_CHANGES_BASE_H__
|
||||
#define __EDKII_GLUE_DEFINITION_CHANGES_BASE_H__
|
||||
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
||||
#include "TianoHii.h"
|
||||
#else
|
||||
#include "EfiInternalFormRepresentation.h"
|
||||
#endif
|
||||
#include "EfiPxe.h"
|
||||
|
||||
|
||||
@@ -47,7 +51,7 @@ Abstract:
|
||||
// ----------------------------------------------------------------------------------
|
||||
// InternalFormRepresentation.h:
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
#if (EFI_SPECIFICATION_VERSION < 0x0002000A)
|
||||
typedef struct {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
UINT16 QuestionId; // The ID designating what the question is about...sucked in from a #define, likely in the form of a variable name
|
||||
@@ -66,6 +70,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
EFI_IFR_OP_HEADER Header;
|
||||
} EFI_IFR_END_EXPR;
|
||||
#endif
|
||||
|
||||
// ------------------------
|
||||
// define GUID as EFI_GUID
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
@@ -23,7 +23,11 @@ Abstract:
|
||||
#ifndef __EDKII_GLUE_DEFINITION_CHANGES_DXE_H__
|
||||
#define __EDKII_GLUE_DEFINITION_CHANGES_DXE_H__
|
||||
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
||||
#include "TianoHii.h"
|
||||
#else
|
||||
#include "EfiInternalFormRepresentation.h"
|
||||
#endif
|
||||
|
||||
#include "EdkIIGlueDefinitionChangesBase.h"
|
||||
|
||||
@@ -59,8 +63,10 @@ typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION EFI_MISC_SMBIOS_STRUCT_ENCA
|
||||
// -------------------
|
||||
#define gEfiAcpiSupportProtocolGuid gEfiAcpiSupportGuid
|
||||
#define gEfiLoadPeImageProtocolGuid gEfiLoadPeImageGuid
|
||||
#if (EFI_SPECIFICATION_VERSION < 0x0002000A)
|
||||
#define EFI_GLYPH_NON_SPACING GLYPH_NON_SPACING
|
||||
#define EFI_GLYPH_WIDE GLYPH_NON_BREAKING
|
||||
#endif
|
||||
#define BOOT_OBJECT_AUTHORIZATION_PARMSET_GUID BOOT_OBJECT_AUTHORIZATION_PARMSET_GUIDVALUE
|
||||
#define EFI_EBC_PROTOCOL_GUID EFI_EBC_INTERPRETER_PROTOCOL_GUID
|
||||
#define EFI_FILE_SYSTEM_VOLUME_LABEL_ID EFI_FILE_SYSTEM_VOLUME_LABEL_INFO_ID_GUID
|
||||
@@ -78,7 +84,9 @@ typedef EFI_MISC_SMBIOS_STRUCT_ENCAPSULATION EFI_MISC_SMBIOS_STRUCT_ENCA
|
||||
//
|
||||
typedef EFI_VOLUME_OPEN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_OPEN_VOLUME;
|
||||
typedef EFI_TEXT_OUTPUT_STRING EFI_TEXT_STRING;
|
||||
#if (EFI_SPECIFICATION_VERSION < 0x0002000A)
|
||||
typedef SCREEN_DESCRIPTOR EFI_SCREEN_DESCRIPTOR;
|
||||
#endif
|
||||
typedef EFI_SIMPLE_TEXT_IN_PROTOCOL EFI_SIMPLE_TEXT_INPUT_PROTOCOL;
|
||||
typedef EFI_SIMPLE_TEXT_OUT_PROTOCOL EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL;
|
||||
//typedef EFI_TO_LEGACY16_INIT_TABLE EFI_TO_COMPATIBILITY16_INIT_TABLE;
|
||||
|
@@ -23,9 +23,14 @@ Abstract:
|
||||
#ifndef __EDKII_GLUE_DEFINITION_CHANGES_PEIM_H__
|
||||
#define __EDKII_GLUE_DEFINITION_CHANGES_PEIM_H__
|
||||
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
||||
#include "TianoHii.h"
|
||||
#else
|
||||
#include "EfiInternalFormRepresentation.h"
|
||||
#endif
|
||||
|
||||
#include "EdkIIGlueDefinitionChangesBase.h"
|
||||
|
||||
#include "EfiPciCfg.h"
|
||||
|
||||
//
|
||||
|
@@ -61,6 +61,45 @@ Abstract:
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// DxePerformanceLib
|
||||
//
|
||||
#ifdef __EDKII_GLUE_DXE_PERFORMANCE_LIB__
|
||||
#ifndef __EDKII_GLUE_BASE_LIB__
|
||||
#define __EDKII_GLUE_BASE_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_BASE_MEMORY_LIB__
|
||||
#define __EDKII_GLUE_BASE_MEMORY_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_DXE_MEMORY_ALLOCATION_LIB__
|
||||
#define __EDKII_GLUE_DXE_MEMORY_ALLOCATION_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_DXE_HOB_LIB__
|
||||
#define __EDKII_GLUE_DXE_HOB_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_UEFI_BOOT_SERVICES_TABLE_LIB__
|
||||
#define __EDKII_GLUE_UEFI_BOOT_SERVICES_TABLE_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_UEFI_LIB__
|
||||
#define __EDKII_GLUE_UEFI_LIB__
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// PeiPerformanceLib
|
||||
//
|
||||
#ifdef __EDKII_GLUE_PEI_PERFORMANCE_LIB__
|
||||
#ifndef __EDKII_GLUE_BASE_LIB__
|
||||
#define __EDKII_GLUE_BASE_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_BASE_MEMORY_LIB__
|
||||
#define __EDKII_GLUE_BASE_MEMORY_LIB__
|
||||
#endif
|
||||
#ifndef __EDKII_GLUE_PEI_SERVICES_LIB__
|
||||
#define __EDKII_GLUE_PEI_SERVICES_LIB__
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// EdkDxeRuntimeDriverLib
|
||||
//
|
||||
@@ -554,6 +593,14 @@ Abstract:
|
||||
//
|
||||
#endif
|
||||
|
||||
//
|
||||
// Whether _gDriverExitBootServicesEvent[] contains effective handler
|
||||
//
|
||||
#if defined(__EDKII_GLUE_EDK_DXE_RUNTIME_DRIVER_LIB__) || defined(__EDKII_GLUE_EXIT_BOOT_SERVICES_EVENT_HANDLER__)
|
||||
#define __EDKII_GLUE_HAVE_DRIVER_EXIT_BOOT_SERVICES_EVENT__ 1
|
||||
#else
|
||||
#define __EDKII_GLUE_HAVE_DRIVER_EXIT_BOOT_SERVICES_EVENT__ 0
|
||||
#endif
|
||||
|
||||
//
|
||||
// Check against multiple instances of same library class being used
|
||||
@@ -654,6 +701,7 @@ Abstract:
|
||||
|
||||
#ifdef __EDKII_GLUE_UEFI_BOOT_SERVICES_TABLE_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
UefiBootServicesTableLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -671,6 +719,7 @@ IoLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_UEFI_RUNTIME_SERVICES_TABLE_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
UefiRuntimeServicesTableLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -679,6 +728,7 @@ UefiRuntimeServicesTableLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_EDK_DXE_RUNTIME_DRIVER_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
RuntimeDriverLibConstruct (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -687,6 +737,7 @@ RuntimeDriverLibConstruct (
|
||||
|
||||
#ifdef __EDKII_GLUE_DXE_HOB_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
HobLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -695,6 +746,7 @@ HobLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_UEFI_DRIVER_MODEL_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
UefiDriverModelLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -703,6 +755,7 @@ UefiDriverModelLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_PEI_SERVICES_TABLE_POINTER_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PeiServicesTablePointerLibConstructor (
|
||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
||||
IN EFI_PEI_SERVICES **PeiServices
|
||||
@@ -711,6 +764,7 @@ PeiServicesTablePointerLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_PEI_SERVICES_TABLE_POINTER_LIB_MM7__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PeiServicesTablePointerLibConstructor (
|
||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
||||
IN EFI_PEI_SERVICES **PeiServices
|
||||
@@ -719,6 +773,7 @@ PeiServicesTablePointerLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_PEI_SERVICES_TABLE_POINTER_LIB_KR1__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PeiServicesTablePointerLibConstructor (
|
||||
IN EFI_FFS_FILE_HEADER *FfsHeader,
|
||||
IN EFI_PEI_SERVICES **PeiServices
|
||||
@@ -736,6 +791,7 @@ SmbusLibConstructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_DXE_SERVICES_TABLE_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
DxeServicesTableLibConstructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -760,6 +816,7 @@ DxeSalLibConstructor (
|
||||
//
|
||||
#ifdef __EDKII_GLUE_UEFI_DRIVER_MODEL_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
UefiDriverModelLibDestructor (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
@@ -768,6 +825,7 @@ UefiDriverModelLibDestructor (
|
||||
|
||||
#ifdef __EDKII_GLUE_EDK_DXE_RUNTIME_DRIVER_LIB__
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
RuntimeDriverLibDeconstruct (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
|
@@ -30,6 +30,10 @@ Abstract:
|
||||
#define BUILD_WITH_EDKII_GLUE_LIB
|
||||
#endif
|
||||
|
||||
#ifndef BUILD_WITH_GLUELIB
|
||||
#define BUILD_WITH_GLUELIB
|
||||
#endif
|
||||
|
||||
//
|
||||
// General Type & API definitions
|
||||
//
|
||||
|
@@ -31,10 +31,12 @@ Abstract:
|
||||
// 0x3000 - the 3rd release
|
||||
// 0x5000 - support IPF. Jan, 2007
|
||||
// 0x6000 - support EBC. Feb, 2007
|
||||
// 0x7000 - size reduction, Jun, 2007
|
||||
// 0x7100 - backward compatibility supported, Jun, 2007
|
||||
//
|
||||
// For reference only, don't change the value
|
||||
//
|
||||
#define EDKII_GLUE_LIBRARY_VERSION 0x6000
|
||||
#define EDKII_GLUE_LIBRARY_VERSION 0x7100
|
||||
|
||||
|
||||
//
|
||||
@@ -84,21 +86,19 @@ Abstract:
|
||||
|
||||
//
|
||||
// debug print level
|
||||
// only when EFI_DEBUG is defined, the mask is effective
|
||||
//
|
||||
#define EDKII_GLUE_DebugPrintErrorLevel EFI_D_ERROR
|
||||
|
||||
//
|
||||
// debug propery mask
|
||||
// only when EFI_DEBUG is defined, the mask is effective
|
||||
//
|
||||
#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_BREAKPOINT_ENABLED \
|
||||
| DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED \
|
||||
)
|
||||
#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_BREAKPOINT_ENABLED \
|
||||
| DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED \
|
||||
)
|
||||
|
||||
//
|
||||
// clear memory value
|
||||
@@ -115,23 +115,22 @@ Abstract:
|
||||
// This value is FSB Clock frequency. Its unit is Hz and its
|
||||
// default value is 200000000, that means FSB frequency is 200Mhz.
|
||||
//
|
||||
#define EDKII_GLUE_FSBClock 200000000
|
||||
#define EDKII_GLUE_FSBClock 200000000
|
||||
|
||||
//
|
||||
// post code property mask
|
||||
//
|
||||
#define EDKII_GLUE_PostCodePropertyMask ( POST_CODE_PROPERTY_POST_CODE_ENABLED \
|
||||
| POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED \
|
||||
| POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED \
|
||||
)
|
||||
|
||||
//
|
||||
// status code property mask
|
||||
//
|
||||
#define EDKII_GLUE_ReportStatusCodePropertyMask ( REPORT_STATUS_CODE_PROPERTY_PROGRESS_CODE_ENABLED \
|
||||
| REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED \
|
||||
| REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED \
|
||||
)
|
||||
|
||||
| REPORT_STATUS_CODE_PROPERTY_ERROR_CODE_ENABLED \
|
||||
| REPORT_STATUS_CODE_PROPERTY_DEBUG_CODE_ENABLED \
|
||||
)
|
||||
|
||||
//
|
||||
// for IPF only
|
||||
|
@@ -39,8 +39,13 @@ Abstract:
|
||||
#include "EfiFirmwareVolumeHeader.h"
|
||||
#include "EfiFirmwareFileSystem.h"
|
||||
#include "PeiHob.h"
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
||||
#include "TianoHii.h"
|
||||
#else
|
||||
#include "EfiInternalFormRepresentation.h"
|
||||
#endif
|
||||
#include "EfiStatusCode.h"
|
||||
#include "EfiPerf.h"
|
||||
|
||||
//
|
||||
// IPF only
|
||||
@@ -90,10 +95,20 @@ Abstract:
|
||||
// resolved when porting a module to real EDK II
|
||||
//
|
||||
#include EFI_GUID_DEFINITION (StatusCodeDataTypeId)
|
||||
#include EFI_GUID_DEFINITION (PeiPerformanceHob)
|
||||
|
||||
//
|
||||
// Protocol definitions
|
||||
//
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x0002000A)
|
||||
#include EFI_PROTOCOL_DEFINITION (FormBrowser2)
|
||||
#include EFI_PROTOCOL_DEFINITION (HiiConfigAccess)
|
||||
#include EFI_PROTOCOL_DEFINITION (HiiConfigRouting)
|
||||
#include EFI_PROTOCOL_DEFINITION (HiiDatabase)
|
||||
#include EFI_PROTOCOL_DEFINITION (HiiFont)
|
||||
#include EFI_PROTOCOL_DEFINITION (HiiImage)
|
||||
#include EFI_PROTOCOL_DEFINITION (HiiString)
|
||||
#endif
|
||||
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
||||
#include EFI_PROTOCOL_DEFINITION (DevicePathFromText)
|
||||
@@ -120,7 +135,9 @@ Abstract:
|
||||
#include EFI_PROTOCOL_DEFINITION (BootScriptSave)
|
||||
#include EFI_PROTOCOL_DEFINITION (BusSpecificDriverOverride)
|
||||
#include EFI_PROTOCOL_DEFINITION (ComponentName)
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
||||
#include EFI_PROTOCOL_DEFINITION (ComponentName2)
|
||||
#endif
|
||||
#include EFI_PROTOCOL_DEFINITION (CpuIo)
|
||||
#include EFI_PROTOCOL_DEFINITION (DataHub)
|
||||
#include EFI_PROTOCOL_DEFINITION (DebugPort)
|
||||
@@ -140,10 +157,14 @@ Abstract:
|
||||
#include EFI_PROTOCOL_DEFINITION (FirmwareVolume)
|
||||
#include EFI_PROTOCOL_DEFINITION (FirmwareVolumeBlock)
|
||||
#include EFI_PROTOCOL_DEFINITION (FirmwareVolumeDispatch)
|
||||
#if (EFI_SPECIFICATION_VERSION < 0x0002000A)
|
||||
#include EFI_PROTOCOL_DEFINITION (FormBrowser)
|
||||
#include EFI_PROTOCOL_DEFINITION (FormCallback)
|
||||
#endif
|
||||
#include EFI_PROTOCOL_DEFINITION (GuidedSectionExtraction)
|
||||
#if (EFI_SPECIFICATION_VERSION < 0x0002000A)
|
||||
#include EFI_PROTOCOL_DEFINITION (Hii)
|
||||
#endif
|
||||
#include EFI_PROTOCOL_DEFINITION (IdeControllerInit)
|
||||
#include EFI_PROTOCOL_DEFINITION (IncompatiblePciDeviceSupport)
|
||||
#include EFI_PROTOCOL_DEFINITION (Legacy8259)
|
||||
|
@@ -45,6 +45,7 @@ Abstract:
|
||||
#include "EfiCapsule.h"
|
||||
#include EFI_PROTOCOL_DEFINITION (DevicePath)
|
||||
#include "TianoDevicePath.h"
|
||||
#include "PeiPerf.h"
|
||||
|
||||
//
|
||||
// GUID definitions
|
||||
@@ -58,6 +59,8 @@ Abstract:
|
||||
#include EFI_GUID_DEFINITION (FirmwareFileSystem)
|
||||
#include EFI_GUID_DEFINITION (SmramMemoryReserve)
|
||||
#include EFI_GUID_DEFINITION (DataHubRecords)
|
||||
#include EFI_GUID_DEFINITION (PeiPerformanceHob)
|
||||
|
||||
//
|
||||
// *** NOTE ***: StatusCodeDataTypeId definition differences need to be
|
||||
// resolved when porting a module to real EDK II
|
||||
|
@@ -73,7 +73,9 @@ Abstract:
|
||||
#include EFI_PROTOCOL_DEFINITION(Bis)
|
||||
#include EFI_PROTOCOL_DEFINITION(BusSpecificDriverOverride)
|
||||
#include EFI_PROTOCOL_DEFINITION(ComponentName)
|
||||
#include EFI_PROTOCOL_DEFINITION(ComponentName2)
|
||||
#if (EFI_SPECIFICATION_VERSION >= 0x00020000)
|
||||
#include EFI_PROTOCOL_DEFINITION (ComponentName2)
|
||||
#endif
|
||||
#include EFI_PROTOCOL_DEFINITION(DebugPort)
|
||||
#include EFI_PROTOCOL_DEFINITION(DebugSupport)
|
||||
#include EFI_PROTOCOL_DEFINITION(Decompress)
|
||||
|
@@ -37,5 +37,32 @@ Abstract:
|
||||
#ifndef MDE_CPU_IPF
|
||||
#define MDE_CPU_IPF
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// IPF Specific Functions
|
||||
//
|
||||
typedef struct {
|
||||
UINT64 Status;
|
||||
UINT64 r9;
|
||||
UINT64 r10;
|
||||
UINT64 r11;
|
||||
} PAL_CALL_RETURN;
|
||||
|
||||
|
||||
#define EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_LO 0x4871260ec1a74056
|
||||
#define EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_HI 0x116e5ba645e631a0
|
||||
|
||||
#define EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO 0x4d02efdb7e97a470
|
||||
#define EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI 0x96a27bd29061ce8f
|
||||
|
||||
#define EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_LO 0x4370c6414ecb6c53
|
||||
#define EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_HI 0x78836e490e3bb28c
|
||||
|
||||
#define EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_LO 0x408b75e8899afd18
|
||||
#define EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_HI 0x54f4cd7e2e6e1aa4
|
||||
|
||||
#define EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID_LO 0x46f58ce17d019990
|
||||
#define EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID_HI 0xa06a6798513c76a7
|
||||
|
||||
|
||||
#endif
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -97,6 +97,19 @@ Abstract:
|
||||
#define EFI_D_EVENT DEBUG_EVENT
|
||||
#define EFI_D_ERROR DEBUG_ERROR
|
||||
|
||||
|
||||
//
|
||||
// Use the following 4 macros to save size
|
||||
//
|
||||
#define DebugAssertEnabled() ((BOOLEAN)((__EDKII_GLUE_PCD_PcdDebugPropertyMask__ & DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED) != 0))
|
||||
|
||||
#define DebugPrintEnabled() ((BOOLEAN)((__EDKII_GLUE_PCD_PcdDebugPropertyMask__ & DEBUG_PROPERTY_DEBUG_PRINT_ENABLED) != 0))
|
||||
|
||||
#define DebugCodeEnabled() ((BOOLEAN)((__EDKII_GLUE_PCD_PcdDebugPropertyMask__ & DEBUG_PROPERTY_DEBUG_CODE_ENABLED) != 0))
|
||||
|
||||
#define DebugClearMemoryEnabled() ((BOOLEAN)((__EDKII_GLUE_PCD_PcdDebugPropertyMask__ & DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED) != 0))
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Prints a debug message to the debug output device if the specified error level is enabled.
|
||||
@@ -177,78 +190,6 @@ DebugClearMemory (
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Returns TRUE if ASSERT() macros are enabled.
|
||||
|
||||
This function returns TRUE if the DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of
|
||||
PcdDebugProperyMask is set. Otherwise FALSE is returned.
|
||||
|
||||
@retval TRUE The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is set.
|
||||
@retval FALSE The DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED bit of PcdDebugProperyMask is clear.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
DebugAssertEnabled (
|
||||
VOID
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Returns TRUE if DEBUG()macros are enabled.
|
||||
|
||||
This function returns TRUE if the DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of
|
||||
PcdDebugProperyMask is set. Otherwise FALSE is returned.
|
||||
|
||||
@retval TRUE The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is set.
|
||||
@retval FALSE The DEBUG_PROPERTY_DEBUG_PRINT_ENABLED bit of PcdDebugProperyMask is clear.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
DebugPrintEnabled (
|
||||
VOID
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Returns TRUE if DEBUG_CODE()macros are enabled.
|
||||
|
||||
This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of
|
||||
PcdDebugProperyMask is set. Otherwise FALSE is returned.
|
||||
|
||||
@retval TRUE The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is set.
|
||||
@retval FALSE The DEBUG_PROPERTY_DEBUG_CODE_ENABLED bit of PcdDebugProperyMask is clear.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
DebugCodeEnabled (
|
||||
VOID
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Returns TRUE if DEBUG_CLEAR_MEMORY()macro is enabled.
|
||||
|
||||
This function returns TRUE if the DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of
|
||||
PcdDebugProperyMask is set. Otherwise FALSE is returned.
|
||||
|
||||
@retval TRUE The DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is set.
|
||||
@retval FALSE The DEBUG_PROPERTY_DEBUG_CLEAR_MEMORY_ENABLED bit of PcdDebugProperyMask is clear.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
DebugClearMemoryEnabled (
|
||||
VOID
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Internal worker macro that calls DebugAssert().
|
||||
@@ -259,8 +200,12 @@ DebugClearMemoryEnabled (
|
||||
@param Expression Boolean expression that evailated to FALSE
|
||||
|
||||
**/
|
||||
#ifdef EFI_DEBUG
|
||||
#define _ASSERT(Expression) DebugAssert (__FILE__, __LINE__, #Expression)
|
||||
#else
|
||||
#define _ASSERT(Expression)
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -273,8 +218,12 @@ DebugClearMemoryEnabled (
|
||||
and a variable argument list based on the format string.
|
||||
|
||||
**/
|
||||
#ifdef EFI_DEBUG
|
||||
#define _DEBUG(Expression) DebugPrint Expression
|
||||
#else
|
||||
#define _DEBUG(Expression)
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -443,6 +392,7 @@ DebugClearMemoryEnabled (
|
||||
@param Guid Pointer to a protocol GUID.
|
||||
|
||||
**/
|
||||
#ifdef EFI_DEBUG
|
||||
#define ASSERT_PROTOCOL_ALREADY_INSTALLED(Handle, Guid) \
|
||||
do { \
|
||||
if (DebugAssertEnabled ()) { \
|
||||
@@ -459,6 +409,10 @@ DebugClearMemoryEnabled (
|
||||
} \
|
||||
} \
|
||||
} while (FALSE)
|
||||
#else
|
||||
#define ASSERT_PROTOCOL_ALREADY_INSTALLED(Handle, Guid) \
|
||||
do {} while(0);
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
@@ -563,9 +517,15 @@ DebugClearMemoryEnabled (
|
||||
@param TestSignature The 32-bit signature value to match.
|
||||
|
||||
**/
|
||||
#define CR(Record, TYPE, Field, TestSignature) \
|
||||
(DebugAssertEnabled () && (_CR (Record, TYPE, Field)->Signature != TestSignature)) ? \
|
||||
(TYPE *) (_ASSERT (CR has Bad Signature), Record) : \
|
||||
_CR (Record, TYPE, Field)
|
||||
|
||||
#ifdef EFI_DEBUG
|
||||
#define CR(Record, TYPE, Field, TestSignature) \
|
||||
(DebugAssertEnabled () && (_CR (Record, TYPE, Field)->Signature != TestSignature)) ? \
|
||||
(TYPE *) (_ASSERT (CR has Bad Signature), Record) : \
|
||||
_CR (Record, TYPE, Field)
|
||||
#else
|
||||
#define CR(Record, TYPE, Field, TestSignature) \
|
||||
_CR (Record, TYPE, Field)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
@@ -250,6 +250,7 @@ EfiGetNextHighMonotonicCount (
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
EfiResetSystem (
|
||||
IN EFI_RESET_TYPE ResetType,
|
||||
IN EFI_STATUS ResetStatus,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
@@ -23,6 +23,7 @@ Abstract:
|
||||
#ifndef __EDKII_GLUE_HII_LIB_H__
|
||||
#define __EDKII_GLUE_HII_LIB_H__
|
||||
|
||||
#if (EFI_SPECIFICATION_VERSION < 0x0002000A)
|
||||
|
||||
#define PreparePackages GluePreparePackages
|
||||
|
||||
@@ -49,6 +50,6 @@ GluePreparePackages (
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user