2 Implements functions to write firmware file
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include "FwVolDriver.h"
14 Writes one or more files to the firmware volume.
16 @param This Indicates the calling context.
17 @param NumberOfFiles Number of files.
18 @param WritePolicy WritePolicy indicates the level of reliability
19 for the write in the event of a power failure or
20 other system failure during the write operation.
21 @param FileData FileData is an pointer to an array of
22 EFI_FV_WRITE_DATA. Each element of array
23 FileData represents a file to be written.
25 @retval EFI_SUCCESS Files successfully written to firmware volume
26 @retval EFI_OUT_OF_RESOURCES Not enough buffer to be allocated.
27 @retval EFI_DEVICE_ERROR Device error.
28 @retval EFI_WRITE_PROTECTED Write protected.
29 @retval EFI_NOT_FOUND Not found.
30 @retval EFI_INVALID_PARAMETER Invalid parameter.
31 @retval EFI_UNSUPPORTED This function not supported.
37 IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL
*This
,
38 IN UINT32 NumberOfFiles
,
39 IN EFI_FV_WRITE_POLICY WritePolicy
,
40 IN EFI_FV_WRITE_FILE_DATA
*FileData
43 return EFI_UNSUPPORTED
;