REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
		
			
				
	
	
		
			70 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  DXE capsule report related function.
 | 
						|
  Dummy function for runtime module, because CapsuleDxeRuntime
 | 
						|
  does not need record capsule status variable.
 | 
						|
 | 
						|
  Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
 | 
						|
  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
#include <PiDxe.h>
 | 
						|
#include <Protocol/FirmwareManagement.h>
 | 
						|
#include <Guid/FmpCapsule.h>
 | 
						|
#include <Library/CapsuleLib.h>
 | 
						|
 | 
						|
/**
 | 
						|
  Record capsule status variable and to local cache.
 | 
						|
 | 
						|
  @param[in] CapsuleHeader  The capsule image header
 | 
						|
  @param[in] CapsuleStatus  The capsule process stauts
 | 
						|
 | 
						|
  @retval EFI_SUCCESS          The capsule status variable is recorded.
 | 
						|
  @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
 | 
						|
**/
 | 
						|
EFI_STATUS
 | 
						|
RecordCapsuleStatusVariable (
 | 
						|
  IN EFI_CAPSULE_HEADER  *CapsuleHeader,
 | 
						|
  IN EFI_STATUS          CapsuleStatus
 | 
						|
  )
 | 
						|
{
 | 
						|
  return EFI_UNSUPPORTED;
 | 
						|
}
 | 
						|
 | 
						|
/**
 | 
						|
  Record FMP capsule status variable and to local cache.
 | 
						|
 | 
						|
  @param[in] CapsuleHeader  The capsule image header
 | 
						|
  @param[in] CapsuleStatus  The capsule process stauts
 | 
						|
  @param[in] PayloadIndex   FMP payload index
 | 
						|
  @param[in] ImageHeader    FMP image header
 | 
						|
  @param[in] FmpDevicePath  DevicePath associated with the FMP producer
 | 
						|
  @param[in] CapFileName    Capsule file name
 | 
						|
 | 
						|
  @retval EFI_SUCCESS          The capsule status variable is recorded.
 | 
						|
  @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
 | 
						|
**/
 | 
						|
EFI_STATUS
 | 
						|
RecordFmpCapsuleStatusVariable (
 | 
						|
  IN EFI_CAPSULE_HEADER                            *CapsuleHeader,
 | 
						|
  IN EFI_STATUS                                    CapsuleStatus,
 | 
						|
  IN UINTN                                         PayloadIndex,
 | 
						|
  IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER  *ImageHeader,
 | 
						|
  IN EFI_DEVICE_PATH_PROTOCOL                      *FmpDevicePath  OPTIONAL,
 | 
						|
  IN CHAR16                                        *CapFileName    OPTIONAL
 | 
						|
  )
 | 
						|
{
 | 
						|
  return EFI_UNSUPPORTED;
 | 
						|
}
 | 
						|
 | 
						|
/**
 | 
						|
  Initialize capsule related variables.
 | 
						|
**/
 | 
						|
VOID
 | 
						|
InitCapsuleVariable (
 | 
						|
  VOID
 | 
						|
  )
 | 
						|
{
 | 
						|
  return;
 | 
						|
}
 |