]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLibNull.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[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, 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
43 @retval EFI_SUCCESS The capsule status variable is recorded.
44 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
45 **/
46 EFI_STATUS
47 RecordFmpCapsuleStatusVariable (
48 IN EFI_CAPSULE_HEADER *CapsuleHeader,
49 IN EFI_STATUS CapsuleStatus,
50 IN UINTN PayloadIndex,
51 IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *ImageHeader,
52 IN EFI_DEVICE_PATH_PROTOCOL *FmpDevicePath OPTIONAL
53 )
54 {
55 return EFI_UNSUPPORTED;
56 }
57
58 /**
59 Initialize capsule related variables.
60 **/
61 VOID
62 InitCapsuleVariable (
63 VOID
64 )
65 {
66 return;
67 }