summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-13 08:54:56 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-13 08:54:56 +0000
commiteb9dd4d058b51fd95f93145fb5dd3ab9095e40dd (patch)
tree2e6848b17b9694cd1e3cd477e5e7c17796704aa5
parent9f8741247e59db8c18c7ec6cf4e72b359de84705 (diff)
downloadedk2-platforms-eb9dd4d058b51fd95f93145fb5dd3ab9095e40dd.tar.xz
Rename DxePiLib to DxeServicesLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6509 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Library/DxeServicesLib/DxeServicesLib.c (renamed from MdePkg/Library/DxePiLib/DxePiLib.c)52
-rw-r--r--MdePkg/Library/DxeServicesLib/DxeServicesLib.inf (renamed from MdePkg/Library/DxePiLib/DxePiLib.inf)6
2 files changed, 29 insertions, 29 deletions
diff --git a/MdePkg/Library/DxePiLib/DxePiLib.c b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c
index f8a383a887..5dca51a463 100644
--- a/MdePkg/Library/DxePiLib/DxePiLib.c
+++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c
@@ -16,7 +16,7 @@
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
-#include <Library/DxePiLib.h>
+#include <Library/DxeServicesLib.h>
#include <Protocol/FirmwareVolume2.h>
#include <Protocol/LoadedImage.h>
@@ -98,7 +98,7 @@ InternalImageHandleToFvHandle (
**/
EFI_STATUS
-GetSectionFromFv (
+InternalGetSectionFromFv (
IN EFI_HANDLE FvHandle,
IN CONST EFI_GUID *NameGuid,
IN EFI_SECTION_TYPE SectionType,
@@ -166,7 +166,7 @@ GetSectionFromFv (
/**
Locates a requested firmware section within a file and returns it to a buffer allocated by this function.
- PiLibGetSectionFromAnyFv () is used to read a specific section from a file within a firmware volume. The function
+ GetSectionFromAnyFv () is used to read a specific section from a file within a firmware volume. The function
will search the first file with the specified name in all firmware volumes in the system. The search order for firmware
volumes in the system is determistic but abitrary if no new firmware volume is added into the system between
each calls of this function.
@@ -209,7 +209,7 @@ GetSectionFromFv (
**/
EFI_STATUS
EFIAPI
-PiLibGetSectionFromAnyFv (
+GetSectionFromAnyFv (
IN CONST EFI_GUID *NameGuid,
IN EFI_SECTION_TYPE SectionType,
IN UINTN SectionInstance,
@@ -230,7 +230,7 @@ PiLibGetSectionFromAnyFv (
// will locate the FFS faster.
//
FvHandle = InternalImageHandleToFvHandle (gImageHandle);
- Status = GetSectionFromFv (
+ Status = InternalGetSectionFromFv (
FvHandle,
NameGuid,
SectionType,
@@ -259,7 +259,7 @@ PiLibGetSectionFromAnyFv (
// Skip the FV that contain the caller's FFS
//
if (HandleBuffer[Index] != FvHandle) {
- Status = GetSectionFromFv (
+ Status = InternalGetSectionFromFv (
HandleBuffer[Index],
NameGuid,
SectionType,
@@ -291,7 +291,7 @@ Done:
/**
Locates a requested firmware section within a file and returns it to a buffer allocated by this function.
- PiLibGetSectionFromCurrentFv () is used to read a specific section from a file within the same firmware volume from which
+ GetSectionFromFv () is used to read a specific section from a file within the same firmware volume from which
the running image is loaded. If the specific file is found, the function searches the specifc firmware section with type SectionType.
The details of this search order is defined in description of EFI_FIRMWARE_VOLUME2_PROTOCOL.ReadSection ()
found in PI Specification.
@@ -332,7 +332,7 @@ Done:
**/
EFI_STATUS
EFIAPI
-PiLibGetSectionFromCurrentFv (
+GetSectionFromFv (
IN CONST EFI_GUID *NameGuid,
IN EFI_SECTION_TYPE SectionType,
IN UINTN SectionInstance,
@@ -340,21 +340,21 @@ PiLibGetSectionFromCurrentFv (
OUT UINTN *Size
)
{
- return GetSectionFromFv(
- InternalImageHandleToFvHandle(gImageHandle),
- NameGuid,
- SectionType,
- SectionInstance,
- Buffer,
- Size
- );
+ return InternalGetSectionFromFv (
+ InternalImageHandleToFvHandle(gImageHandle),
+ NameGuid,
+ SectionType,
+ SectionInstance,
+ Buffer,
+ Size
+ );
}
/**
Locates a requested firmware section within a file and returns it to a buffer allocated by this function.
- PiLibGetSectionFromCurrentFfs () searches the specifc firmware section with type SectionType in the same firmware file from
+ GetSectionFromFfs () searches the specifc firmware section with type SectionType in the same firmware file from
which the running image is loaded. The details of this search order is defined in description of
EFI_FIRMWARE_VOLUME2_PROTOCOL.ReadSection () found in PI Specification.
@@ -389,20 +389,20 @@ PiLibGetSectionFromCurrentFv (
**/
EFI_STATUS
EFIAPI
-PiLibGetSectionFromCurrentFfs (
+GetSectionFromFfs (
IN EFI_SECTION_TYPE SectionType,
IN UINTN SectionInstance,
OUT VOID **Buffer,
OUT UINTN *Size
)
{
- return GetSectionFromFv(
- InternalImageHandleToFvHandle(gImageHandle),
- &gEfiCallerIdGuid,
- SectionType,
- SectionInstance,
- Buffer,
- Size
- );
+ return InternalGetSectionFromFv(
+ InternalImageHandleToFvHandle(gImageHandle),
+ &gEfiCallerIdGuid,
+ SectionType,
+ SectionInstance,
+ Buffer,
+ Size
+ );
}
diff --git a/MdePkg/Library/DxePiLib/DxePiLib.inf b/MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
index 24b9356f13..cc4cd6522a 100644
--- a/MdePkg/Library/DxePiLib/DxePiLib.inf
+++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
@@ -15,11 +15,11 @@
[Defines]
INF_VERSION = 0x00010005
- BASE_NAME = DxePiLib
+ BASE_NAME = DxeServicesLib
FILE_GUID = EE680C58-FFC0-4a5d-858F-66FF9C84BC9F
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0
- LIBRARY_CLASS = DxePiLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
+ LIBRARY_CLASS = DxeServicesLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
EDK_RELEASE_VERSION = 0x00020000
PI_SPECIFICATION_VERSION = 0x00010000
@@ -29,7 +29,7 @@
#
[Sources.common]
- DxePiLib.c
+ DxeServicesLib.c
[Packages]
MdePkg/MdePkg.dec