]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVol / FwVolWrite.c
1 /** @file
2 Implements functions to write firmware file
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include "DxeMain.h"
10 #include "FwVolDriver.h"
11
12
13 /**
14 Writes one or more files to the firmware volume.
15
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.
24
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.
32
33 **/
34 EFI_STATUS
35 EFIAPI
36 FvWriteFile (
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
41 )
42 {
43 return EFI_UNSUPPORTED;
44 }
45
46