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