]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Protocol/FaultTolerantWrite.h
MdeModulePkg/ResetSystemRuntimeDxe: Add platform filter and handler
[mirror_edk2.git] / MdeModulePkg / Include / Protocol / FaultTolerantWrite.h
index 67a45c15355d1979fcccb65c6e8f02104a990a16..b96edfb68fb810e9a3aaf9df30f9a1890f0597a2 100644 (file)
@@ -1,15 +1,15 @@
 /** @file\r
-Fault Tolerant Write protocol provides boot-time service for fault tolerant \r
-write capability for block devices.  The protocol provides for non-volatile \r
-storage of the intermediate data and private information a caller would need to \r
-recover from a critical fault, such as a power failure.   \r
-\r
-Copyright (c) 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
+  Fault Tolerant Write protocol provides boot-time service for fault tolerant \r
+  write capability for block devices.  The protocol provides for non-volatile \r
+  storage of the intermediate data and private information a caller would need to \r
+  recover from a critical fault, such as a power failure.   \r
+\r
+Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
@@ -36,13 +36,13 @@ typedef struct _EFI_FAULT_TOLERANT_WRITE_PROTOCOL  EFI_FAULT_TOLERANT_WRITE_PROT
                                updated to indicate the size of the largest block\r
                                that can be updated.\r
 \r
-  @retval EFI_SUCCESS          The function completed successfully\r
+  @retval EFI_SUCCESS          The function completed successfully.\r
   @retval EFI_ABORTED          The function could not complete successfully.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FAULT_TOLERANT_WRITE_GET_MAX_BLOCK_SIZE) (\r
+(EFIAPI *EFI_FAULT_TOLERANT_WRITE_GET_MAX_BLOCK_SIZE)(\r
   IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL    * This,\r
   OUT UINTN                               *BlockSize\r
   );\r
@@ -70,7 +70,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FAULT_TOLERANT_WRITE_ALLOCATE) (\r
+(EFIAPI *EFI_FAULT_TOLERANT_WRITE_ALLOCATE)(\r
   IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL    * This,\r
   IN EFI_GUID                             * CallerId,\r
   IN UINTN                                PrivateDataSize,\r
@@ -83,7 +83,7 @@ EFI_STATUS
   manner, ensuring at all times that either the original contents or\r
   the modified contents are available.\r
 \r
-  @param  This                 Calling context\r
+  @param  This                 The calling context.\r
   @param  Lba                  The logical block address of the target block.\r
   @param  Offset               The offset within the target block to place the\r
                                data.\r
@@ -95,7 +95,7 @@ EFI_STATUS
                                for reading, writing, and erasing the target block.\r
   @param  Buffer               The data to write.\r
 \r
-  @retval EFI_SUCCESS          The function completed successfully\r
+  @retval EFI_SUCCESS          The function completed successfully.\r
   @retval EFI_ABORTED          The function could not complete successfully.\r
   @retval EFI_BAD_BUFFER_SIZE  The write would span a block boundary, which is not\r
                                a valid action.\r
@@ -106,7 +106,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FAULT_TOLERANT_WRITE_WRITE) (\r
+(EFIAPI *EFI_FAULT_TOLERANT_WRITE_WRITE)(\r
   IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL     * This,\r
   IN EFI_LBA                               Lba,\r
   IN UINTN                                 Offset,\r
@@ -120,18 +120,18 @@ EFI_STATUS
   Restarts a previously interrupted write. The caller must provide the\r
   block protocol needed to complete the interrupted write.\r
 \r
-  @param  This                 Calling context.\r
-  @param  FvBlockProtocol      The handle of FVB protocol that provides services\r
+  @param  This                 The calling context.\r
+  @param  FvBlockProtocol      The handle of FVB protocol that provides services.\r
                                for reading, writing, and erasing the target block.\r
 \r
-  @retval EFI_SUCCESS          The function completed successfully\r
+  @retval EFI_SUCCESS          The function completed successfully.\r
   @retval EFI_ABORTED          The function could not complete successfully.\r
   @retval EFI_ACCESS_DENIED    No pending writes exist.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FAULT_TOLERANT_WRITE_RESTART) (\r
+(EFIAPI *EFI_FAULT_TOLERANT_WRITE_RESTART)(\r
   IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL     * This,\r
   IN EFI_HANDLE                            FvbHandle\r
   );\r
@@ -139,22 +139,22 @@ EFI_STATUS
 /**\r
   Aborts all previously allocated writes.\r
 \r
-  @param  This                 Calling context\r
+  @param  This                 The calling context.\r
 \r
-  @retval EFI_SUCCESS          The function completed successfully\r
+  @retval EFI_SUCCESS          The function completed successfully.\r
   @retval EFI_ABORTED          The function could not complete successfully.\r
   @retval EFI_NOT_FOUND        No allocated writes exist.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FAULT_TOLERANT_WRITE_ABORT) (\r
+(EFIAPI *EFI_FAULT_TOLERANT_WRITE_ABORT)(\r
   IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL     * This\r
   );\r
 \r
 /**\r
   Starts a target block update. This function records information about the write\r
-  in fault tolerant storage and completes the write in a recoverable\r
+  in fault-tolerant storage and completes the write in a recoverable\r
   manner, ensuring at all times that either the original contents or\r
   the modified contents are available.\r
 \r
@@ -172,14 +172,14 @@ EFI_STATUS
   @param  Complete             A Boolean value with TRUE indicating that the write\r
                                was completed.\r
 \r
-  @retval EFI_SUCCESS          The function completed successfully\r
+  @retval EFI_SUCCESS          The function completed successfully.\r
   @retval EFI_ABORTED          The function could not complete successfully.\r
   @retval EFI_NOT_FOUND        No allocated writes exist.\r
 \r
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_FAULT_TOLERANT_WRITE_GET_LAST_WRITE) (\r
+(EFIAPI *EFI_FAULT_TOLERANT_WRITE_GET_LAST_WRITE)(\r
   IN EFI_FAULT_TOLERANT_WRITE_PROTOCOL     * This,\r
   OUT EFI_GUID                             * CallerId,\r
   OUT EFI_LBA                              *Lba,\r