MdeModulePkg/DxeCapsuleLibFmp: Add DxeCapsuleLibFmp instance.
[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 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16
17 #include <PiDxe.h>
18 #include <Protocol/FirmwareManagement.h>
19 #include <Guid/FmpCapsule.h>
20 #include <Library/CapsuleLib.h>
21
22 /**
23 Check if this FMP capsule is processed.
24
25 @param[in] CapsuleHeader The capsule image header
26 @param[in] PayloadIndex FMP payload index
27 @param[in] ImageHeader FMP image header
28
29 @retval TRUE This FMP capsule is processed.
30 @retval FALSE This FMP capsule is not processed.
31 **/
32 BOOLEAN
33 IsFmpCapsuleProcessed (
34 IN EFI_CAPSULE_HEADER *CapsuleHeader,
35 IN UINTN PayloadIndex,
36 IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *ImageHeader
37 )
38 {
39 return FALSE;
40 }
41
42 /**
43 Record capsule status variable and to local cache.
44
45 @param[in] CapsuleHeader The capsule image header
46 @param[in] CapsuleStatus The capsule process stauts
47
48 @retval EFI_SUCCESS The capsule status variable is recorded.
49 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
50 **/
51 EFI_STATUS
52 RecordCapsuleStatusVariable (
53 IN EFI_CAPSULE_HEADER *CapsuleHeader,
54 IN EFI_STATUS CapsuleStatus
55 )
56 {
57 return EFI_UNSUPPORTED;
58 }
59
60 /**
61 Record FMP capsule status variable and to local cache.
62
63 @param[in] CapsuleHeader The capsule image header
64 @param[in] CapsuleStatus The capsule process stauts
65 @param[in] PayloadIndex FMP payload index
66 @param[in] ImageHeader FMP image header
67
68 @retval EFI_SUCCESS The capsule status variable is recorded.
69 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
70 **/
71 EFI_STATUS
72 RecordFmpCapsuleStatusVariable (
73 IN EFI_CAPSULE_HEADER *CapsuleHeader,
74 IN EFI_STATUS CapsuleStatus,
75 IN UINTN PayloadIndex,
76 IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *ImageHeader
77 )
78 {
79 return EFI_UNSUPPORTED;
80 }
81
82 /**
83 Initialize capsule related variables.
84 **/
85 VOID
86 InitCapsuleVariable (
87 VOID
88 )
89 {
90 return;
91 }