X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FFwVol%2FFwVolWrite.c;h=1ec563c8655e9a885c7b385ad4e372883c2cc532;hb=c5b900bed8bab2f16149c48f11c525690611b33d;hp=a053a96d43c7c4d59a9be49e64f2e102c7205b5f;hpb=504214c4870e9183418014634268ce630eb5332a;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c b/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c index a053a96d43..1ec563c865 100644 --- a/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c +++ b/MdeModulePkg/Core/Dxe/FwVol/FwVolWrite.c @@ -1,21 +1,42 @@ -/** @file - +/** @file Implements functions to write firmware file -Copyright (c) 2006 - 2008, Intel Corporation -All rights reserved. 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. +Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+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 +#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 ( @@ -24,31 +45,8 @@ FvWriteFile ( IN EFI_FV_WRITE_POLICY WritePolicy, IN EFI_FV_WRITE_FILE_DATA *FileData ) -/*++ - - Routine Description: - Writes one or more files to the firmware volume. - - Arguments: - This - Indicates the calling context. - NumberOfFiles - Number of files. - 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. - FileData - FileData is an pointer to an array of EFI_FV_WRITE_DATA. - Each element of FileData[] represents a file to be written. - - Returns: - EFI_SUCCESS - Files successfully written to firmware volume - EFI_OUT_OF_RESOURCES - Not enough buffer to be allocated. - EFI_DEVICE_ERROR - Device error. - EFI_WRITE_PROTECTED - Write protected. - EFI_NOT_FOUND - Not found. - EFI_INVALID_PARAMETER - Invalid parameter. - EFI_UNSUPPORTED - This function not supported. - ---*/ -{ +{ return EFI_UNSUPPORTED; } +