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
,
40 This function will be called following a call to the
41 EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Write function.
43 @param[in] This EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.
44 @param[in] Lba The starting logical block index to written to.
45 @param[in] Offset Offset into the block at which to begin writing.
46 @param[in] NumBytes The number of bytes written.
47 @param[in] Buffer Pointer to the buffer that was written.
52 PlatformFvbDataWritten (
53 IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
*This
,
62 This function will be called following a call to the
63 EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase function.
65 @param This Indicates the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
67 @param List The variable argument list as documented for
68 the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase
74 PlatformFvbBlocksErased (
75 IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
*This
,