]> git.proxmox.com Git - mirror_edk2.git/blame - FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / FmpDevicePkg / Library / CapsuleUpdatePolicyLibNull / CapsuleUpdatePolicyLibNull.c
CommitLineData
a6d73269 1/** @file\r
403d4bcd
KM
2 Provides platform policy services used during a capsule update.\r
3\r
4 Copyright (c) 2016, Microsoft Corporation. All rights reserved.<BR>\r
5 Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>\r
6\r
bcef758c 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
403d4bcd
KM
8\r
9**/\r
10\r
11#include <PiDxe.h>\r
12#include <Library/CapsuleUpdatePolicyLib.h>\r
13\r
14/**\r
15 Determine if the system power state supports a capsule update.\r
16\r
17 @param[out] Good Returns TRUE if system power state supports a capsule\r
18 update. Returns FALSE if system power state does not\r
19 support a capsule update. Return value is only valid if\r
20 return status is EFI_SUCCESS.\r
21\r
22 @retval EFI_SUCCESS Good parameter has been updated with result.\r
23 @retval EFI_INVALID_PARAMETER Good is NULL.\r
24 @retval EFI_DEVICE_ERROR System power state can not be determined.\r
25\r
26**/\r
27EFI_STATUS\r
28EFIAPI\r
29CheckSystemPower (\r
30 OUT BOOLEAN *Good\r
31 )\r
32{\r
33 *Good = TRUE;\r
34 return EFI_SUCCESS;\r
35}\r
36\r
37/**\r
38 Determines if the system thermal state supports a capsule update.\r
39\r
40 @param[out] Good Returns TRUE if system thermal state supports a capsule\r
41 update. Returns FALSE if system thermal state does not\r
42 support a capsule update. Return value is only valid if\r
43 return status is EFI_SUCCESS.\r
44\r
45 @retval EFI_SUCCESS Good parameter has been updated with result.\r
46 @retval EFI_INVALID_PARAMETER Good is NULL.\r
47 @retval EFI_DEVICE_ERROR System thermal state can not be determined.\r
48\r
49**/\r
50EFI_STATUS\r
51EFIAPI\r
52CheckSystemThermal (\r
45ce0a67 53 OUT BOOLEAN *Good\r
403d4bcd
KM
54 )\r
55{\r
56 *Good = TRUE;\r
57 return EFI_SUCCESS;\r
58}\r
59\r
60/**\r
61 Determines if the system environment state supports a capsule update.\r
62\r
63 @param[out] Good Returns TRUE if system environment state supports a capsule\r
64 update. Returns FALSE if system environment state does not\r
65 support a capsule update. Return value is only valid if\r
66 return status is EFI_SUCCESS.\r
67\r
68 @retval EFI_SUCCESS Good parameter has been updated with result.\r
69 @retval EFI_INVALID_PARAMETER Good is NULL.\r
70 @retval EFI_DEVICE_ERROR System environment state can not be determined.\r
71\r
72**/\r
73EFI_STATUS\r
74EFIAPI\r
75CheckSystemEnvironment (\r
45ce0a67 76 OUT BOOLEAN *Good\r
403d4bcd
KM
77 )\r
78{\r
79 *Good = TRUE;\r
80 return EFI_SUCCESS;\r
81}\r
82\r
83/**\r
84 Determines if the Lowest Supported Version checks should be performed. The\r
85 expected result from this function is TRUE. A platform can choose to return\r
86 FALSE (e.g. during manufacturing or servicing) to allow a capsule update to a\r
87 version below the current Lowest Supported Version.\r
88\r
89 @retval TRUE The lowest supported version check is required.\r
90 @retval FALSE Do not perform lowest support version check.\r
91\r
92**/\r
93BOOLEAN\r
94EFIAPI\r
95IsLowestSupportedVersionCheckRequired (\r
96 VOID\r
97 )\r
98{\r
99 return TRUE;\r
100}\r
101\r
102/**\r
103 Determines if the FMP device should be locked when the event specified by\r
104 PcdFmpDeviceLockEventGuid is signaled. The expected result from this function\r
105 is TRUE so the FMP device is always locked. A platform can choose to return\r
106 FALSE (e.g. during manufacturing) to allow FMP devices to remain unlocked.\r
107\r
108 @retval TRUE The FMP device lock action is required at lock event guid.\r
109 @retval FALSE Do not perform FMP device lock at lock event guid.\r
110\r
111**/\r
112BOOLEAN\r
113EFIAPI\r
114IsLockFmpDeviceAtLockEventGuidRequired (\r
115 VOID\r
116 )\r
117{\r
118 return TRUE;\r
119}\r