summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-19 05:32:22 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-19 05:32:22 +0000
commit3bd102ad681e0d80f2d0c32774aa1d1047452796 (patch)
tree59040e193931105bc2a905359d2c5f5dab27d175
parent488a3b62b54b17e1ecb3d92294387d3477fb2fd0 (diff)
downloadedk2-3bd102ad681e0d80f2d0c32774aa1d1047452796.zip
edk2-3bd102ad681e0d80f2d0c32774aa1d1047452796.tar.gz
edk2-3bd102ad681e0d80f2d0c32774aa1d1047452796.tar.bz2
update for mdepkg/include/library
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/AntJava@7905 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/Conf/Migration/Library.csv21
-rw-r--r--Tools/Conf/Migration/R8Lib.c173
2 files changed, 194 insertions, 0 deletions
diff --git a/Tools/Conf/Migration/Library.csv b/Tools/Conf/Migration/Library.csv
index c4b183b..bae7a44 100644
--- a/Tools/Conf/Migration/Library.csv
+++ b/Tools/Conf/Migration/Library.csv
@@ -209,3 +209,24 @@ EfiCommonLib,SetDevicePathNodeLength,SetDevicePathNodeLength,DevicePathLib,MdePk
EfiCommonLib,SetDevicePathEndNode,SetDevicePathEndNode,DevicePathLib,MdePkg
EfiCommonLib,EFI_DP_TYPE_UNPACKED,n/a,n/a,MdePkg
EfiCommonLib,IsDevicePathUnpacked,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbReadBlock,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbWriteBlock,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbEraseBlock,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbGetVolumeAttributes,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbSetVolumeAttributes,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbGetPhysicalAddress,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbGetBlockSize,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbEraseCustomBlockRange,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbInitialize,n/a,n/a,MdePkg
+EfiRuntimeLib,EfiFvbShutdown,n/a,n/a,MdePkg
+Graphics,GetGraphicsBitMapFromFV,R8_GetSectionFromAnyFv,%,MdePkg
+Graphics,GetGraphicsBitMapFromFVEx,R8_GetSectionFromAnyFv,%,MdePkg
+Graphics,ConvertBmpToUgaBlt,n/a,n/a,MdePkg
+Graphics,EnableQuietBoot,EnableQuietBoot,GenericBdsLib,IntelFrameworkModulePkg
+Graphics,EnableQuietBootEx,R8_EnableQuietBootEx,%,IntelFrameworkModulePkg
+Graphics,DisableQuietBoot,DisableQuietBoot,GenericBdsLib,IntelFrameworkModulePkg
+Graphics,LockKeyboards,LockKeyboards,GenericBdsLib,IntelFrameworkModulePkg
+EfiPrintLib,PrintXY,PrintXY,UefiLib,MdePkg
+UefiEfiIfrSupportLib,ConvertRfc3066LanguageToIso639Language,ConvertRfc3066LanguageToIso639Language,HiiLib,MdeModulePkg
+UefiEfiIfrSupportLib,Rfc3066ToIso639,Rfc3066ToIso639,HiiLib,MdeModulePkg
+PeiLib,MigrateIdtTable,n/a,n/a,MdePkg
diff --git a/Tools/Conf/Migration/R8Lib.c b/Tools/Conf/Migration/R8Lib.c
index 576f094..f7e7a1d 100644
--- a/Tools/Conf/Migration/R8Lib.c
+++ b/Tools/Conf/Migration/R8Lib.c
@@ -1082,3 +1082,176 @@ Returns:
return (BOOLEAN) ((Node)->SubType == END_INSTANCE_DEVICE_PATH_SUBTYPE);
}
////~
+
+////#DxeServiceLib
+EFI_STATUS
+R8_GetGraphicsBitMapFromFV (
+ IN EFI_GUID *FileNameGuid,
+ OUT VOID **Image,
+ OUT UINTN *ImageSize
+ )
+/*++
+
+Routine Description:
+
+ Return the graphics image file named FileNameGuid into Image and return it's
+ size in ImageSize. All Firmware Volumes (FV) in the system are searched for the
+ file name.
+
+Arguments:
+
+ FileNameGuid - File Name of graphics file in the FV(s).
+
+ Image - Pointer to pointer to return graphics image. If NULL, a
+ buffer will be allocated.
+
+ ImageSize - Size of the graphics Image in bytes. Zero if no image found.
+
+
+Returns:
+
+ EFI_SUCCESS - Image and ImageSize are valid.
+ EFI_BUFFER_TOO_SMALL - Image not big enough. ImageSize has required size
+ EFI_NOT_FOUND - FileNameGuid not found
+
+--*/
+{
+ EFI_STATUS Status;
+ Status = GetSectionFromAnyFv (
+ FileNameGuid,
+ EFI_SECTION_RAW,
+ 0,
+ Image,
+ ImageSize
+ );
+ return Status;
+}
+////~
+
+////#DxeServiceLib
+EFI_STATUS
+GetGraphicsBitMapFromFVEx (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_GUID *FileNameGuid,
+ OUT VOID **Image,
+ OUT UINTN *ImageSize
+ )
+/*++
+
+Routine Description:
+
+ Find the graphics image file named FileNameGuid. Firstly search the FV on which
+ a image presented by ImageHandle also resides. If no found, then search all others FV.
+ Return the graphics image file named FileNameGuid into Image and return it's
+ size in ImageSize.
+
+Arguments:
+
+ ImageHandle - The driver image handle of the caller. The parameter is used to
+ optimize the loading of the image file so that the FV from which
+ the driver image is loaded will be tried first.
+
+ FileNameGuid - File Name of graphics file in the FV(s).
+
+ Image - Pointer to pointer to return graphics image. If NULL, a
+ buffer will be allocated.
+
+ ImageSize - Size of the graphics Image in bytes. Zero if no image found.
+
+
+Returns:
+
+ EFI_SUCCESS - Image and ImageSize are valid.
+ EFI_BUFFER_TOO_SMALL - Image not big enough. ImageSize has required size
+ EFI_NOT_FOUND - FileNameGuid not found
+
+--*/
+{
+ EFI_STATUS Status;
+ UINT32 AuthenticationStatus;
+
+ *Image = NULL;
+ *ImageSize = 0;
+ Status = EFI_NOT_FOUND;
+
+ if (ImageHandle != NULL) {
+ //
+ // ImageHandle is not NULL, then first search Image in the same FV.
+ //
+ Status = gBS->HandleProtocol (
+ ImageHandle,
+ &gEfiLoadedImageProtocolGuid,
+ (VOID **) &LoadedImage
+ );
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+ Status = gBS->HandleProtocol (
+ LoadedImage->DeviceHandle,
+ &gEfiFirmwareVolume2ProtocolGuid,
+ (VOID **) &ImageFv
+ );
+ if (!EFI_ERROR (Status)) {
+ Status = ImageFv->ReadSection (
+ ImageFv,
+ NameGuid,
+ EFI_SECTION_RAW,
+ 0,
+ Image,
+ ImageSize,
+ &AuthenticationStatus
+ );
+ return Status;
+ }
+ }
+
+ ASSERT_EFI_ERROR (Status);
+ //
+ // Don't find image in the FV which also contains ImageHandle
+ // Then search all others FV again.
+ //
+ Status = GetSectionFromAnyFv (
+ FileNameGuid,
+ EFI_SECTION_RAW,
+ 0,
+ Image,
+ ImageSize
+ );
+ return Status;
+}
+////~
+
+////#GenericBdsLib
+EFI_STATUS
+EnableQuietBootEx (
+ IN EFI_GUID *LogoFile,
+ IN EFI_HANDLE ImageHandle
+ )
+/*++
+
+Routine Description:
+
+ Use Console Control to turn off GOP/UGA based Simple Text Out consoles from going
+ to the GOP/UGA device. Put up LogoFile on every GOP/UGA device that is a console
+
+Arguments:
+
+ LogoFile - File name of logo to display on the center of the screen.
+ ImageHandle - The driver image handle of the caller. The parameter is used to
+ optimize the loading of the logo file so that the FV from which
+ the driver image is loaded will be tried first.
+
+
+Returns:
+
+ EFI_SUCCESS - ConsoleControl has been flipped to graphics and logo
+ displayed.
+ EFI_UNSUPPORTED - Logo not found
+
+--*/
+{
+ EFI_STATUS Status;
+ Status = EnableQuietBoot (LogoFile);
+ return Status;
+}
+////~ \ No newline at end of file