]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/FirmwareVolumeBlock.h
Import Pal.h and Sal.h.
[mirror_edk2.git] / MdePkg / Include / Protocol / FirmwareVolumeBlock.h
index 0c3d03276b290028f780e116e7b97ed8ffd6befe..2e852221d4e4eab9cf605b69dd32404140bc88ea 100644 (file)
@@ -1,10 +1,7 @@
 /** @file\r
-  This file declares Firmware Volume Block protocol.\r
+  This file provides control over block-oriented firmware devices.\r
 \r
-  Low level firmware device access routines to abstract firmware device\r
-  hardware.\r
-\r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  Copyright (c) 2006 - 2007, 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
@@ -15,9 +12,8 @@
 \r
   Module Name:  FirmwareVolumeBlock.h\r
 \r
-  @par Revision Reference:\r
-  This protocol is defined in Framework of EFI Firmware Volume Block specification.\r
-  Version 0.9\r
+  @par Revision Reference: PI\r
+  Version 1.00.\r
 \r
 **/\r
 \r
 \r
 \r
 #define EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL_GUID \\r
-  { \\r
-    0xDE28BC59, 0x6228, 0x41BD, {0xBD, 0xF6, 0xA3, 0xB9, 0xAD, 0xB5, 0x8D, 0xA1 } \\r
-  }\r
+  { 0xDE28BC59, 0x6228, 0x41BD, 0xBD, {0xF6, 0xA3, 0xB9, 0xAD,0xB5, 0x8D, 0xA1 } }\r
+\r
 \r
