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