]>
Commit | Line | Data |
---|---|---|
921d5b47 | 1 | /** @file\r |
2 | Library to define platform customization functions for a\r | |
3 | Firmare Volume Block driver.\r | |
4 | \r | |
9529d0ff | 5 | Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r |
b26f0cf9 | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
921d5b47 | 7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef __PLATFORM_FVB_LIB__\r | |
11 | #define __PLATFORM_FVB_LIB__\r | |
12 | \r | |
13 | #include <Protocol/FirmwareVolumeBlock.h>\r | |
14 | \r | |
15 | /**\r | |
16 | This function will be called following a call to the\r | |
3a4ddfc5 | 17 | EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Read function.\r |
921d5b47 | 18 | \r |
3a4ddfc5 | 19 | @param[in] This The EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.\r |
20 | @param[in] Lba The starting logical block index\r | |
21 | from which to read.\r | |
22 | @param[in] Offset Offset into the block at which to begin reading.\r | |
23 | @param[in] NumBytes The number of bytes read.\r | |
24 | @param[in] Buffer Pointer to the buffer that was read, and will be\r | |
25 | returned to the caller.\r | |
26 | \r | |
27 | **/\r | |
28 | VOID\r | |
29 | EFIAPI\r | |
30 | PlatformFvbDataRead (\r | |
ac0a286f MK |
31 | IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,\r |
32 | IN EFI_LBA Lba,\r | |
33 | IN UINTN Offset,\r | |
34 | IN UINTN NumBytes,\r | |
35 | IN UINT8 *Buffer\r | |
3a4ddfc5 | 36 | );\r |
37 | \r | |
3a4ddfc5 | 38 | /**\r |
39 | This function will be called following a call to the\r | |
40 | EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Write function.\r | |
41 | \r | |
42 | @param[in] This EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.\r | |
921d5b47 | 43 | @param[in] Lba The starting logical block index to written to.\r |
9529d0ff | 44 | @param[in] Offset Offset into the block at which to begin writing.\r |
45 | @param[in] NumBytes The number of bytes written.\r | |
46 | @param[in] Buffer Pointer to the buffer that was written.\r | |
921d5b47 | 47 | \r |
48 | **/\r | |
49 | VOID\r | |
50 | EFIAPI\r | |
51 | PlatformFvbDataWritten (\r | |
949b0f3b | 52 | IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,\r |
53 | IN EFI_LBA Lba,\r | |
54 | IN UINTN Offset,\r | |
55 | IN UINTN NumBytes,\r | |
56 | IN UINT8 *Buffer\r | |
921d5b47 | 57 | );\r |
58 | \r | |
3a4ddfc5 | 59 | /**\r |
60 | This function will be called following a call to the\r | |
61 | EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase function.\r | |
62 | \r | |
63 | @param This Indicates the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL\r | |
64 | instance.\r | |
65 | @param List The variable argument list as documented for\r | |
66 | the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase\r | |
67 | function.\r | |
68 | \r | |
69 | **/\r | |
70 | VOID\r | |
71 | EFIAPI\r | |
72 | PlatformFvbBlocksErased (\r | |
ac0a286f MK |
73 | IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,\r |
74 | IN VA_LIST List\r | |
3a4ddfc5 | 75 | );\r |
76 | \r | |
921d5b47 | 77 | #endif\r |