2 Library to define platform customization functions for a
3 Firmare Volume Block driver.
5 Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __PLATFORM_FVB_LIB__
11 #define __PLATFORM_FVB_LIB__
13 #include <Protocol/FirmwareVolumeBlock.h>
16 This function will be called following a call to the
17 EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Read function.
19 @param[in] This The EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.
20 @param[in] Lba The starting logical block index
22 @param[in] Offset Offset into the block at which to begin reading.
23 @param[in] NumBytes The number of bytes read.
24 @param[in] Buffer Pointer to the buffer that was read, and will be
25 returned to the caller.
31 IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
*This
,
39 This function will be called following a call to the
40 EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Write function.
42 @param[in] This EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.
43 @param[in] Lba The starting logical block index to written to.
44 @param[in] Offset Offset into the block at which to begin writing.
45 @param[in] NumBytes The number of bytes written.
46 @param[in] Buffer Pointer to the buffer that was written.
51 PlatformFvbDataWritten (
52 IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
*This
,
60 This function will be called following a call to the
61 EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase function.
63 @param This Indicates the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
65 @param List The variable argument list as documented for
66 the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase
72 PlatformFvbBlocksErased (
73 IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
*This
,