TianoCore EDK2 master
Loading...
Searching...
No Matches
CapsuleUpdatePolicyLibOnProtocol.c
Go to the documentation of this file.
1
14#include <PiDxe.h>
16#include <Library/DebugLib.h>
19
25
29BOOLEAN
31 VOID
32 )
33{
34 EFI_STATUS Status;
35
37 return TRUE;
38 }
39
40 Status = gBS->LocateProtocol (
41 &gEdkiiCapsuleUpdatePolicyProtocolGuid,
42 NULL,
43 (VOID **)&mCapsuleUpdatePolicy
44 );
45 if (EFI_ERROR (Status)) {
47 return FALSE;
48 }
49
50 return TRUE;
51}
52
67EFIAPI
69 OUT BOOLEAN *Good
70 )
71{
73 return mCapsuleUpdatePolicy->CheckSystemPower (mCapsuleUpdatePolicy, Good);
74 }
75
76 *Good = TRUE;
77 return EFI_SUCCESS;
78}
79
94EFIAPI
96 OUT BOOLEAN *Good
97 )
98{
100 return mCapsuleUpdatePolicy->CheckSystemThermal (mCapsuleUpdatePolicy, Good);
101 }
102
103 *Good = TRUE;
104 return EFI_SUCCESS;
105}
106
121EFIAPI
123 OUT BOOLEAN *Good
124 )
125{
127 return mCapsuleUpdatePolicy->CheckSystemEnvironment (mCapsuleUpdatePolicy, Good);
128 }
129
130 *Good = TRUE;
131 return EFI_SUCCESS;
132}
133
144BOOLEAN
145EFIAPI
147 VOID
148 )
149{
151 return mCapsuleUpdatePolicy->IsLowestSupportedVersionCheckRequired (mCapsuleUpdatePolicy);
152 }
153
154 return TRUE;
155}
156
167BOOLEAN
168EFIAPI
170 VOID
171 )
172{
174 return mCapsuleUpdatePolicy->IsLockFmpDeviceAtLockEventGuidRequired (mCapsuleUpdatePolicy);
175 }
176
177 return TRUE;
178}
EFI_STATUS EFIAPI CheckSystemThermal(OUT BOOLEAN *Good)
BOOLEAN EFIAPI IsLowestSupportedVersionCheckRequired(VOID)
EFI_STATUS EFIAPI CheckSystemPower(OUT BOOLEAN *Good)
BOOLEAN EFIAPI IsLockFmpDeviceAtLockEventGuidRequired(VOID)
EFI_STATUS EFIAPI CheckSystemEnvironment(OUT BOOLEAN *Good)
EDKII_CAPSULE_UPDATE_POLICY_PROTOCOL * mCapsuleUpdatePolicy
BOOLEAN LookupCapsuleUpdatePolicyProtocol(VOID)
#define NULL
Definition: Base.h:319
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
EFI_BOOT_SERVICES * gBS