]>
Commit | Line | Data |
---|---|---|
23c98c94 | 1 | /** @file\r |
504214c4 | 2 | Implements functions to write firmware file\r |
28a00297 | 3 | \r |
cd5ebaa0 | 4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
28a00297 | 6 | \r |
504214c4 | 7 | **/\r |
28a00297 | 8 | \r |
9c4ac31c | 9 | #include "DxeMain.h"\r |
ec90508b | 10 | #include "FwVolDriver.h"\r |
28a00297 | 11 | \r |
162ed594 | 12 | /**\r |
13 | Writes one or more files to the firmware volume.\r | |
14 | \r | |
022c6d45 | 15 | @param This Indicates the calling context.\r |
16 | @param NumberOfFiles Number of files.\r | |
17 | @param WritePolicy WritePolicy indicates the level of reliability\r | |
18 | for the write in the event of a power failure or\r | |
19 | other system failure during the write operation.\r | |
20 | @param FileData FileData is an pointer to an array of\r | |
162ed594 | 21 | EFI_FV_WRITE_DATA. Each element of array\r |
022c6d45 | 22 | FileData represents a file to be written.\r |
23 | \r | |
24 | @retval EFI_SUCCESS Files successfully written to firmware volume\r | |
25 | @retval EFI_OUT_OF_RESOURCES Not enough buffer to be allocated.\r | |
26 | @retval EFI_DEVICE_ERROR Device error.\r | |
27 | @retval EFI_WRITE_PROTECTED Write protected.\r | |
28 | @retval EFI_NOT_FOUND Not found.\r | |
29 | @retval EFI_INVALID_PARAMETER Invalid parameter.\r | |
162ed594 | 30 | @retval EFI_UNSUPPORTED This function not supported.\r |
31 | \r | |
32 | **/\r | |
28a00297 | 33 | EFI_STATUS\r |
34 | EFIAPI\r | |
35 | FvWriteFile (\r | |
0c2b5da8 | 36 | IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,\r |
37 | IN UINT32 NumberOfFiles,\r | |
38 | IN EFI_FV_WRITE_POLICY WritePolicy,\r | |
39 | IN EFI_FV_WRITE_FILE_DATA *FileData\r | |
28a00297 | 40 | )\r |
022c6d45 | 41 | {\r |
28a00297 | 42 | return EFI_UNSUPPORTED;\r |
43 | }\r |