TianoCore EDK2 master
Loading...
Searching...
No Matches
LockBoxLib.h
Go to the documentation of this file.
1
11#ifndef _LOCK_BOX_LIB_H_
12#define _LOCK_BOX_LIB_H_
13
29RETURN_STATUS
30EFIAPI
32 IN GUID *Guid,
33 IN VOID *Buffer,
34 IN UINTN Length
35 );
36
50RETURN_STATUS
51EFIAPI
53 IN GUID *Guid,
54 IN UINT64 Attributes
55 );
56
57//
58// With this flag, this LockBox can be restored to this Buffer
59// with RestoreAllLockBoxInPlace()
60//
61#define LOCK_BOX_ATTRIBUTE_RESTORE_IN_PLACE BIT0
62//
63// With this flag, this LockBox can be restored in S3 resume only.
64// This LockBox can not be restored after SmmReadyToLock in normal boot
65// and after EndOfS3Resume in S3 resume.
66// It can not be set together with LOCK_BOX_ATTRIBUTE_RESTORE_IN_PLACE.
67//
68#define LOCK_BOX_ATTRIBUTE_RESTORE_IN_S3_ONLY BIT1
69
89RETURN_STATUS
90EFIAPI
92 IN GUID *Guid,
93 IN UINTN Offset,
94 IN VOID *Buffer,
95 IN UINTN Length
96 );
97
116RETURN_STATUS
117EFIAPI
119 IN GUID *Guid,
120 IN VOID *Buffer OPTIONAL,
121 IN OUT UINTN *Length OPTIONAL
122 );
123
131RETURN_STATUS
132EFIAPI
134 VOID
135 );
136
137#endif
UINT64 UINTN
RETURN_STATUS EFIAPI SetLockBoxAttributes(IN GUID *Guid, IN UINT64 Attributes)
RETURN_STATUS EFIAPI RestoreLockBox(IN GUID *Guid, IN VOID *Buffer OPTIONAL, IN OUT UINTN *Length OPTIONAL)
RETURN_STATUS EFIAPI RestoreAllLockBoxInPlace(VOID)
RETURN_STATUS EFIAPI UpdateLockBox(IN GUID *Guid, IN UINTN Offset, IN VOID *Buffer, IN UINTN Length)
RETURN_STATUS EFIAPI SaveLockBox(IN GUID *Guid, IN VOID *Buffer, IN UINTN Length)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
Definition: Base.h:213