]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c
Use TmpStr as a backup, as StrCpy in BaseLib does not handle copy of two strings
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / FwVol / FwVolWrite.c
CommitLineData
23c98c94 1/** @file\r
504214c4 2 Implements functions to write firmware file\r
28a00297 3\r
23c98c94 4Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
5All rights reserved. This 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
28a00297 12\r
504214c4 13**/\r
28a00297 14\r
15#include <DxeMain.h>\r
16\r
17\r
162ed594 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
28a00297 40EFI_STATUS\r
41EFIAPI\r
42FvWriteFile (\r
0c2b5da8 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
28a00297 47 )\r
28a00297 48{ \r
49 return EFI_UNSUPPORTED;\r
50}\r
51\r
162ed594 52\r