]>
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 | |
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 | |
36 | );\r | |
37 | \r | |
38 | \r | |
39 | /**\r | |
40 | This function will be called following a call to the\r | |
41 | EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Write function.\r | |
42 | \r | |
43 | @param[in] This EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL instance.\r | |
921d5b47 | 44 | @param[in] Lba The starting logical block index to written to.\r |
9529d0ff | 45 | @param[in] Offset Offset into the block at which to begin writing.\r |
46 | @param[in] NumBytes The number of bytes written.\r | |
47 | @param[in] Buffer Pointer to the buffer that was written.\r | |
921d5b47 | 48 | \r |
49 | **/\r | |
50 | VOID\r | |
51 | EFIAPI\r | |
52 | PlatformFvbDataWritten (\r | |
949b0f3b | 53 | IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,\r |
54 | IN EFI_LBA Lba,\r | |
55 | IN UINTN Offset,\r | |
56 | IN UINTN NumBytes,\r | |
57 | IN UINT8 *Buffer\r | |
921d5b47 | 58 | );\r |
59 | \r | |
3a4ddfc5 | 60 | \r |
61 | /**\r | |
62 | This function will be called following a call to the\r | |
63 | EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase function.\r | |
64 | \r | |
65 | @param This Indicates the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL\r | |
66 | instance.\r | |
67 | @param List The variable argument list as documented for\r | |
68 | the EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL Erase\r | |
69 | function.\r | |
70 | \r | |
71 | **/\r | |
72 | VOID\r | |
73 | EFIAPI\r | |
74 | PlatformFvbBlocksErased (\r | |
75 | IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,\r | |
76 | IN VA_LIST List\r | |
77 | );\r | |
78 | \r | |
79 | \r | |
921d5b47 | 80 | #endif\r |
81 | \r |