]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Move Crc32GuidedSectionExtraction from Protocol to Guid directory
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 Feb 2009 07:53:20 +0000 (07:53 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 24 Feb 2009 07:53:20 +0000 (07:53 +0000)
Move DiskInfo protocol from MdeModulePkg to IntelFrameworkModulePkg
Retire unused FvbExtension protocol.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7638 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h [new file with mode: 0644]
MdeModulePkg/Include/Library/FvbServiceLib.h
MdeModulePkg/Include/Protocol/Crc32GuidedSectionExtraction.h [deleted file]
MdeModulePkg/Include/Protocol/DiskInfo.h [deleted file]
MdeModulePkg/Include/Protocol/FvbExtension.h [deleted file]
MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.c
MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf
MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c
MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h
MdeModulePkg/MdeModulePkg.dec

diff --git a/MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h b/MdeModulePkg/Include/Guid/Crc32GuidedSectionExtraction.h
new file mode 100644 (file)
index 0000000..d117235
--- /dev/null
@@ -0,0 +1,32 @@
+/** @file\r
+\r
+  This file defines a group of guids to specify the different \r
+  encapsulation scheme for the guided section.\r
+\r
+  Now, only one guid is defined for CRC32 encapsulation scheme.\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation\r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef __CRC32_GUIDED_SECTION_EXTRACTION_H__\r
+#define __CRC32_GUIDED_SECTION_EXTRACTION_H__\r
+\r
+//\r
+// GUID definition. Each GUIDed section extraction protocol has the\r
+// same interface but with different GUID. All the GUIDs is defined here.\r
+// May add more GUIDs here in future.\r
+//\r
+#define EFI_CRC32_GUIDED_SECTION_EXTRACTION_GUID \\r
+  { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }\r
+\r
+extern EFI_GUID gEfiCrc32GuidedSectionExtractionGuid;\r
+\r
+#endif\r
index a87750a7b46a53b2717882c93f9b64dd1d4094d5..49825e52f0f9dfb6ddeee5062b62b10426b0481b 100644 (file)
@@ -276,36 +276,4 @@ EfiFvbGetBlockSize (
   OUT UINTN                                       *NumOfBlocks\r
   );\r
 \r
-\r
-/**\r
-  Erases and initializes a specified range of a firmware volume.\r
-\r
-  The EfiFvbEraseCustomBlockRange() function erases the specified range in the firmware\r
-  volume index by Instance. If Instance is larger than the max FVB number, StartLba or \r
-  LastLba  index is larger than the last block of the firmware volume, StartLba > LastLba\r
-  or StartLba equal to LastLba but OffsetStartLba > OffsetLastLba, this function return \r
-  the status code EFI_INVALID_PARAMETER.\r
-\r
-  @param[in]     Instance          The FV instance to be operated.\r
-  @param[in]     StartLba          The starting logical block index to be erased.\r
-  @param[in]     OffsetStartLba    Offset into the starting block at which to \r
-                                   begin erasing.    \r
-  @param[in]     LastLba           The last logical block index to be erased.\r
-  @param[in]     OffsetLastLba     Offset into the last block at which to end erasing.   \r
-\r
-  @retval   EFI_EFI_SUCCESS        Successfully erase custom block range\r
-  @retval   EFI_INVALID_PARAMETER  Invalid parameter. Instance is larger than the max FVB number. \r
-  @retval   EFI_UNSUPPORTED        Firmware volume block device has no this capability.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-EfiFvbEraseCustomBlockRange (\r
-  IN UINTN                                Instance,\r
-  IN EFI_LBA                              StartLba,\r
-  IN UINTN                                OffsetStartLba,\r
-  IN EFI_LBA                              LastLba,\r
-  IN UINTN                                OffsetLastLba\r
-  );\r
-\r
 #endif\r
diff --git a/MdeModulePkg/Include/Protocol/Crc32GuidedSectionExtraction.h b/MdeModulePkg/Include/Protocol/Crc32GuidedSectionExtraction.h
deleted file mode 100644 (file)
index ae3b8c6..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/** @file\r
-\r
-  This file defines a group of guids to specify the different \r
-  encapsulation scheme for the guided section.\r
-  The related definitions is in UEFI GuidedSectionExtraction protocol.\r
-\r
-  Now, only one guid is defined for CRC32 encapsulation scheme.\r
-\r
-  Copyright (c) 2006 - 2008, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#ifndef __CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_H__\r
-#define __CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_H__\r
-\r
-\r
-//\r
-// Protocol GUID definition. Each GUIDed section extraction protocol has the\r
-// same interface but with different GUID. All the GUIDs is defined here.\r
-// May add more GUIDs here in future.\r
-//\r
-#define EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID \\r
-  { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }\r
-\r
-//\r
-// The data structures are the same to UEFI GuidedSectionExtraction protocol.\r
-//\r
-#include <Protocol/GuidedSectionExtraction.h>\r
-\r
-extern EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid;\r
-\r
-#endif\r
diff --git a/MdeModulePkg/Include/Protocol/DiskInfo.h b/MdeModulePkg/Include/Protocol/DiskInfo.h
deleted file mode 100644 (file)
index 8409d98..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-/** @file\r
-  Disk Info protocol is used to export Inquiry Data for a drive.\r
-  It supports low level formating of drives in a DOS compatible manner.\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#ifndef __DISK_INFO_H__\r
-#define __DISK_INFO_H__\r
-\r
-#define EFI_DISK_INFO_PROTOCOL_GUID \\r
-  { \\r
-    0xd432a67f, 0x14dc, 0x484b, {0xb3, 0xbb, 0x3f, 0x2, 0x91, 0x84, 0x93, 0x27 } \\r
-  }\r
-\r
-//\r
-// Forward reference for pure ANSI compatability\r
-//\r
-typedef struct _EFI_DISK_INFO_PROTOCOL  EFI_DISK_INFO_PROTOCOL;\r
-\r
-/**\r
-  Return the results of the Inquiry command to a drive in InquiryData.\r
-  Data format of Inquiry data is defined by the Interface GUID.\r
-\r
-  @param  This                  Protocol instance pointer. \r
-  @param  InquiryData           Results of Inquiry command to device \r
-  @param  InquiryDataSize       Size of InquiryData in bytes. \r
-\r
-  @retval EFI_SUCCESS           InquiryData valid \r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough \r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_DISK_INFO_INQUIRY)(\r
-  IN EFI_DISK_INFO_PROTOCOL           * This,\r
-  IN OUT VOID                         *InquiryData,\r
-  IN OUT UINT32                       *InquiryDataSize\r
-  );\r
-\r
-\r
-/**\r
-  Return the results of the Identify command to a drive in IdentifyData.\r
-  Data format of Identify data is defined by the Interface GUID.\r
-\r
-  @param  This                  Protocol instance pointer. \r
-  @param  IdentifyData          Results of Identify command to device \r
-  @param  IdentifyDataSize      Size of IdentifyData in bytes. \r
-\r
-  @retval EFI_SUCCESS           IdentifyData valid \r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough \r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_DISK_INFO_IDENTIFY)(\r
-  IN EFI_DISK_INFO_PROTOCOL           * This,\r
-  IN OUT VOID                         *IdentifyData,\r
-  IN OUT UINT32                       *IdentifyDataSize\r
-  );\r
-\r
-\r
-/**\r
-  Return the results of the Request Sense command to a drive in SenseData.\r
-  Data format of Sense data is defined by the Interface GUID.\r
-\r
-  @param  This                  Protocol instance pointer. \r
-  @param  SenseData             Results of Request Sense command to device \r
-  @param  SenseDataSize         Size of SenseData in bytes. \r
-  @param  SenseDataNumber       Type of SenseData \r
-\r
-  @retval EFI_SUCCESS           InquiryData valid \r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough \r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_DISK_INFO_SENSE_DATA)(\r
-  IN EFI_DISK_INFO_PROTOCOL           * This,\r
-  IN OUT VOID                         *SenseData,\r
-  IN OUT UINT32                       *SenseDataSize,\r
-  OUT UINT8                           *SenseDataNumber\r
-  );\r
-\r
-/**\r
-  Return the IDE device information.\r
-\r
-  @param  This                  Protocol instance pointer. \r
-  @param  IdeChannel            Primary or Secondary \r
-  @param  IdeDevice             Master or Slave \r
-\r
-  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid \r
-  @retval EFI_UNSUPPORTED       This is not an IDE device \r
-\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_DISK_INFO_WHICH_IDE)(\r
-  IN EFI_DISK_INFO_PROTOCOL           * This,\r
-  OUT UINT32                          *IdeChannel,\r
-  OUT UINT32                          *IdeDevice\r
-  );\r
-\r
-//\r
-// GUIDs for EFI_DISK_INFO_PROTOCOL.Interface. Defines the format of the\r
-// buffers returned by member functions.\r
-//\r
-#define EFI_DISK_INFO_IDE_INTERFACE_GUID \\r
-  { \\r
-    0x5e948fe3, 0x26d3, 0x42b5, {0xaf, 0x17, 0x61, 0x2, 0x87, 0x18, 0x8d, 0xec } \\r
-  }\r
-extern EFI_GUID gEfiDiskInfoIdeInterfaceGuid;\r
-\r
-#define EFI_DISK_INFO_SCSI_INTERFACE_GUID \\r
-  { \\r
-    0x8f74baa, 0xea36, 0x41d9, {0x95, 0x21, 0x21, 0xa7, 0xf, 0x87, 0x80, 0xbc } \\r
-  }\r
-extern EFI_GUID gEfiDiskInfoScsiInterfaceGuid;\r
-\r
-#define EFI_DISK_INFO_USB_INTERFACE_GUID \\r
-  { \\r
-    0xcb871572, 0xc11a, 0x47b5, {0xb4, 0x92, 0x67, 0x5e, 0xaf, 0xa7, 0x77, 0x27 } \\r
-  }\r
-extern EFI_GUID gEfiDiskInfoUsbInterfaceGuid;\r
-\r
-#define EFI_DISK_INFO_AHCI_INTERFACE_GUID \\r
-  { \\r
-    0x9e498932, 0x4abc, 0x45af, {0xa3, 0x4d, 0x2, 0x47, 0x78, 0x7b, 0xe7, 0xc6} \\r
-  }\r
-extern EFI_GUID gEfiDiskInfoAhciInterfaceGuid;\r
-\r
-struct _EFI_DISK_INFO_PROTOCOL {\r
-  EFI_GUID                  Interface;  ///> The format of the buffers returned by member functions.\r
-  EFI_DISK_INFO_INQUIRY     Inquiry;\r
-  EFI_DISK_INFO_IDENTIFY    Identify;\r
-  EFI_DISK_INFO_SENSE_DATA  SenseData;\r
-  EFI_DISK_INFO_WHICH_IDE   WhichIde;\r
-};\r
-\r
-extern EFI_GUID gEfiDiskInfoProtocolGuid;\r
-\r
-#endif\r
-\r
-\r
diff --git a/MdeModulePkg/Include/Protocol/FvbExtension.h b/MdeModulePkg/Include/Protocol/FvbExtension.h
deleted file mode 100644 (file)
index f3918e9..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/** @file\r
-\r
-  FVB Extension protocol provides one extended service to FVB protocol defined in PI specification.\r
-  This service can erase the specified range of a firmware volume block.\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#ifndef __FVB_EXTENSION_H__\r
-#define __FVB_EXTENSION_H__\r
-\r
-#define EFI_FVB_EXTENSION_PROTOCOL_GUID  \\r
-  {0x53a4c71b, 0xb581, 0x4170, {0x91, 0xb3, 0x8d, 0xb8, 0x7a, 0x4b, 0x5c, 0x46 } }\r
-\r
-typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL;\r
-\r
-//\r
-//  FVB Extension Function Prototypes\r
-//\r
-/**\r
-  Erases and initializes a specified range of a firmware volume block.\r
-\r
-  @param[in]     This           Pointer to the FVB Extension protocol instance\r
-  @param[in]     StartLba       The starting logical block index to be erased\r
-  @param[in]     OffsetStartLba Offset into the starting block at which to begin erasing    \r
-  @param[in]     LastLba        The last logical block index to be erased\r
-  @param[in]     OffsetLastLba  Offset into the last block at which to end erasing     \r
-\r
-  @retval EFI_SUCCESS           The specified range was erased successfully\r
-  @retval EFI_ACCESS_DENIED     The firmware volume block is in the WriteDisabled state\r
-  @retval EFI_DEVICE_ERROR      The block device is not functioning correctly and \r
-                                could not be written. Firmware device may have been\r
-                                partially erased.\r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI * EFI_FV_ERASE_CUSTOM_BLOCK)(\r
-  IN EFI_FVB_EXTENSION_PROTOCOL   *This,\r
-  IN EFI_LBA                      StartLba,\r
-  IN UINTN                        OffsetStartLba,\r
-  IN EFI_LBA                      LastLba,\r
-  IN UINTN                        OffsetLastLba\r
-);\r
-\r
-//\r
-// FVB Extension PROTOCOL\r
-//\r
-struct _EFI_FVB_EXTENSION_PROTOCOL {\r
-  EFI_FV_ERASE_CUSTOM_BLOCK               EraseFvbCustomBlock;\r
-};\r
-\r
-extern EFI_GUID                           gEfiFvbExtensionProtocolGuid;\r
-\r
-#endif\r
-\r
index b87af37a91b9de76f1b12713d671d9d6d803609d..398adfcac16f56ad759d08f207e9e33057e14b43 100644 (file)
@@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 #include <PiDxe.h>\r
-#include <Protocol/Crc32GuidedSectionExtraction.h>\r
+#include <Guid/Crc32GuidedSectionExtraction.h>\r
 #include <Protocol/SecurityPolicy.h>\r
 #include <Library/ExtractGuidedSectionLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -62,7 +62,7 @@ Crc32GuidedSectionGetInfo (
   // Check whether the input guid section is recognized.\r
   //\r
   if (!CompareGuid (\r
-        &gEfiCrc32GuidedSectionExtractionProtocolGuid, \r
+        &gEfiCrc32GuidedSectionExtractionGuid, \r
         &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -113,7 +113,7 @@ Crc32GuidedSectionHandler (
   // Check whether the input guid section is recognized.\r
   //\r
   if (!CompareGuid (\r
-        &gEfiCrc32GuidedSectionExtractionProtocolGuid, \r
+        &gEfiCrc32GuidedSectionExtractionGuid, \r
         &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -185,7 +185,7 @@ DxeCrc32GuidedSectionExtractLibConstructor (
   )\r
 {\r
   return ExtractGuidedSectionRegisterHandlers (\r
-          &gEfiCrc32GuidedSectionExtractionProtocolGuid,\r
+          &gEfiCrc32GuidedSectionExtractionGuid,\r
           Crc32GuidedSectionGetInfo,\r
           Crc32GuidedSectionHandler\r
           );\r
index 8a977003dc44e11aae2b01a9b4a038b868022a8a..094378fb828461152b2772ae969f92fbe10c530c 100644 (file)
@@ -44,7 +44,9 @@
   DebugLib\r
   BaseMemoryLib\r
 \r
+[Guids]\r
+  gEfiCrc32GuidedSectionExtractionGuid             ## CONSUMES ## GUID\r
+\r
 [Protocols]\r
-  gEfiCrc32GuidedSectionExtractionProtocolGuid     ## PRODUCED\r
   gEfiSecurityPolicyProtocolGuid                   ## SOMETIMES_CONSUMED (Set platform override AUTH status if exist)\r
   
\ No newline at end of file
index b28d2afb2431e640e0807204051b518653807f58..eb77a43fe32b73da3e6a1f431a6cabed81dcb4f1 100644 (file)
@@ -51,7 +51,6 @@
 \r
 [Protocols]\r
   gEfiFirmwareVolumeBlockProtocolGuid           ## NOTIFY\r
-  gEfiFvbExtensionProtocolGuid                  ## CONSUMES\r
 \r
 [Guids]\r
   gEfiEventVirtualAddressChangeGuid             ## PRODUCES\r
index 44de6eeaa0db52236c624c5bdf98d4cf5209aaf8..85f5e5a6d23d3e0747448d3e24b588ce3e9fde77 100644 (file)
@@ -197,15 +197,6 @@ FvbNotificationEvent (
                     );\r
     ASSERT_EFI_ERROR (Status);\r
 \r
-    Status = gBS->HandleProtocol (\r
-                    Handle,\r
-                    &gEfiFvbExtensionProtocolGuid,\r
-                    (VOID **) &mFvbEntry[UpdateIndex].FvbExtension\r
-                    );\r
-    if (Status != EFI_SUCCESS) {\r
-      mFvbEntry[UpdateIndex].FvbExtension = NULL;\r
-    }\r
-\r
     //\r
     // Check the FVB can be accessed in RUNTIME, The FVBs in FVB handle list come from two ways:\r
     // 1) Dxe Core. (FVB information is transferred from FV HOB). 2) FVB driver. The FVB produced\r
@@ -251,11 +242,6 @@ FvbVirtualAddressChangeNotifyEvent (
         EfiConvertPointer (0x0, (VOID **) &mFvbEntry[Index].Fvb->EraseBlocks);\r
         EfiConvertPointer (0x0, (VOID **) &mFvbEntry[Index].Fvb);\r
       }\r
-\r
-      if (mFvbEntry[Index].FvbExtension != NULL) {\r
-        EfiConvertPointer (0x0, (VOID **) &mFvbEntry[Index].FvbExtension->EraseFvbCustomBlock);\r
-        EfiConvertPointer (0x0, (VOID **) &mFvbEntry[Index].FvbExtension);\r
-      }\r
     }\r
 \r
     EfiConvertPointer (0x0, (VOID **) &mFvbEntry);\r
@@ -668,60 +654,3 @@ EfiFvbGetBlockSize (
 \r
   return mFvbEntry[Instance].Fvb->GetBlockSize (mFvbEntry[Instance].Fvb, Lba, BlockSize, NumOfBlocks);\r
 }\r
-\r
-\r
-/**\r
-  Erases and initializes a specified range of a firmware volume.\r
-\r
-  The EfiFvbEraseCustomBlockRange() function erases the specified range in the firmware\r
-  volume index by Instance. If Instance is larger than the max FVB number, StartLba or \r
-  LastLba  index is larger than the last block of the firmware volume, StartLba > LastLba\r
-  or StartLba equal to LastLba but OffsetStartLba > OffsetLastLba, this function return \r
-  the status code EFI_INVALID_PARAMETER.\r
-\r
-  @param[in]     Instance          The FV instance to be operated.\r
-  @param[in]     StartLba          The starting logical block index to be erased.\r
-  @param[in]     OffsetStartLba    Offset into the starting block at which to \r
-                                   begin erasing.    \r
-  @param[in]     LastLba           The last logical block index to be erased.\r
-  @param[in]     OffsetLastLba     Offset into the last block at which to end erasing.   \r
-\r
-  @retval   EFI_EFI_SUCCESS        Successfully erase custom block range\r
-  @retval   EFI_INVALID_PARAMETER  Invalid parameter. Instance is larger than the max FVB number. \r
-  @retval   EFI_UNSUPPORTED        Firmware volume block device has no this capability.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-EfiFvbEraseCustomBlockRange (\r
-  IN UINTN                                Instance,\r
-  IN EFI_LBA                              StartLba,\r
-  IN UINTN                                OffsetStartLba,\r
-  IN EFI_LBA                              LastLba,\r
-  IN UINTN                                OffsetLastLba\r
-  )\r
-{\r
-  if (Instance >= mFvbCount) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  if (EfiAtRuntime() && !mFvbEntry[Instance].IsRuntimeAccess) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  if (mFvbEntry[Instance].FvbExtension == NULL) {\r
-    return EFI_UNSUPPORTED;\r
-  }\r
-\r
-  if (mFvbEntry[Instance].FvbExtension->EraseFvbCustomBlock == NULL) {\r
-    return EFI_UNSUPPORTED;\r
-  }\r
-\r
-  return mFvbEntry[Instance].FvbExtension->EraseFvbCustomBlock (\r
-                                            mFvbEntry[Instance].FvbExtension,\r
-                                            StartLba,\r
-                                            OffsetStartLba,\r
-                                            LastLba,\r
-                                            OffsetLastLba\r
-                                            );\r
-}\r
index 1981e9682dc5accd47151295a9526f29b45661da..b12894b3c1b98c4de50abcfab834c66b152a5105 100644 (file)
@@ -22,7 +22,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <PiDxe.h>\r
 \r
 #include <Protocol/FirmwareVolumeBlock.h>\r
-#include <Protocol/FvbExtension.h>\r
 \r
 #include <Library/FvbServiceLib.h>\r
 #include <Library/UefiLib.h>\r
@@ -40,7 +39,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 typedef struct {\r
   EFI_HANDLE                          Handle;\r
   EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *Fvb;\r
-  EFI_FVB_EXTENSION_PROTOCOL          *FvbExtension;\r
   BOOLEAN                             IsRuntimeAccess;\r
 } FVB_ENTRY;\r
 \r
index d9a480538708ddd810cc51ff6baa386d36837414..8b5866a5ae0a760bab4cb24381c60d6107c51520 100644 (file)
   ## Include/Guid/SystemNvDataGuid.h\r
   gEfiSystemNvDataFvGuid         = { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r
   \r
-  ## Hob guid for the System Non Volatile HOB entries in the HOB list\r
-  ## Include/Guid/SystemNvDataGuid.h\r
-  gEfiSystemNvDataHobGuid        = { 0xD6E5092D, 0xC7B2, 0x4872, { 0xAF, 0x66, 0xFD, 0xC0, 0xE6, 0xF9, 0x5E, 0x78 }}\r
-  \r
-  ## Guid for EFI_DISK_INFO_PROTOCOL.Interface to specify Usb interface.\r
-  ## Include/Protocol/DiskInfo.h\r
-  gEfiDiskInfoUsbInterfaceGuid   = { 0xCB871572, 0xC11A, 0x47B5, { 0xB4, 0x92, 0x67, 0x5E, 0xAF, 0xA7, 0x77, 0x27 }}\r
-  \r
-  ## Guid for EFI_DISK_INFO_PROTOCOL.Interface to specify Scsi interface.\r
-  ## Include/Protocol/DiskInfo.h\r
-  gEfiDiskInfoScsiInterfaceGuid  = { 0x08F74BAA, 0xEA36, 0x41D9, { 0x95, 0x21, 0x21, 0xA7, 0x0F, 0x87, 0x80, 0xBC }}\r
-  \r
-  ## Guid for EFI_DISK_INFO_PROTOCOL.Interface to specify Ide interface.\r
-  ## Include/Protocol/DiskInfo.h\r
-  gEfiDiskInfoIdeInterfaceGuid   = { 0x5E948FE3, 0x26D3, 0x42B5, { 0xAF, 0x17, 0x61, 0x02, 0x87, 0x18, 0x8D, 0xEC }}\r
-  \r
-  ## Guid for EFI_DISK_INFO_PROTOCOL.Interface to specify Ahci interface.\r
-  ## Include/Protocol/DiskInfo.h\r
-  gEfiDiskInfoAhciInterfaceGuid  = { 0x9e498932, 0x4abc, 0x45af, { 0xa3, 0x4d, 0x02, 0x47, 0x78, 0x7b, 0xe7, 0xc6 }}\r
-  \r
   ## Alternate Firmware Volume Block Guid specify that the additional \r
   #  FVB protocol is installed into FVB handle\r
   ## Include/Guid/AlternateFvBlock.h\r
   ## Include/Guid/Performance.h\r
   gPerformanceProtocolGuid       = { 0x76B6BDFA, 0x2ACD, 0x4462, { 0x9E, 0x3F, 0xCB, 0x58, 0xC9, 0x69, 0xD9, 0x37 }}\r
 \r
+  ## Guid is defined for CRC32 encapsulation scheme.\r
+  ## Include/Guid/Crc32GuidedSectionExtraction.h\r
+  gEfiCrc32GuidedSectionExtractionGuid = { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }\r
+\r
 [Protocols.common] \r
   ## Load File protocol provides capability to load and unload EFI image into memory and execute it.\r
   ## Include/Protocol/LoadPe32Image.h\r
   ## This protocol defines the generic memory test interfaces in Dxe phase.\r
   ## Include/Protocol/GenericMemoryTest.h\r
   gEfiGenericMemTestProtocolGuid = { 0x309DE7F1, 0x7F5E, 0x4ACE, { 0xB4, 0x9C, 0x53, 0x1B, 0xE5, 0xAA, 0x95, 0xEF }}\r
-  \r
-  ## Disk Info protocol is used to export Inquiry Data for a drive.\r
-  ## Include/Protocol/DiskInfo.h\r
-  gEfiDiskInfoProtocolGuid       = { 0xD432A67F, 0x14DC, 0x484B, { 0xB3, 0xBB, 0x3F, 0x02, 0x91, 0x84, 0x93, 0x27 }}\r
-  \r
-  ## This protocol provides an extended service to erase the specified range of a firmware volume block.\r
-  ## Include/Protocol/FvbExtension.h\r
-  gEfiFvbExtensionProtocolGuid   = { 0x53A4C71B, 0xB581, 0x4170, { 0x91, 0xB3, 0x8D, 0xB8, 0x7A, 0x4B, 0x5C, 0x46 }}\r
-  \r
+\r
   ## Fault tolerant write lite protocol defines only one interface to write \r
   #  the buffer to the fault tolerant storage.\r
   ## Include/Protocol/FaultTolerantWriteLite.h\r
   ## OEM Badging Protocol defines the interface to get the OEM badging image with the dispaly attribute.\r
   ## Include/Protocol/OEMBadging.h\r
   gEfiOEMBadgingProtocolGuid     = { 0x170E13C0, 0xBF1B, 0x4218, { 0x87, 0x1D, 0x2A, 0xBD, 0xC6, 0xF8, 0x87, 0xBC }}\r
-  \r
-  ## Protocol guid is defined for CRC32 encapsulation scheme.\r
-  ## Include/Protocol/Crc32GuidedSectionExtraction.h\r
-  gEfiCrc32GuidedSectionExtractionProtocolGuid = { 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } }\r
-  \r
+    \r
   ## Include/Protocol/NicIp4Config.h\r
   gEfiNicIp4ConfigProtocolGuid   = {0xdca3d4d, 0x12da, 0x4728,  { 0xbf, 0x7e, 0x86, 0xce, 0xb9, 0x28, 0xd0, 0x67 }}\r
   \r