]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/FwVolBlock.h
Code Scrub for Dxe Core.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVolBlock.h
index 4e702c6061a5e41391af32df296859d84a42a7db..e2f9aa9af2e45121fea4d6b59aa29f153f9896a1 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Firmware Volume Block protocol functions.  \r
+  Firmware Volume Block protocol functions.\r
   Consumes FV hobs and creates appropriate block protocols.\r
 \r
 Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
@@ -51,10 +51,10 @@ typedef struct {
   libraries, consumes FV hobs and NT_NON_MM_FV environment variable and\r
   produces instances of FW_VOL_BLOCK_PROTOCOL as appropriate.\r
 \r
-  @param  ImageHandle            The image handle. \r
-  @param  SystemTable            The system table. \r
+  @param  ImageHandle            The image handle.\r
+  @param  SystemTable            The system table.\r
 \r
-  @retval EFI_SUCCESS            Successfully initialized firmware volume block \r
+  @retval EFI_SUCCESS            Successfully initialized firmware volume block\r
                                  driver.\r
 \r
 **/\r
@@ -70,8 +70,8 @@ FwVolBlockDriverInit (
 /**\r
   Retrieves Volume attributes.  No polarity translations are done.\r
 \r
-  @param  This                   Calling context \r
-  @param  Attributes             output buffer which contains attributes \r
+  @param  This                   Calling context\r
+  @param  Attributes             output buffer which contains attributes\r
 \r
   @retval EFI_SUCCESS            The firmware volume attributes were returned.\r
 \r
@@ -88,13 +88,13 @@ FwVolBlockGetAttributes (
 /**\r
   Modifies the current settings of the firmware volume according to the input parameter.\r
 \r
-  @param  This                   Calling context \r
-  @param  Attributes             input buffer which contains attributes \r
+  @param  This                   Calling context\r
+  @param  Attributes             input buffer which contains attributes\r
 \r
-  @retval EFI_SUCCESS            The firmware volume attributes were returned. \r
-  @retval EFI_INVALID_PARAMETER  The attributes requested are in conflict with \r
-                                 the capabilities as declared in the firmware \r
-                                 volume header. \r
+  @retval EFI_SUCCESS            The firmware volume attributes were returned.\r
+  @retval EFI_INVALID_PARAMETER  The attributes requested are in conflict with\r
+                                 the capabilities as declared in the firmware\r
+                                 volume header.\r
   @retval EFI_UNSUPPORTED        Not supported.\r
 \r
 **/\r
@@ -115,18 +115,18 @@ FwVolBlockSetAttributes (
   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. \r
-                                 a -1 to terminate the list. \r
-\r
-  @retval EFI_SUCCESS            The erase request was successfully completed. \r
-  @retval EFI_ACCESS_DENIED      The firmware volume is in the WriteDisabled \r
-                                 state. \r
-  @retval EFI_DEVICE_ERROR       The block device is not functioning correctly \r
-                                 and could not be written. The firmware device \r
-                                 may have been partially erased. \r
-  @retval EFI_INVALID_PARAMETER  One or more of the LBAs listed in the variable \r
-                                 argument list do \r
+  @param  This                   Calling context\r
+  @param  ...                    Starting LBA followed by Number of Lba to erase.\r
+                                 a -1 to terminate the list.\r
+\r
+  @retval EFI_SUCCESS            The erase request was successfully completed.\r
+  @retval EFI_ACCESS_DENIED      The firmware volume is in the WriteDisabled\r
+                                 state.\r
+  @retval EFI_DEVICE_ERROR       The block device is not functioning correctly\r
+                                 and could not be written. The firmware device\r
+                                 may have been partially erased.\r
+  @retval EFI_INVALID_PARAMETER  One or more of the LBAs listed in the variable\r
+                                 argument list do\r
   @retval EFI_UNSUPPORTED        Not supported.\r
 \r
 **/\r
@@ -142,20 +142,20 @@ FwVolBlockEraseBlock (
 /**\r
   Read the specified number of bytes from the block to the input buffer.\r
 \r
-  @param  This                   Indicates the calling context. \r
-  @param  Lba                    The starting logical block index to read. \r
-  @param  Offset                 Offset into the block at which to begin reading. \r
-  @param  NumBytes               Pointer to a UINT32. At entry, *NumBytes \r
-                                 contains the total size of the buffer. At exit, \r
-                                 *NumBytes contains the total number of bytes \r
-                                 actually read. \r
-  @param  Buffer                 Pinter to a caller-allocated buffer that \r
-                                 contains the destine for the read. \r
-\r
-  @retval EFI_SUCCESS            The firmware volume was read successfully. \r
-  @retval EFI_BAD_BUFFER_SIZE    The read was attempted across an LBA boundary. \r
-  @retval EFI_ACCESS_DENIED      Access denied. \r
-  @retval EFI_DEVICE_ERROR       The block device is malfunctioning and could not \r
+  @param  This                   Indicates the calling context.\r
+  @param  Lba                    The starting logical block index to read.\r
+  @param  Offset                 Offset into the block at which to begin reading.\r
+  @param  NumBytes               Pointer to a UINT32. At entry, *NumBytes\r
+                                 contains the total size of the buffer. At exit,\r
+                                 *NumBytes contains the total number of bytes\r
+                                 actually read.\r
+  @param  Buffer                 Pinter to a caller-allocated buffer that\r
+                                 contains the destine for the read.\r
+\r
+  @retval EFI_SUCCESS            The firmware volume was read successfully.\r
+  @retval EFI_BAD_BUFFER_SIZE    The read was attempted across an LBA boundary.\r
+  @retval EFI_ACCESS_DENIED      Access denied.\r
+  @retval EFI_DEVICE_ERROR       The block device is malfunctioning and could not\r
                                  be read.\r
 \r
 **/\r
@@ -169,29 +169,29 @@ FwVolBlockReadBlock (
   IN OUT    UINT8                                *Buffer\r
   );\r
 \r
-  \r
+\r
 \r
 /**\r
   Writes the specified number of bytes from the input buffer to the block.\r
 \r
-  @param  This                   Indicates the calling context. \r
-  @param  Lba                    The starting logical block index to write to. \r
-  @param  Offset                 Offset into the block at which to begin writing. \r
-  @param  NumBytes               Pointer to a UINT32. At entry, *NumBytes \r
-                                 contains the total size of the buffer. At exit, \r
-                                 *NumBytes contains the total number of bytes \r
-                                 actually written. \r
-  @param  Buffer                 Pinter to a caller-allocated buffer that \r
-                                 contains the source for the write. \r
-\r
-  @retval EFI_SUCCESS            The firmware volume was written successfully. \r
-  @retval EFI_BAD_BUFFER_SIZE    The write was attempted across an LBA boundary. \r
-                                 On output, NumBytes contains the total number of \r
-                                 bytes actually written. \r
-  @retval EFI_ACCESS_DENIED      The firmware volume is in the WriteDisabled \r
-                                 state. \r
-  @retval EFI_DEVICE_ERROR       The block device is malfunctioning and could not \r
-                                 be written. \r
+  @param  This                   Indicates the calling context.\r
+  @param  Lba                    The starting logical block index to write to.\r
+  @param  Offset                 Offset into the block at which to begin writing.\r
+  @param  NumBytes               Pointer to a UINT32. At entry, *NumBytes\r
+                                 contains the total size of the buffer. At exit,\r
+                                 *NumBytes contains the total number of bytes\r
+                                 actually written.\r
+  @param  Buffer                 Pinter to a caller-allocated buffer that\r
+                                 contains the source for the write.\r
+\r
+  @retval EFI_SUCCESS            The firmware volume was written successfully.\r
+  @retval EFI_BAD_BUFFER_SIZE    The write was attempted across an LBA boundary.\r
+                                 On output, NumBytes contains the total number of\r
+                                 bytes actually written.\r
+  @retval EFI_ACCESS_DENIED      The firmware volume is in the WriteDisabled\r
+                                 state.\r
+  @retval EFI_DEVICE_ERROR       The block device is malfunctioning and could not\r
+                                 be written.\r
   @retval EFI_UNSUPPORTED        Not supported.\r
 \r
 **/\r
@@ -205,15 +205,15 @@ FwVolBlockWriteBlock (
   IN     UINT8                                *Buffer\r
   );\r
 \r
-    \r
+\r
 \r
 /**\r
   Get Fvb's base address.\r
 \r
-  @param  This                   Indicates the calling context. \r
-  @param  Address                Fvb device base address. \r
+  @param  This                   Indicates the calling context.\r
+  @param  Address                Fvb device base address.\r
 \r
-  @retval EFI_SUCCESS            Successfully got Fvb's base address. \r
+  @retval EFI_SUCCESS            Successfully got Fvb's base address.\r
   @retval EFI_UNSUPPORTED        Not supported.\r
 \r
 **/\r
@@ -229,17 +229,17 @@ FwVolBlockGetPhysicalAddress (
 /**\r
   Retrieves the size in bytes of a specific block within a firmware volume.\r
 \r
-  @param  This                   Indicates the calling context. \r
-  @param  Lba                    Indicates the block for which to return the \r
-                                 size. \r
-  @param  BlockSize              Pointer to a caller-allocated UINTN in which the \r
-                                 size of the block is returned. \r
-  @param  NumberOfBlocks         Pointer to a caller-allocated UINTN in which the \r
-                                 number of consecutive blocks starting with Lba \r
-                                 is returned. All blocks in this range have a \r
-                                 size of BlockSize. \r
-\r
-  @retval EFI_SUCCESS            The firmware volume base address is returned. \r
+  @param  This                   Indicates the calling context.\r
+  @param  Lba                    Indicates the block for which to return the\r
+                                 size.\r
+  @param  BlockSize              Pointer to a caller-allocated UINTN in which the\r
+                                 size of the block is returned.\r
+  @param  NumberOfBlocks         Pointer to a caller-allocated UINTN in which the\r
+                                 number of consecutive blocks starting with Lba\r
+                                 is returned. All blocks in this range have a\r
+                                 size of BlockSize.\r
+\r
+  @retval EFI_SUCCESS            The firmware volume base address is returned.\r
   @retval EFI_INVALID_PARAMETER  The requested LBA is out of range.\r
 \r
 **/\r
@@ -257,10 +257,10 @@ FwVolBlockGetBlockSize (
   libraries, consumes FV hobs and NT_NON_MM_FV environment variable and\r
   produces instances of FW_VOL_BLOCK_PROTOCOL as appropriate.\r
 \r
-  @param  ImageHandle            The image handle. \r
-  @param  SystemTable            The system table. \r
+  @param  ImageHandle            The image handle.\r
+  @param  SystemTable            The system table.\r
 \r
-  @retval EFI_SUCCESS            Successfully initialized firmware volume block \r
+  @retval EFI_SUCCESS            Successfully initialized firmware volume block\r
                                  driver.\r
 \r
 **/\r
@@ -276,16 +276,16 @@ FwVolBlockDriverInit (
   This routine produces a firmware volume block protocol on a given\r
   buffer.\r
 \r
-  @param  BaseAddress            base address of the firmware volume image \r
-  @param  Length                 length of the firmware volume image \r
-  @param  ParentHandle           handle of parent firmware volume, if this image \r
-                                 came from an FV image file in another firmware \r
-                                 volume (ala capsules) \r
-  @param  FvProtocol             Firmware volume block protocol produced. \r
+  @param  BaseAddress            base address of the firmware volume image\r
+  @param  Length                 length of the firmware volume image\r
+  @param  ParentHandle           handle of parent firmware volume, if this image\r
+                                 came from an FV image file in another firmware\r
+                                 volume (ala capsules)\r
+  @param  FvProtocol             Firmware volume block protocol produced.\r
 \r
-  @retval EFI_VOLUME_CORRUPTED   Volume corrupted. \r
-  @retval EFI_OUT_OF_RESOURCES   No enough buffer to be allocated. \r
-  @retval EFI_SUCCESS            Successfully produced a FVB protocol on given \r
+  @retval EFI_VOLUME_CORRUPTED   Volume corrupted.\r
+  @retval EFI_OUT_OF_RESOURCES   No enough buffer to be allocated.\r
+  @retval EFI_SUCCESS            Successfully produced a FVB protocol on given\r
                                  buffer.\r
 \r
 **/\r