]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLibNull.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Library / DxeCapsuleLibFmp / DxeCapsuleReportLibNull.c
1 /** @file
2 DXE capsule report related function.
3 Dummy function for runtime module, because CapsuleDxeRuntime
4 does not need record capsule status variable.
5
6 Copyright (c) 2016 - 2019, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #include <PiDxe.h>
12 #include <Protocol/FirmwareManagement.h>
13 #include <Guid/FmpCapsule.h>
14 #include <Library/CapsuleLib.h>
15
16 /**
17 Record capsule status variable and to local cache.
18
19 @param[in] CapsuleHeader The capsule image header
20 @param[in] CapsuleStatus The capsule process stauts
21
22 @retval EFI_SUCCESS The capsule status variable is recorded.
23 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
24 **/
25 EFI_STATUS
26 RecordCapsuleStatusVariable (
27 IN EFI_CAPSULE_HEADER *CapsuleHeader,
28 IN EFI_STATUS CapsuleStatus
29 )
30 {
31 return EFI_UNSUPPORTED;
32 }
33
34 /**
35 Record FMP capsule status variable and to local cache.
36
37 @param[in] CapsuleHeader The capsule image header
38 @param[in] CapsuleStatus The capsule process stauts
39 @param[in] PayloadIndex FMP payload index
40 @param[in] ImageHeader FMP image header
41 @param[in] FmpDevicePath DevicePath associated with the FMP producer
42 @param[in] CapFileName Capsule file name
43
44 @retval EFI_SUCCESS The capsule status variable is recorded.
45 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
46 **/
47 EFI_STATUS
48 RecordFmpCapsuleStatusVariable (
49 IN EFI_CAPSULE_HEADER *CapsuleHeader,
50 IN EFI_STATUS CapsuleStatus,
51 IN UINTN PayloadIndex,
52 IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *ImageHeader,
53 IN EFI_DEVICE_PATH_PROTOCOL *FmpDevicePath OPTIONAL,
54 IN CHAR16 *CapFileName OPTIONAL
55 )
56 {
57 return EFI_UNSUPPORTED;
58 }
59
60 /**
61 Initialize capsule related variables.
62 **/
63 VOID
64 InitCapsuleVariable (
65 VOID
66 )
67 {
68 return;
69 }