]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c
MdeModulePkg DxeCore: Fix issue to print GUID value %g without pointer
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVol / FwVolWrite.c
... / ...
CommitLineData
1/** @file\r
2 Implements functions to write firmware file\r
3\r
4Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#include "DxeMain.h"\r
16#include "FwVolDriver.h"\r
17\r
18\r
19/**\r
20 Writes one or more files to the firmware volume.\r
21\r
22 @param This Indicates the calling context.\r
23 @param NumberOfFiles Number of files.\r
24 @param WritePolicy WritePolicy indicates the level of reliability\r
25 for the write in the event of a power failure or\r
26 other system failure during the write operation.\r
27 @param FileData FileData is an pointer to an array of\r
28 EFI_FV_WRITE_DATA. Each element of array\r
29 FileData represents a file to be written.\r
30\r
31 @retval EFI_SUCCESS Files successfully written to firmware volume\r
32 @retval EFI_OUT_OF_RESOURCES Not enough buffer to be allocated.\r
33 @retval EFI_DEVICE_ERROR Device error.\r
34 @retval EFI_WRITE_PROTECTED Write protected.\r
35 @retval EFI_NOT_FOUND Not found.\r
36 @retval EFI_INVALID_PARAMETER Invalid parameter.\r
37 @retval EFI_UNSUPPORTED This function not supported.\r
38\r
39**/\r
40EFI_STATUS\r
41EFIAPI\r
42FvWriteFile (\r
43 IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r
44 IN UINT32 NumberOfFiles,\r
45 IN EFI_FV_WRITE_POLICY WritePolicy,\r
46 IN EFI_FV_WRITE_FILE_DATA *FileData\r
47 )\r
48{\r
49 return EFI_UNSUPPORTED;\r
50}\r
51\r
52\r