]>
Commit | Line | Data |
---|---|---|
23c98c94 | 1 | /** @file\r |
504214c4 | 2 | Implements functions to write firmware file\r |
28a00297 | 3 | \r |
23c98c94 | 4 | Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
28a00297 | 12 | \r |
504214c4 | 13 | **/\r |
28a00297 | 14 | \r |
9c4ac31c | 15 | #include "DxeMain.h"\r |
ec90508b | 16 | #include "FwVolDriver.h"\r |
28a00297 | 17 | \r |
162ed594 | 18 | \r |
19 | /**\r | |
20 | Writes one or more files to the firmware volume.\r | |
21 | \r | |
022c6d45 | 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 | |
162ed594 | 28 | EFI_FV_WRITE_DATA. Each element of array\r |
022c6d45 | 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 | |
162ed594 | 37 | @retval EFI_UNSUPPORTED This function not supported.\r |
38 | \r | |
39 | **/\r | |
28a00297 | 40 | EFI_STATUS\r |
41 | EFIAPI\r | |
42 | FvWriteFile (\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 |
022c6d45 | 48 | {\r |
28a00297 | 49 | return EFI_UNSUPPORTED;\r |
50 | }\r | |
51 | \r | |
162ed594 | 52 | \r |