]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Protocol/FvbExtension.h
remedy the comment of EFI_CONSOLE_CONTROL_PROTOCOL_LOCK_STD_IN
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / FvbExtension.h
index 8a85d3d905562b73b7edcdb1e2e66fe5f3c866e2..f3918e94901e145d8d6114c76646a5e3369358ee 100644 (file)
@@ -1,6 +1,9 @@
-/*++\r
+/** @file\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation\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
@@ -9,15 +12,7 @@ http://opensource.org/licenses/bsd-license.php
 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
-Module Name:\r
-\r
-    FvbExtension.h\r
-\r
-Abstract:\r
-\r
-  FVB Extension protocol that extends the FVB Class in a component fashion.\r
-\r
---*/\r
+**/\r
 \r
 #ifndef __FVB_EXTENSION_H__\r
 #define __FVB_EXTENSION_H__\r
@@ -30,18 +25,33 @@ typedef struct _EFI_FVB_EXTENSION_PROTOCOL EFI_FVB_EXTENSION_PROTOCOL;
 //\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
+(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
+  IN EFI_LBA                      StartLba,\r
+  IN UINTN                        OffsetStartLba,\r
+  IN EFI_LBA                      LastLba,\r
+  IN UINTN                        OffsetLastLba\r
 );\r
 \r
 //\r
-// IPMI TRANSPORT PROTOCOL\r
+// FVB Extension PROTOCOL\r
 //\r
 struct _EFI_FVB_EXTENSION_PROTOCOL {\r
   EFI_FV_ERASE_CUSTOM_BLOCK               EraseFvbCustomBlock;\r