mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-27 16:58:09 +01:00
53 lines
1.9 KiB
C
53 lines
1.9 KiB
C
|
/** @file
|
||
|
Implements functions to write firmware file
|
||
|
|
||
|
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
||
|
This program and the accompanying materials
|
||
|
are licensed and made available under the terms and conditions of the BSD License
|
||
|
which accompanies this distribution. The full text of the license may be found at
|
||
|
http://opensource.org/licenses/bsd-license.php
|
||
|
|
||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||
|
|
||
|
**/
|
||
|
|
||
|
#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;
|
||
|
}
|
||
|
|
||
|
|