TianoCore EDK2 master
Loading...
Searching...
No Matches
VariableSupport.h
Go to the documentation of this file.
1
12#ifndef __VARIABLE_SUPPORT_H__
13#define __VARIABLE_SUPPORT_H__
14
18#define DEFAULT_VERSION 0x1
19#define DEFAULT_LOWESTSUPPORTEDVERSION 0x0
20#define DEFAULT_LASTATTEMPTSTATUS 0x0
21#define DEFAULT_LASTATTEMPTVERSION 0x0
22
27#define VARNAME_VERSION L"FmpVersion"
28#define VARNAME_LSV L"FmpLsv"
29#define VARNAME_LASTATTEMPTSTATUS L"LastAttemptStatus"
30#define VARNAME_LASTATTEMPTVERSION L"LastAttemptVersion"
31
38#define VARNAME_FMPSTATE L"FmpState"
39
44typedef struct {
45 BOOLEAN VersionValid;
46 BOOLEAN LsvValid;
47 BOOLEAN LastAttemptStatusValid;
48 BOOLEAN LastAttemptVersionValid;
49 UINT32 Version;
50 UINT32 Lsv;
51 UINT32 LastAttemptStatus;
52 UINT32 LastAttemptVersion;
54
79VOID
82 );
83
97UINT32
100 );
101
116UINT32
119 );
120
134UINT32
137 );
138
152UINT32
155 );
156
166VOID
169 IN UINT32 Version
170 );
171
183VOID
186 IN UINT32 LowestSupportedVersion
187 );
188
200VOID
203 IN UINT32 LastAttemptStatus
204 );
205
217VOID
220 IN UINT32 LastAttemptVersion
221 );
222
236 );
237
238#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
UINT32 GetLastAttemptStatusFromVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private)
VOID SetVersionInVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private, IN UINT32 Version)
UINT32 GetLastAttemptVersionFromVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private)
UINT32 GetLowestSupportedVersionFromVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private)
VOID SetLowestSupportedVersionInVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private, IN UINT32 LowestSupportedVersion)
VOID GenerateFmpVariableNames(IN OUT FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private)
EFI_STATUS LockAllFmpVariables(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private)
UINT32 GetVersionFromVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private)
VOID SetLastAttemptStatusInVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private, IN UINT32 LastAttemptStatus)
VOID SetLastAttemptVersionInVariable(IN FIRMWARE_MANAGEMENT_PRIVATE_DATA *Private, IN UINT32 LastAttemptVersion)