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