]>
git.proxmox.com Git - mirror_edk2.git/blob - FmpDevicePkg/Include/Library/CapsuleUpdatePolicyLib.h
2 Provides platform policy services used during a capsule update.
4 Copyright (c) 2016, Microsoft Corporation. All rights reserved.<BR>
5 Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __CAPSULE_UPDATE_POLICY_LIB__
12 #define __CAPSULE_UPDATE_POLICY_LIB__
15 Determine if the system power state supports a capsule update.
17 @param[out] Good Returns TRUE if system power state supports a capsule
18 update. Returns FALSE if system power state does not
19 support a capsule update. Return value is only valid if
20 return status is EFI_SUCCESS.
22 @retval EFI_SUCCESS Good parameter has been updated with result.
23 @retval EFI_INVALID_PARAMETER Good is NULL.
24 @retval EFI_DEVICE_ERROR System power state can not be determined.
34 Determines if the system thermal state supports a capsule update.
36 @param[out] Good Returns TRUE if system thermal state supports a capsule
37 update. Returns FALSE if system thermal state does not
38 support a capsule update. Return value is only valid if
39 return status is EFI_SUCCESS.
41 @retval EFI_SUCCESS Good parameter has been updated with result.
42 @retval EFI_INVALID_PARAMETER Good is NULL.
43 @retval EFI_DEVICE_ERROR System thermal state can not be determined.
53 Determines if the system environment state supports a capsule update.
55 @param[out] Good Returns TRUE if system environment state supports a capsule
56 update. Returns FALSE if system environment state does not
57 support a capsule update. Return value is only valid if
58 return status is EFI_SUCCESS.
60 @retval EFI_SUCCESS Good parameter has been updated with result.
61 @retval EFI_INVALID_PARAMETER Good is NULL.
62 @retval EFI_DEVICE_ERROR System environment state can not be determined.
67 CheckSystemEnvironment (
72 Determines if the Lowest Supported Version checks should be performed. The
73 expected result from this function is TRUE. A platform can choose to return
74 FALSE (e.g. during manufacturing or servicing) to allow a capsule update to a
75 version below the current Lowest Supported Version.
77 @retval TRUE The lowest supported version check is required.
78 @retval FALSE Do not perform lowest support version check.
83 IsLowestSupportedVersionCheckRequired (
88 Determines if the FMP device should be locked when the event specified by
89 PcdFmpDeviceLockEventGuid is signaled. The expected result from this function
90 is TRUE so the FMP device is always locked. A platform can choose to return
91 FALSE (e.g. during manufacturing) to allow FMP devices to remain unlocked.
93 @retval TRUE The FMP device lock action is required at lock event guid.
94 @retval FALSE Do not perform FMP device lock at lock event guid.
99 IsLockFmpDeviceAtLockEventGuidRequired (