]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/FwVolBlock/FwVolBlock.h
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVolBlock / FwVolBlock.h
index 7ad4e35ecb346687fa90ea58186e12942f12edb0..aa2ab7f7c2d325aa69d831ccf98ddd97f4c3b7d6 100644 (file)
@@ -3,26 +3,18 @@
   Consumes FV hobs and creates appropriate block protocols.\r
 \r
 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
-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
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
 #ifndef _FWVOL_BLOCK_H_\r
 #define _FWVOL_BLOCK_H_\r
 \r
-\r
-#define FVB_DEVICE_SIGNATURE       SIGNATURE_32('_','F','V','B')\r
-\r
+#define FVB_DEVICE_SIGNATURE  SIGNATURE_32('_','F','V','B')\r
 \r
 typedef struct {\r
-  UINTN                       Base;\r
-  UINTN                       Length;\r
+  UINTN    Base;\r
+  UINTN    Length;\r
 } LBA_CACHE;\r
 \r
 typedef struct {\r
@@ -50,11 +42,9 @@ typedef struct {
   UINT32                                AuthenticationStatus;\r
 } EFI_FW_VOL_BLOCK_DEVICE;\r
 \r
-\r
 #define FVB_DEVICE_FROM_THIS(a) \\r
   CR(a, EFI_FW_VOL_BLOCK_DEVICE, FwVolBlockInstance, FVB_DEVICE_SIGNATURE)\r
 \r
-\r
 /**\r
   Retrieves Volume attributes.  No polarity translations are done.\r
 \r
@@ -71,8 +61,6 @@ FwVolBlockGetAttributes (
   OUT       EFI_FVB_ATTRIBUTES_2                *Attributes\r
   );\r
 \r
-\r
-\r
 /**\r
   Modifies the current settings of the firmware volume according to the input parameter.\r
 \r
@@ -93,8 +81,6 @@ FwVolBlockSetAttributes (
   IN CONST  EFI_FVB_ATTRIBUTES_2                *Attributes\r
   );\r
 \r
-\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
@@ -121,12 +107,10 @@ FwVolBlockSetAttributes (
 EFI_STATUS\r
 EFIAPI\r
 FwVolBlockEraseBlock (\r
-  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL    *This,\r
+  IN EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL  *This,\r
   ...\r
   );\r
 \r
-\r
-\r
 /**\r
   Read the specified number of bytes from the block to the input buffer.\r
 \r
@@ -150,15 +134,13 @@ FwVolBlockEraseBlock (
 EFI_STATUS\r
 EFIAPI\r
 FwVolBlockReadBlock (\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 OUT    UINT8                                *Buffer\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 OUT    UINT8                               *Buffer\r
   );\r
 \r
-\r
-\r
 /**\r
   Writes the specified number of bytes from the input buffer to the block.\r
 \r
@@ -186,15 +168,13 @@ FwVolBlockReadBlock (
 EFI_STATUS\r
 EFIAPI\r
 FwVolBlockWriteBlock (\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
+  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
-\r
-\r
 /**\r
   Get Fvb's base address.\r
 \r
@@ -212,8 +192,6 @@ FwVolBlockGetPhysicalAddress (
   OUT       EFI_PHYSICAL_ADDRESS                *Address\r
   );\r
 \r
-\r
-\r
 /**\r
   Retrieves the size in bytes of a specific block within a firmware volume.\r
 \r
@@ -240,5 +218,4 @@ FwVolBlockGetBlockSize (
   IN OUT    UINTN                               *NumberOfBlocks\r
   );\r
 \r
-\r
 #endif\r