From 52e99d85a129b6124dad484f9f349fab8e02e488 Mon Sep 17 00:00:00 2001 From: Guo Mang Date: Thu, 27 Apr 2017 11:30:22 +0800 Subject: EdkCompatibilityPkg: Remove unused Package Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang --- .../Include/Guid/BootScriptThunkData.h | 31 ------ .../Compatibility/Include/Guid/BootState.h | 30 ----- .../Include/Guid/FrameworkBdsFrontPageFormSet.h | 24 ---- .../Include/Guid/SmmBaseThunkCommunication.h | 94 ---------------- .../Compatibility/Include/Library/LanguageLib.h | 122 --------------------- .../Compatibility/Include/Ppi/EcpPciCfg.h | 60 ---------- .../Compatibility/Include/Protocol/Print.h | 82 -------------- .../Include/Protocol/SmmBaseHelperReady.h | 41 ------- 8 files changed, 484 deletions(-) delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Guid/BootScriptThunkData.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Guid/BootState.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Guid/FrameworkBdsFrontPageFormSet.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Guid/SmmBaseThunkCommunication.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Library/LanguageLib.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Ppi/EcpPciCfg.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Protocol/Print.h delete mode 100644 EdkCompatibilityPkg/Compatibility/Include/Protocol/SmmBaseHelperReady.h (limited to 'EdkCompatibilityPkg/Compatibility/Include') diff --git a/EdkCompatibilityPkg/Compatibility/Include/Guid/BootScriptThunkData.h b/EdkCompatibilityPkg/Compatibility/Include/Guid/BootScriptThunkData.h deleted file mode 100644 index f0e6f5fee3..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Guid/BootScriptThunkData.h +++ /dev/null @@ -1,31 +0,0 @@ -/** @file - Define Name, GUID and data format for an EFI PCD that is used to save the image base and size - of a code segment which will be loaded and executed by a boot script thunk on S3 boot path. - -Copyright (c) 2010, 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 -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. - -**/ - -#ifndef _BOOT_SCRIPT_THUNK_VARIABLE_H_ -#define _BOOT_SCRIPT_THUNK_VARIABLE_H_ - -// -// The following structure boosts performance by combining structure all ACPI related variables into one. -// -#pragma pack(1) - -typedef struct { - EFI_PHYSICAL_ADDRESS BootScriptThunkBase; - EFI_PHYSICAL_ADDRESS BootScriptThunkLength; -} BOOT_SCRIPT_THUNK_DATA; - -#pragma pack() - -#endif diff --git a/EdkCompatibilityPkg/Compatibility/Include/Guid/BootState.h b/EdkCompatibilityPkg/Compatibility/Include/Guid/BootState.h deleted file mode 100644 index 439afe8563..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Guid/BootState.h +++ /dev/null @@ -1,30 +0,0 @@ -/** @file - GUID and Name are used to configure PcdBootState to DynamicHii PCD, which can - make EDKII core work with the EDK implementation. - - The EDK implementation may depend on this guid variable to check the boot state. - However, the EDKII core uses a dynamic PcdBootState to save the boot state. To be compatible with EDK implementations, - BootStateGuid and BootStateName are used to configure PcdBootState to DynamicHii PCD to - save the boot state as a variable. - -Copyright (c) 2010, 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 -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. - -**/ -#ifndef _BOOT_STATE_H_ -#define _BOOT_STATE_H_ - -#define BOOT_STATE_VARIABLE_NAME L"BootState" - -#define EFI_BOOT_STATE_VARIABLE_GUID \ - { 0x60b5e939, 0xfcf, 0x4227, { 0xba, 0x83, 0x6b, 0xbe, 0xd4, 0x5b, 0xc0, 0xe3 } } - -extern EFI_GUID gEfiBootStateGuid; - -#endif diff --git a/EdkCompatibilityPkg/Compatibility/Include/Guid/FrameworkBdsFrontPageFormSet.h b/EdkCompatibilityPkg/Compatibility/Include/Guid/FrameworkBdsFrontPageFormSet.h deleted file mode 100644 index cedc2a86d5..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Guid/FrameworkBdsFrontPageFormSet.h +++ /dev/null @@ -1,24 +0,0 @@ -/** @file - Framework BDS FrontPage FormSet GUID. It will be used when HiiThunk works with Framework BDS driver. - -Copyright (c) 2011, 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 -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. - -**/ -#ifndef __FRAMEWORK_BDS_FRONTPAGE_FORMSET_H__ -#define __FRAMEWORK_BDS_FRONTPAGE_FORMSET_H__ - -// -// In order to follow UEFI spec to do auto booting after a time-out, the GUID of Formset of Frontpage must match this value. -// -#define FRAMEWORK_BDS_FRONTPAGE_FORMSET_GUID { 0x9e0c30bc, 0x3f06, 0x4ba6, {0x82, 0x88, 0x9, 0x17, 0x9b, 0x85, 0x5d, 0xbe }} - -extern EFI_GUID gFrameworkBdsFrontPageFormsetGuid; - -#endif diff --git a/EdkCompatibilityPkg/Compatibility/Include/Guid/SmmBaseThunkCommunication.h b/EdkCompatibilityPkg/Compatibility/Include/Guid/SmmBaseThunkCommunication.h deleted file mode 100644 index 64e6824c86..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Guid/SmmBaseThunkCommunication.h +++ /dev/null @@ -1,94 +0,0 @@ -/** @file - GUID and data structures for communication between SMM Base on SMM Base2 Thunk driver - and SmmBaseHelper driver. - -Copyright (c) 2009 - 2010, 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 -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. - -**/ -#ifndef _SMM_BASE_THUNK_COMMUNICATION_H_ -#define _SMM_BASE_THUNK_COMMUNICATION_H_ - -#include - -#define EFI_SMM_BASE_THUNK_COMMUNICATION_GUID \ - { 0x6568a3d6, 0x15f, 0x4b4a, { 0x9c, 0x89, 0x1d, 0x14, 0x63, 0x14, 0x13, 0xa } } - -typedef struct { - EFI_DEVICE_PATH_PROTOCOL *FilePath; - VOID *SourceBuffer; - UINTN SourceSize; - EFI_HANDLE *ImageHandle; - BOOLEAN LegacyIA32Binary; -} SMMBASE_REGISTER_ARG; - -typedef struct { - EFI_HANDLE ImageHandle; -} SMMBASE_UNREGISTER_ARG; - -typedef struct { - EFI_HANDLE SmmImageHandle; - EFI_SMM_CALLBACK_ENTRY_POINT CallbackAddress; - BOOLEAN MakeLast; - BOOLEAN FloatingPointSave; -} SMMBASE_REGISTER_CALLBACK_ARG; - -typedef struct { - EFI_MEMORY_TYPE PoolType; - UINTN Size; - VOID **Buffer; -} SMMBASE_ALLOCATE_POOL_ARG; - -typedef struct { - VOID *Buffer; -} SMMBASE_FREE_POOL_ARG; - -typedef struct { - EFI_HANDLE ImageHandle; - VOID *CommunicationBuffer; - UINTN *SourceSize; -} SMMBASE_COMMUNICATE_ARG; - -typedef union { - SMMBASE_REGISTER_ARG Register; - SMMBASE_UNREGISTER_ARG UnRegister; - SMMBASE_REGISTER_CALLBACK_ARG RegisterCallback; - SMMBASE_ALLOCATE_POOL_ARG AllocatePool; - SMMBASE_FREE_POOL_ARG FreePool; - SMMBASE_COMMUNICATE_ARG Communicate; -} SMMBASE_FUNCTION_ARGS; - -typedef enum { - SmmBaseFunctionRegister, - SmmBaseFunctionUnregister, - SmmBaseFunctionRegisterCallback, - SmmBaseFunctionAllocatePool, - SmmBaseFunctionFreePool, - SmmBaseFunctionCommunicate -} SMMBASE_FUNCTION; - -typedef struct { - SMMBASE_FUNCTION Function; - EFI_STATUS Status; - SMMBASE_FUNCTION_ARGS Args; - EFI_HANDLE SmmBaseImageHandle; -} SMMBASE_FUNCTION_DATA; - -#pragma pack(1) -typedef struct { - EFI_GUID HeaderGuid; - UINTN MessageLength; - SMMBASE_FUNCTION_DATA FunctionData; -} SMMBASETHUNK_COMMUNICATION_DATA; -#pragma pack() - -extern EFI_GUID gEfiSmmBaseThunkCommunicationGuid; - -#endif - diff --git a/EdkCompatibilityPkg/Compatibility/Include/Library/LanguageLib.h b/EdkCompatibilityPkg/Compatibility/Include/Library/LanguageLib.h deleted file mode 100644 index 4ae28682c6..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Library/LanguageLib.h +++ /dev/null @@ -1,122 +0,0 @@ -/** @file - Provides functions for language conversion between ISO 639-2 and RFC 4646 styles. - -Copyright (c) 2006 - 2010, 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 -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. - -**/ - -#ifndef __LANGUAGE_LIB__ -#define __LANGUAGE_LIB__ - -/** - Converts an ISO 639-2 language code to an RFC 4646 language code. - If the ISO 639-2 language code has a corresponding ISO 639-1 code, then that ISO 639-1 - code is returned in the out parameter. Else the original ISO 639-2 code is returned. The returned RFC 4646 - language code is composed of only a primary language subtag. - - If Iso639Language is NULL, then ASSERT(). - If Rfc4646Language is NULL, then ASSERT(). - - @param[out] Rfc4646Language Pointers to a buffer large enough for an ASCII string - representing an RFC 4646 language code containing only - either a ISO 639-1 or ISO 639-2 primary language subtag. - This string is Null-terminated. - @param[in] Iso639Language The pointer to a 3-letter ASCII string that represents - an ISO 639-2 language code. This string is not required - to be Null-terminated. - - @retval TRUE The ISO 639-2 language code was converted to an ISO 639-1 code. - @retval FALSE The language code does not have a corresponding ISO 639-1 code. - -**/ -BOOLEAN -EFIAPI -ConvertIso639ToRfc4646 ( - OUT CHAR8 *Rfc4646Language, - IN CONST CHAR8 *Iso639Language - ); - -/** - Converts an RFC 4646 language code to an ISO 639-2 language code. The primary language - subtag of the RFC 4646 code must be either an ISO 639-1 or 639-2 code. If the primary - language subtag is an ISO 639-1 code, then it is converted to its corresponding ISO 639-2 - code (T code if applies). Else the ISO 639-2 code is returned. - - If Rfc4646Language is NULL, then ASSERT(). - If Iso639Language is NULL, then ASSERT(). - - @param[out] Iso639Language Pointers to a buffer large enough for a 3-letter ASCII string - representing an ISO 639-2 language code. The string - is Null-terminated. - @param[in] Rfc4646Language The pointer to a RFC 4646 language code string. - This string is terminated - by a NULL or a ';' character. - - @retval TRUE Language code converted successfully. - @retval FALSE The RFC 4646 language code is invalid or unsupported. - -**/ -BOOLEAN -EFIAPI -ConvertRfc4646ToIso639 ( - OUT CHAR8 *Iso639Language, - IN CONST CHAR8 *Rfc4646Language - ); - -/** - Converts ISO 639-2 language codes to RFC 4646 codes and returns the converted codes. - Caller is responsible for freeing the allocated buffer. - - If Iso639Languages is NULL, then ASSERT. - - @param[in] Iso639Languages Pointers to Null-terminated ISO 639-2 language code strings containing - one or more ISO 639-2 3-letter language codes. - - @retval NULL Invalid ISO 639-2 language code found. - @retval NULL Out of memory. - @return The pointer to the allocate buffer containing the - Null-terminated converted language codes string. - This string is composed of one or more RFC4646 - language codes each of which has only - ISO 639-1 2-letter primary language subtag. - -**/ -CHAR8 * -EFIAPI -ConvertLanguagesIso639ToRfc4646 ( - IN CONST CHAR8 *Iso639Languages - ); - -/** - Converts RFC 4646 language codes to ISO 639-2 codes and returns the converted codes. - The primary language subtag of the RFC 4646 code must be either an ISO 639-1 or 639-2 code. - Caller is responsible for freeing the allocated buffer. - - If Rfc4646Languages is NULL, then ASSERT. - - @param[in] Rfc4646Languages Pointers to a Null-terminated RFC 4646 language codes - string containing one or more RFC 4646 language codes. - - @retval NULL Invalid or unsupported RFC 4646 language code found. - @retval NULL Out of memory. - @return The pointer to the allocate buffer containing the - Null-terminated converted language codes string. - This string is composed of one or more ISO 639-2 - language codes. - -**/ -CHAR8 * -EFIAPI -ConvertLanguagesRfc4646ToIso639 ( - IN CONST CHAR8 *Rfc4646Languages - ); - - -#endif diff --git a/EdkCompatibilityPkg/Compatibility/Include/Ppi/EcpPciCfg.h b/EdkCompatibilityPkg/Compatibility/Include/Ppi/EcpPciCfg.h deleted file mode 100644 index 6b0f55750a..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Ppi/EcpPciCfg.h +++ /dev/null @@ -1,60 +0,0 @@ -/** @file -This PPI is the same as the PPI in the framework PciCfg, with one exception. -Specifically, this PPI does not include a modify API, while the PPI in the framework PciCfg does. - -Copyright (c) 2008 - 2010, 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 -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. - -**/ - -#ifndef _PEI_PCI_CFG_H_ -#define _PEI_PCI_CFG_H_ - -#include - -#define ECP_PEI_PCI_CFG_PPI_GUID \ - {0xb0ee53d4, 0xa049, 0x4a79, { 0xb2, 0xff, 0x19, 0xd9, 0xfa, 0xef, 0xaa, 0x94}} - -typedef struct _ECP_PEI_PCI_CFG_PPI ECP_PEI_PCI_CFG_PPI; - -/** - A PCI read and write operation. - - Writes to, or reads from, a given location in the PCI configuration space. - - @param PeiServices An indirect pointer to the PEI Services Table - published by the PEI Foundation. - @param This The pointer to local data for the interface. - @param Width The width of the access. Enumerated in bytes. - @param Address The physical address of the access. The format of - the address is described by EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS. - @param Buffer A pointer to the buffer of data. - @retval EFI_SUCCESS The function completed successfully. - @retval EFI_DEVICE_ERROR There was a problem with the transaction. - @retval EFI_DEVICE_NOT_READY The device is not capable of supporting the - operation at this time. -**/ -typedef -EFI_STATUS -(EFIAPI *ECP_PEI_PCI_CFG_PPI_IO)( - IN EFI_PEI_SERVICES **PeiServices, - IN EFI_PEI_PCI_CFG_PPI * This, - IN EFI_PEI_PCI_CFG_PPI_WIDTH Width, - IN UINT64 Address, - IN OUT VOID *Buffer - ); - -struct _ECP_PEI_PCI_CFG_PPI { - ECP_PEI_PCI_CFG_PPI_IO Read; - ECP_PEI_PCI_CFG_PPI_IO Write; -}; - -extern EFI_GUID gEcpPeiPciCfgPpiGuid; - -#endif diff --git a/EdkCompatibilityPkg/Compatibility/Include/Protocol/Print.h b/EdkCompatibilityPkg/Compatibility/Include/Protocol/Print.h deleted file mode 100644 index b54fd1d7ca..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Protocol/Print.h +++ /dev/null @@ -1,82 +0,0 @@ -/** @file - - The lite print protocol defines only one print function to - print the format unicode string. - -Copyright (c) 2006 - 2010, 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 -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. - -**/ - -#ifndef __PPRINT_H__ -#define __PPRINT_H__ - -#define EFI_PRINT_PROTOCOL_GUID \ - { 0xdf2d868e, 0x32fc, 0x4cf0, {0x8e, 0x6b, 0xff, 0xd9, 0x5d, 0x13, 0x43, 0xd0} } - -// -// Forward reference for pure ANSI compatability -// -typedef struct _EFI_PRINT_PROTOCOL EFI_PRINT_PROTOCOL; - -/** - Produces a Null-terminated Unicode string in an output buffer, based on - a Null-terminated Unicode format string and a VA_LIST argument list. - - Produces a Null-terminated Unicode string in the output buffer specified by StartOfBuffer - and BufferSize. - The Unicode string is produced by parsing the format string specified by FormatString. - Arguments are pulled from the variable argument list specified by Marker based on the - contents of the format string. - The number of Unicode characters in the produced output buffer is returned, not including - the Null-terminator. - If BufferSize is 0 or 1, then no output buffer is produced, and 0 is returned. - - If BufferSize > 1 and StartOfBuffer is NULL, then ASSERT(). - If BufferSize > 1 and StartOfBuffer is not aligned on a 16-bit boundary, then ASSERT(). - If BufferSize > 1 and FormatString is NULL, then ASSERT(). - If BufferSize > 1 and FormatString is not aligned on a 16-bit boundary, then ASSERT(). - If PcdMaximumUnicodeStringLength is not zero, and FormatString contains more than - PcdMaximumUnicodeStringLength Unicode characters not including the Null-terminator, then - ASSERT(). - If PcdMaximumUnicodeStringLength is not zero, and produced Null-terminated Unicode string - contains more than PcdMaximumUnicodeStringLength Unicode characters, not including the - Null-terminator, then ASSERT(). - - @param StartOfBuffer A pointer to the output buffer for the produced Null-terminated - Unicode string. - @param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer. - @param FormatString A Null-terminated Unicode format string. - @param Marker VA_LIST marker for the variable argument list. - - @return The number of Unicode characters in the produced output buffer not including the - Null-terminator. - -**/ -typedef -UINTN -(EFIAPI *UNI_VSPRINT)( - OUT CHAR16 *StartOfBuffer, - IN UINTN BufferSize, - IN CONST CHAR16 *FormatString, - IN VA_LIST Marker - ); - -/** - EFI_PRINT_PROTOCOL provides one service to produce a Null-terminated Unicode string, - based on a Null-terminated Unicode format string and a VA_LIST argument list, and fills into - the buffer as output. -**/ -struct _EFI_PRINT_PROTOCOL { - UNI_VSPRINT VSPrint; -}; - -extern EFI_GUID gEfiPrintProtocolGuid; - -#endif diff --git a/EdkCompatibilityPkg/Compatibility/Include/Protocol/SmmBaseHelperReady.h b/EdkCompatibilityPkg/Compatibility/Include/Protocol/SmmBaseHelperReady.h deleted file mode 100644 index e1df20280b..0000000000 --- a/EdkCompatibilityPkg/Compatibility/Include/Protocol/SmmBaseHelperReady.h +++ /dev/null @@ -1,41 +0,0 @@ -/** @file - EFI SMM Base Helper Ready Protocol. - - This UEFI protocol is produced by the SMM Base Helper SMM driver to provide - a Framework SMST to the SMM Base Thunk driver. This protocol is also an indicator - that the SMM Base Helper SMM driver is ready in SMRAM for communication with - the SMM Base Thunk driver. - -Copyright (c) 2009 - 2010, 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 -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. - -**/ - -#ifndef __EFI_SMM_BASE_HELPER_READY_H__ -#define __EFI_SMM_BASE_HELPER_READY_H__ - -#define EFI_SMM_BASE_HELPER_READY_PROTOCOL_GUID \ - { \ - 0x910dca07, 0x1f94, 0x4ee7, { 0xaf, 0x2f, 0xff, 0x72, 0xf3, 0x15, 0x43, 0x53 } \ - } - -typedef struct { - /// - /// Pointer to the Framework SMST built from PI SMST by SMM Base Helper SMM driver. - /// - EFI_SMM_SYSTEM_TABLE *FrameworkSmst; - /// - /// Services function directly called by SMM Base Thunk when in SMM - /// - EFI_SMM_HANDLER_ENTRY_POINT2 ServiceEntry; -} EFI_SMM_BASE_HELPER_READY_PROTOCOL; - -extern EFI_GUID gEfiSmmBaseHelperReadyProtocolGuid; - -#endif -- cgit v1.2.3