]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleReportLibNull.c
IntelSiliconPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Library / DxeCapsuleLibFmp / DxeCapsuleReportLibNull.c
CommitLineData
d2a16030
JY
1/** @file\r
2 DXE capsule report related function.\r
3 Dummy function for runtime module, because CapsuleDxeRuntime\r
4 does not need record capsule status variable.\r
5\r
6 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
7 This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15**/\r
16\r
17#include <PiDxe.h>\r
18#include <Protocol/FirmwareManagement.h>\r
19#include <Guid/FmpCapsule.h>\r
20#include <Library/CapsuleLib.h>\r
21\r
d2a16030
JY
22/**\r
23 Record capsule status variable and to local cache.\r
24\r
25 @param[in] CapsuleHeader The capsule image header\r
26 @param[in] CapsuleStatus The capsule process stauts\r
27\r
28 @retval EFI_SUCCESS The capsule status variable is recorded.\r
29 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.\r
30**/\r
31EFI_STATUS\r
32RecordCapsuleStatusVariable (\r
33 IN EFI_CAPSULE_HEADER *CapsuleHeader,\r
34 IN EFI_STATUS CapsuleStatus\r
35 )\r
36{\r
37 return EFI_UNSUPPORTED;\r
38}\r
39\r
40/**\r
41 Record FMP capsule status variable and to local cache.\r
42\r
43 @param[in] CapsuleHeader The capsule image header\r
44 @param[in] CapsuleStatus The capsule process stauts\r
45 @param[in] PayloadIndex FMP payload index\r
46 @param[in] ImageHeader FMP image header\r
8f6db161 47 @param[in] FmpDevicePath DevicePath associated with the FMP producer\r
d2a16030
JY
48\r
49 @retval EFI_SUCCESS The capsule status variable is recorded.\r
50 @retval EFI_OUT_OF_RESOURCES No resource to record the capsule status variable.\r
51**/\r
52EFI_STATUS\r
53RecordFmpCapsuleStatusVariable (\r
54 IN EFI_CAPSULE_HEADER *CapsuleHeader,\r
55 IN EFI_STATUS CapsuleStatus,\r
56 IN UINTN PayloadIndex,\r
8f6db161
JY
57 IN EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *ImageHeader,\r
58 IN EFI_DEVICE_PATH_PROTOCOL *FmpDevicePath OPTIONAL\r
d2a16030
JY
59 )\r
60{\r
61 return EFI_UNSUPPORTED;\r
62}\r
63\r
64/**\r
65 Initialize capsule related variables.\r
66**/\r
67VOID\r
68InitCapsuleVariable (\r
69 VOID\r
70 )\r
71{\r
72 return;\r
73}\r