]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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 Writes one or more files to the firmware volume.
14
15 @param This Indicates the calling context.
16 @param NumberOfFiles Number of files.
17 @param WritePolicy WritePolicy indicates the level of reliability
18 for the write in the event of a power failure or
19 other system failure during the write operation.
20 @param FileData FileData is an pointer to an array of
21 EFI_FV_WRITE_DATA. Each element of array
22 FileData represents a file to be written.
23
24 @retval EFI_SUCCESS Files successfully written to firmware volume
25 @retval EFI_OUT_OF_RESOURCES Not enough buffer to be allocated.
26 @retval EFI_DEVICE_ERROR Device error.
27 @retval EFI_WRITE_PROTECTED Write protected.
28 @retval EFI_NOT_FOUND Not found.
29 @retval EFI_INVALID_PARAMETER Invalid parameter.
30 @retval EFI_UNSUPPORTED This function not supported.
31
32 **/
33 EFI_STATUS
34 EFIAPI
35 FvWriteFile (
36 IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
37 IN UINT32 NumberOfFiles,
38 IN EFI_FV_WRITE_POLICY WritePolicy,
39 IN EFI_FV_WRITE_FILE_DATA *FileData
40 )
41 {
42 return EFI_UNSUPPORTED;
43 }