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
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
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
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
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
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
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
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
IN OUT UINTN *NumberOfBlocks\r
);\r
\r
-\r
#endif\r