-typedef struct _EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL;\r
+typedef struct _EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL;\r
 \r
 /**\r
-  Retrieves Volume attributes.  No polarity translations are done.\r
+  The GetAttributes() function retrieves the attributes and\r
+  current settings of the block. Status Codes Returned\r
 \r
-  @param  This                  Calling context\r
-  @param  Attributes            output buffer which contains attributes\r
+  @param This   Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+                instance.\r
 \r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_SUCCESS\r
+  @param Attributes Pointer to EFI_FVB_ATTRIBUTES in which the\r
+                    attributes and current settings are\r
+                    returned. Type EFI_FVB_ATTRIBUTES is defined\r
+                    in EFI_FIRMWARE_VOLUME_HEADER.\r
+\r
+  @retval EFI_SUCCESS The firmware volume attributes were\r
+                      returned.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FVB_GET_ATTRIBUTES) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  OUT EFI_FVB_ATTRIBUTES                          *Attributes\r
-  )\r
-;\r
+(EFIAPI * EFI_FVB_GET_ATTRIBUTES) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  OUT       EFI_FVB_ATTRIBUTES                  *Attributes\r
+);\r
+\r
 \r
 /**\r
-  Sets Volume attributes.  No polarity translations are done.\r
+  The SetAttributes() function sets configurable firmware volume\r
+  attributes and returns the new settings of the firmware volume.\r
 \r
-  @param  This                  Calling context\r
-  @param  Attributes            On input: contains new attributes\r
-                                On output: contains current attributes of FV\r
+  @param This   Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+                instance.\r
 \r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_SUCCESS\r
+  @param Attributes   On input, Attributes is a pointer to\r
+                      EFI_FVB_ATTRIBUTES that contains the\r
+                      desired firmware volume settings. On\r
+                      successful return, it contains the new\r
+                      settings of the firmware volume. Type\r
+                      EFI_FVB_ATTRIBUTES is defined in\r
+                      EFI_FIRMWARE_VOLUME_HEADER.\r
+\r
+  \r
+  @retval EFI_SUCCESS The firmware volume attributes were\r
+                      returned.\r
+\r
+  @retval EFI_INVALID_PARAMETER The attributes requested are in\r
+                                conflict with the capabilities\r
+                                as declared in the firmware\r
+                                volume header.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FVB_SET_ATTRIBUTES) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN OUT EFI_FVB_ATTRIBUTES                       *Attributes\r
-  )\r
-;\r
+(EFIAPI * EFI_FVB_SET_ATTRIBUTES) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  IN OUT    EFI_FVB_ATTRIBUTES                  *Attributes\r
+);\r
 \r
-/**\r
-  Retrieves the physical address of a memory mapped FV.\r
 \r
-  @param  This                  Calling context\r
-  @param  Attributes            Address is a pointer to a caller allocated EFI_PHYSICAL_ADDRESS\r
-                                that on successful return from GetPhysicalAddress() contains the\r
-                                base address of the firmware volume.\r
+/**\r
+  The GetPhysicalAddress() function retrieves the base address of\r
+  a memory-mapped firmware volume. This function should be called\r
+  only for memory-mapped firmware volumes.\r
+\r
+  @param This   Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+                nstance.\r
+  \r
+  @param Address  Pointer to a caller-allocated\r
+                  EFI_PHYSICAL_ADDRESS that, on successful\r
+                  return from GetPhysicalAddress(), contains the\r
+                  base address of the firmware volume. Type\r
+                  EFI_PHYSICAL_ADDRESS is defined in\r
+                  AllocatePages() in the UEFI 2.0 specification.\r
+  \r
+  @retval EFI_SUCCESS The firmware volume base address is\r
+                      returned.\r
+  \r
+  @retval EFI_NOT_SUPPORTED The firmware volume is not memory\r
+                            mapped.\r
 \r
-  @retval EFI_UNSUPPORTED\r
-  @retval EFI_SUCCESS\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FVB_GET_PHYSICAL_ADDRESS) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  OUT EFI_PHYSICAL_ADDRESS                        *Address\r
-  )\r
-;\r
+(EFIAPI * EFI_FVB_GET_PHYSICAL_ADDRESS) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  OUT       EFI_PHYSICAL_ADDRESS                *Address\r
+);\r
 \r
 /**\r
-  Retrieves the size in bytes of a specific block within an FV.\r
+  The GetBlockSize() function retrieves the size of the requested\r
+  block. It also returns the number of additional blocks with\r
+  the identical size. The GetBlockSize() function is used to\r
+  retrieve the block map (see EFI_FIRMWARE_VOLUME_HEADER).\r
 \r
-  @param  This                  Calling context.\r
-  @param  Lba                   Indicates which block to return the size for.\r
-  @param  BlockSize             BlockSize is a pointer to a caller allocated\r
-                                UINTN in which the size of the block is returned.\r
-  @param  NumberOfBlocks        NumberOfBlocks is a pointer to a caller allocated\r
-                                UINTN in which the number of consecutive blocks\r
-                                starting with Lba is returned. All blocks in this\r
-                                range have a size of BlockSize.\r
 \r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_SUCCESS\r
+  @param This   Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+                instance.\r
 \r
-**/\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_FVB_GET_BLOCK_SIZE) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN EFI_LBA                                      Lba,\r
-  OUT UINTN                                       *BlockSize,\r
-  OUT UINTN                                       *NumberOfBlocks\r
-  )\r
-;\r
+  @param Lba  Indicates the block for which to return the size.\r
+              Type EFI_LBA is defined in the BLOCK_IO Protocol\r
+              (section 11.6) in the UEFI 2.0 specification.\r
 \r
