]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Include/Library/PlatformFvbLib.h
OvmfPkg EMU FVB: Convert to FVB2 protocol
[mirror_edk2.git] / OvmfPkg / Include / Library / PlatformFvbLib.h
1 /** @file
2 Library to define platform customization functions for a
3 Firmare Volume Block driver.
4
5 Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #ifndef __PLATFORM_FVB_LIB__
17 #define __PLATFORM_FVB_LIB__
18
19 #include <Protocol/FirmwareVolumeBlock.h>
20
21 /**
22 This function will be called following a call to the
23 EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL Write function.
24
25 @param[in] This EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL instance.
26 @param[in] Lba The starting logical block index to written to.
27 @param[in] Offset Offset into the block at which to begin writing.
28 @param[in] NumBytes The number of bytes written.
29 @param[in] Buffer Pointer to the buffer that was written.
30
31 **/
32 VOID
33 EFIAPI
34 PlatformFvbDataWritten (
35 IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,
36 IN EFI_LBA Lba,
37 IN UINTN Offset,
38 IN UINTN NumBytes,
39 IN UINT8 *Buffer
40 );
41
42 #endif
43