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