-/**\r
-  Reads data beginning at Lba:Offset from FV and places the data in Buffer.\r
-  The read terminates either when *NumBytes of data have been read, or when\r
-  a block boundary is reached.  *NumBytes is updated to reflect the actual\r
-  number of bytes read.\r
-\r
-  @param  This                  Calling context\r
-  @param  Lba                   Block in which to begin read\r
-  @param  Offset                Offset in the block at which to begin read\r
-  @param  NumBytes              At input, indicates the requested read size. At output, indicates\r
-                                the actual number of bytes read.\r
-  @param  Buffer                Data buffer in which to place data read.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_NOT_FOUND\r
-  @retval EFI_DEVICE_ERROR\r
-  @retval EFI_SUCCESS\r
+  @param BlockSize  Pointer to a caller-allocated UINTN in which\r
+                    the size of the block is returned.\r
+\r
+  @param NumberOfBlocks Pointer to a caller-allocated UINTN in\r
+                        which the number of consecutive blocks,\r
+                        starting with Lba, is returned. All\r
+                        blocks in this range have a size of\r
+                        BlockSize.\r
+\r
+  \r
+  @retval EFI_SUCCESS The firmware volume base address is\r
+                      returned.\r
+  \r
+  @retval EFI_INVALID_PARAMETER   The requested LBA is out of\r
+                                  range.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FVB_READ) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN EFI_LBA                                      Lba,\r
-  IN UINTN                                        Offset,\r
-  IN OUT UINTN                                    *NumBytes,\r
-  OUT UINT8                                       *Buffer\r
-  )\r
-;\r
+(EFIAPI * EFI_FVB_GET_BLOCK_SIZE) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  IN CONST  EFI_LBA                             Lba,\r
+  OUT       UINTN                               *BlockSize,\r
+  OUT       UINTN                               *NumberOfBlocks\r
+);\r
+\r
 \r
 /**\r
-  Writes data beginning at Lba:Offset from FV. The write terminates either\r
-  when *NumBytes of data have been written, or when a block boundary is\r
-  reached.  *NumBytes is updated to reflect the actual number of bytes\r
-  written.\r
-\r
-  @param  This                  Calling context\r
-  @param  Lba                   Block in which to begin write\r
-  @param  Offset                Offset in the block at which to begin write\r
-  @param  NumBytes              At input, indicates the requested write size. At output, indicates\r
-                                the actual number of bytes written.\r
-  @param  Buffer                Buffer containing source data for the write.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_NOT_FOUND\r
-  @retval EFI_DEVICE_ERROR\r
-  @retval EFI_SUCCESS\r
+  The Read() function reads the requested number of bytes from the\r
+  requested block and stores them in the provided buffer.\r
+  Implementations should be mindful that the firmware volume\r
+  might be in the ReadDisabled state. If it is in this state,\r
+  the Read() function must return the status code\r
+  EFI_ACCESS_DENIED without modifying the contents of the\r
+  buffer. The Read() function must also prevent spanning block\r
+  boundaries. If a read is requested that would span a block\r
+  boundary, the read must read up to the boundary but not\r
+  beyond. The output parameter NumBytes must be set to correctly\r
+  indicate the number of bytes actually read. The caller must be\r
+  aware that a read may be partially completed.\r
+\r
+  @param This Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+              instance. Lba The starting logical block index\r
+              from which to read. Type EFI_LBA is defined in the\r
+              BLOCK_IO Protocol (section 11.6) in the UEFI 2.0\r
+              specification.\r
+\r
+  @param Offset Offset into the block at which to begin reading.\r
+\r
+  @param NumBytes Pointer to a UINTN. At entry, *NumBytes\r
+                  contains the total size of the buffer. At\r
+                  exit, *NumBytes contains the total number of\r
+                  bytes read.\r
+\r
+  @param Buffer   Pointer to a caller-allocated buffer that will\r
+                  be used to hold the data that is read.\r
+\r
+  @retval EFI_SUCCESS The firmware volume was read successfully\r
+                      and contents are in Buffer.\r
+  \r
+  @retval EFI_BAD_BUFFER_SIZE Read attempted across an LBA\r
+                              boundary. On output, NumBytes\r
+                              contains the total number of bytes\r
+                              returned in Buffer.\r
+  \r
+  @retval EFI_ACCESS_DENIED   The firmware volume is in the\r
+                              ReadDisabled state.\r
+  \r
+  @retval EFI_DEVICE_ERROR    The block device is not\r
+                              functioning correctly and could\r
+                              not be read.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FVB_WRITE) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  IN EFI_LBA                                      Lba,\r
-  IN UINTN                                        Offset,\r
-  IN OUT UINTN                                    *NumBytes,\r
-  IN UINT8                                        *Buffer\r
-  )\r
-;\r
+(EFIAPI *EFI_FVB_READ) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  IN CONST  EFI_LBA                             Lba,\r
+  IN CONST  UINTN                               Offset,\r
+  IN OUT    UINTN                               *NumBytes,\r
+  OUT       UINT8                               *Buffer\r
+);\r
+\r
 \r
-#define EFI_LBA_LIST_TERMINATOR 0xFFFFFFFFFFFFFFFFULL\r
 \r
 /**\r
-  The EraseBlock() function erases one or more blocks as denoted by the \r
-  variable argument list. The entire parameter list of blocks must be verified\r
-  prior to erasing any blocks.  If a block is requested that does not exist \r
-  within the associated firmware volume (it has a larger index than the last \r
-  block of the firmware volume), the EraseBlock() function must return\r
-  EFI_INVALID_PARAMETER without modifying the contents of the firmware volume.\r
-\r
-  @param  This                  Calling context\r
-  @param  ...                   Starting LBA followed by Number of Lba to erase. a -1 to terminate\r
-                                the list.\r
-\r
-  @retval EFI_INVALID_PARAMETER\r
-  @retval EFI_DEVICE_ERROR\r
-  @retval EFI_SUCCESS\r
-  @retval EFI_ACCESS_DENIED\r
+  The Write() function writes the specified number of bytes from\r
+  the provided buffer to the specified block and offset. If the\r
+  firmware volume is sticky write, the caller must ensure that\r
+  all the bits of the specified range to write are in the\r
+  EFI_FVB_ERASE_POLARITY state before calling the Write()\r
+  function, or else the result will be unpredictable. This\r
+  unpredictability arises because, for a sticky-write firmware\r
+  volume, a write may negate a bit in the EFI_FVB_ERASE_POLARITY\r
+  state but it cannot flip it back again. In general, before\r
+  calling the Write() function, the caller should call the\r
+  EraseBlocks() function first to erase the specified block to\r
+  write. A block erase cycle will transition bits from the\r
+  (NOT)EFI_FVB_ERASE_POLARITY state back to the\r
+  EFI_FVB_ERASE_POLARITY state. Implementations should be\r
+  mindful that the firmware volume might be in the WriteDisabled\r
+  state. If it is in this state, the Write() function must\r
+  return the status code EFI_ACCESS_DENIED without modifying the\r
+  contents of the firmware volume. The Write() function must\r
+  also prevent spanning block boundaries. If a write is\r
+  requested that spans a block boundary, the write must store up\r
+  to the boundary but not beyond. The output parameter NumBytes\r
+  must be set to correctly indicate the number of bytes actually\r
+  written. The caller must be aware that a write may be\r
+  partially completed. All writes, partial or otherwise, must be\r
+  fully flushed to the hardware before the Write() service\r
+  returns.\r
+\r
+  @param This Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+              instance.\r
+  \r
+  @param Lba  The starting logical block index to write to. Type\r
+              EFI_LBA is defined in the BLOCK_IO Protocol\r
+              (section 11.6) in the UEFI 2.0 specification.\r
+              Offset Offset into the block at which to begin\r
+              writing.\r
+  \r
+  @param NumBytes Pointer to a UINTN. At entry, *NumBytes\r
+                  contains the total size of the buffer. At\r
+                  exit, *NumBytes contains the total number of\r
+                  bytes actually written.\r
+  \r
+  @param Buffer Pointer to a caller-allocated buffer that\r
+                contains the source for the write.\r
+  \r
+  @retval EFI_SUCCESS The firmware volume was written\r
+                      successfully.\r
+  \r
+  @retval EFI_BAD_BUFFER_SIZE The write was attempted across an\r
+                              LBA boundary. On output, NumBytes\r
+                              contains the total number of bytes\r
+                              actually written.\r
+  \r
+  @retval EFI_ACCESS_DENIED   The firmware volume is in the\r
+                              WriteDisabled state.\r
+  \r
+  @retval EFI_DEVICE_ERROR    The block device is malfunctioning\r
+                              and could not be written.\r
+\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FVB_ERASE_BLOCKS) (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL           *This,\r
-  ...\r
-  )\r
-;\r
+(EFIAPI * EFI_FVB_WRITE) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  IN CONST  EFI_LBA                             Lba,\r
+  IN CONST  UINTN                               Offset,\r
+  IN OUT    UINTN                               *NumBytes,\r
+  IN CONST  UINT8                               *Buffer\r
+);\r
 \r
-/**\r
-  @par Protocol Description:\r
-  This protocol provides control over block-oriented firmware devices.  \r
-  Typically, the FFS (or an alternate file system) driver consumes the \r
-  Firmware Volume Block Protocol and produces the Firmware Volume Protocol. \r
 \r
-  @param GetAttributes\r
-  Retrieves the current volume attributes.\r
 \r
-  @param SetAttributes\r
-  Sets the current volume attributes. \r
 \r
-  @param GetPhysicalAddress\r
-  Retrieves the memory-mapped address of the firmware volume. \r
+//\r
+// EFI_LBA_LIST_TERMINATOR\r
+//\r
+#define EFI_LBA_LIST_TERMINATOR   0xFFFFFFFFFFFFFFFFULL\r
 \r
-  @param GetBlockSize\r
-  Retrieves the size for a specific block.\r
 \r
-  @param Read\r
-  Reads n bytes into a buffer from the firmware volume hardware.\r
+/**\r
+  The EraseBlocks() function erases one or more blocks as denoted\r
+  by the variable argument list. The entire parameter list of\r
+  blocks must be verified before erasing any blocks. If a block is\r
+  requested that does not exist within the associated firmware\r
+  volume (it has a larger index than the last block of the\r
+  firmware volume), the EraseBlocks() function must return the\r
+  status code EFI_INVALID_PARAMETER without modifying the contents\r
+  of the firmware volume. Implementations should be mindful that\r
+  the firmware volume might be in the WriteDisabled state. If it\r
+  is in this state, the EraseBlocks() function must return the\r
+  status code EFI_ACCESS_DENIED without modifying the contents of\r
+  the firmware volume. All calls to EraseBlocks() must be fully\r
+  flushed to the hardware before the EraseBlocks() service\r
+  returns.\r
+\r
+  @param This   Indicates the EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL\r
+                instance.\r
+\r
+  @param ...    The variable argument list is a list of tuples.\r
+                Each tuple describes a range of LBAs to erase\r
+                and consists of the following:\r
+                - An EFI_LBA that indicates the starting LBA\r
+                - A UINTN that indicates the number of blocks to\r
+                  erase\r
+\r
+                The list is terminated with an\r
+                EFI_LBA_LIST_TERMINATOR. For example, the\r
+                following indicates that two ranges of blocks\r
+                (5-7 and 10-11) are to be erased: EraseBlocks\r
+                (This, 5, 3, 10, 2, EFI_LBA_LIST_TERMINATOR);\r
+\r
+  @retval EFI_SUCCESS The erase request was successfully\r
+                      completed.\r
+  \r
+  @retval EFI_ACCESS_DENIED   The firmware volume is in the\r
+                              WriteDisabled state.\r
+  @retval EFI_DEVICE_ERROR  The block device is not functioning\r
+                            correctly and could not be written.\r
+                            The firmware device may have been\r
+                            partially erased.\r
+  @retval EFI_INVALID_PARAMETER One or more of the LBAs listed\r
+                                in the variable argument list do\r
+                                not exist in the firmware volume.  \r
 \r
-  @param Write\r
-  Writes n bytes from a buffer into the firmware volume hardware. \r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI * EFI_FVB_ERASE_BLOCKS) (\r
+  IN CONST  EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
+  ...\r
+);\r
 \r
-  @param EraseBlocks\r
-  Erases specified block(s) and sets all values as indicated by \r
-  the EFI_FVB_ERASE_POLARITY bit.\r
 \r
-  @param ParentHandle\r
-  Handle of the parent firmware volume.\r
+\r
+/**\r
+  The Firmware Volume Block Protocol is the low-level interface\r
+  to a firmware volume. File-level access to a firmware volume\r
+  should not be done using the Firmware Volume Block Protocol.\r
+  Normal access to a firmware volume must use the Firmware\r
+  Volume Protocol. Typically, only the file system driver that\r
+  produces the Firmware Volume Protocol will bind to the\r
+  Firmware Volume Block Protocol. The Firmware Volume Block\r
+  Protocol provides the following:\r
+  - Byte-level read/write functionality.\r
+  - Block-level erase functionality.\r
+  - It further exposes device-hardening features, such as may be\r
+    equired to protect the firmware from unwanted overwriting\r
+    and/or erasure.\r
+  - It is useful to layer a file system driver on top of the\r
+    Firmware Volume Block Protocol.\r
+\r
+  This file system driver produces the Firmware Volume Protocol,\r
+  which provides file-level access to a firmware volume. The\r
+  Firmware Volume Protocol abstracts the file system that is\r
+  used to format the firmware volume and the hardware\r
+  device-hardening features that may be present.\r
+\r
+\r
+  @param GetPhysicalAddress   Retrieves the memory-mapped\r
+                              address of the firmware volume.\r
+                              See the GetPhysicalAddress()\r
+                              function description. \r
+\r
+  @param GetBlockSize   Retrieves the size for a specific block.\r
+                        Also returns the number of consecutive\r
+                        similarly sized blocks. See the\r
+                        GetBlockSize() function description.\r
+\r
+  @param Read   Reads n bytes into a buffer from the firmware\r
+                volume hardware. See the Read() function\r
+                description.\r
+\r
+  @param Write  Writes n bytes from a buffer into the firmware\r
+                volume hardware. See the Write() function\r
+                description.\r
+\r
+  @param EraseBlocks  Erases specified block(s) and sets all\r
+                      values as indicated by the\r
+                      EFI_FVB_ERASE_POLARITY bit. See the\r
+                      EraseBlocks() function description. Type\r
+                      EFI_FVB_ERASE_POLARITY is defined in\r
+                      EFI_FIRMWARE_VOLUME_HEADER. ParentHandle\r
+                      Handle of the parent firmware volume. Type\r
+                      EFI_HANDLE is defined in\r
+                      InstallProtocolInterface() in the UEFI 2.0\r
+                      specification.\r
+  \r
+  @param GetAttributes Retrieves the current volume attributes.\r
+                       See the GetAttributes() function\r
+                       description.\r
+  \r
+  @param SetAttributes Sets the current volume attributes. See\r
+                       the SetAttributes() function description.\r
+  \r
 \r
 **/\r
 struct _EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL {\r
-  EFI_FVB_GET_ATTRIBUTES        GetVolumeAttributes;\r
-  EFI_FVB_SET_ATTRIBUTES        SetVolumeAttributes;\r
+  EFI_FVB_GET_ATTRIBUTES        GetAttributes;\r
+  EFI_FVB_SET_ATTRIBUTES        SetAttributes;\r
   EFI_FVB_GET_PHYSICAL_ADDRESS  GetPhysicalAddress;\r
   EFI_FVB_GET_BLOCK_SIZE        GetBlockSize;\r
   EFI_FVB_READ                  Read;\r
@@ -246,6 +421,8 @@ struct _EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL {
   EFI_HANDLE                    ParentHandle;\r
 };\r
 \r
+\r
 extern EFI_GUID gEfiFirmwareVolumeBlockProtocolGuid;\r
 \r
+\r
 #endif\r