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   Record capsule status variable and to local cache.
24 
25   @param[in] CapsuleHeader  The capsule image header
26   @param[in] CapsuleStatus  The capsule process stauts
27 
28   @retval EFI_SUCCESS          The capsule status variable is recorded.
29   @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
30 **/
31 EFI_STATUS
RecordCapsuleStatusVariable(IN EFI_CAPSULE_HEADER * CapsuleHeader,IN EFI_STATUS CapsuleStatus)32 RecordCapsuleStatusVariable (
33   IN EFI_CAPSULE_HEADER                           *CapsuleHeader,
34   IN EFI_STATUS                                   CapsuleStatus
35   )
36 {
37   return EFI_UNSUPPORTED;
38 }
39 
40 /**
41   Record FMP capsule status variable and to local cache.
42 
43   @param[in] CapsuleHeader  The capsule image header
44   @param[in] CapsuleStatus  The capsule process stauts
45   @param[in] PayloadIndex   FMP payload index
46   @param[in] ImageHeader    FMP image header
47   @param[in] FmpDevicePath  DevicePath associated with the FMP producer
48 
49   @retval EFI_SUCCESS          The capsule status variable is recorded.
50   @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.
51 **/
52 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)53 RecordFmpCapsuleStatusVariable (
54   IN EFI_CAPSULE_HEADER                            *CapsuleHeader,
55   IN EFI_STATUS                                    CapsuleStatus,
56   IN UINTN                                         PayloadIndex,
57   IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER  *ImageHeader,
58   IN EFI_DEVICE_PATH_PROTOCOL                      *FmpDevicePath OPTIONAL
59   )
60 {
61   return EFI_UNSUPPORTED;
62 }
63 
64 /**
65   Initialize capsule related variables.
66 **/
67 VOID
InitCapsuleVariable(VOID)68 InitCapsuleVariable (
69   VOID
70   )
71 {
72   return;
73 }
74