https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  Implements functions to write firmware file
 | 
						|
 | 
						|
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
 | 
						|
SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
#include "DxeMain.h"
 | 
						|
#include "FwVolDriver.h"
 | 
						|
 | 
						|
 | 
						|
/**
 | 
						|
  Writes one or more files to the firmware volume.
 | 
						|
 | 
						|
  @param  This                   Indicates the calling context.
 | 
						|
  @param  NumberOfFiles          Number of files.
 | 
						|
  @param  WritePolicy            WritePolicy indicates the level of reliability
 | 
						|
                                 for the write in the event of a power failure or
 | 
						|
                                 other system failure during the write operation.
 | 
						|
  @param  FileData               FileData is an pointer to an array of
 | 
						|
                                 EFI_FV_WRITE_DATA. Each element of array
 | 
						|
                                 FileData represents a file to be written.
 | 
						|
 | 
						|
  @retval EFI_SUCCESS            Files successfully written to firmware volume
 | 
						|
  @retval EFI_OUT_OF_RESOURCES   Not enough buffer to be allocated.
 | 
						|
  @retval EFI_DEVICE_ERROR       Device error.
 | 
						|
  @retval EFI_WRITE_PROTECTED    Write protected.
 | 
						|
  @retval EFI_NOT_FOUND          Not found.
 | 
						|
  @retval EFI_INVALID_PARAMETER  Invalid parameter.
 | 
						|
  @retval EFI_UNSUPPORTED        This function not supported.
 | 
						|
 | 
						|
**/
 | 
						|
EFI_STATUS
 | 
						|
EFIAPI
 | 
						|
FvWriteFile (
 | 
						|
  IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL  *This,
 | 
						|
  IN       UINT32                         NumberOfFiles,
 | 
						|
  IN       EFI_FV_WRITE_POLICY            WritePolicy,
 | 
						|
  IN       EFI_FV_WRITE_FILE_DATA         *FileData
 | 
						|
  )
 | 
						|
{
 | 
						|
  return EFI_UNSUPPORTED;
 | 
						|
}
 | 
						|
 | 
						|
 |