27 { MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_NAME, &gEfiMemoryOverwriteRequestControlLockGuid },
41 IN CHAR16 *VariableName,
47 for (Index = 0; Index <
sizeof (mMorVariableType)/
sizeof (mMorVariableType[0]); Index++) {
48 if ((
StrCmp (VariableName, mMorVariableType[Index].VariableName) == 0) &&
49 (
CompareGuid (VendorGuid, mMorVariableType[Index].VendorGuid)))
69 IN CHAR16 *VariableName,
73 if ((
StrCmp (VariableName, MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_NAME) == 0) &&
74 (
CompareGuid (VendorGuid, &gEfiMemoryOverwriteRequestControlLockGuid)))
111 IN CHAR16 *VariableName,
113 IN UINT32 Attributes,
118 UINTN MorLockDataSize;
129 MorLockDataSize =
sizeof (MorLock);
131 MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_NAME,
132 &gEfiMemoryOverwriteRequestControlLockGuid,
137 if (!EFI_ERROR (Status) && MorLock) {
141 return EFI_INVALID_PARAMETER;
147 if ((DataSize !=
sizeof (UINT8)) || (Data ==
NULL) || (Attributes == 0)) {
148 return EFI_INVALID_PARAMETER;
158 if ((*(UINT8 *)Data != 1) && (*(UINT8 *)Data != 0)) {
159 return EFI_INVALID_PARAMETER;
189 MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_NAME,
190 &gEfiMemoryOverwriteRequestControlLockGuid,
INTN EFIAPI StrCmp(IN CONST CHAR16 *FirstString, IN CONST CHAR16 *SecondString)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
EFI_STATUS InternalGetVariable(IN CONST CHAR16 *Name, IN CONST EFI_GUID *Guid, OUT VOID **Value, OUT UINTN *Size)
#define MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME
EFI_STATUS EFIAPI SetVariableCheckHandlerMor(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
BOOLEAN IsMorLockVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid)
BOOLEAN IsAnyMorVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid)
EFI_STATUS EFIAPI MorLockDriverInit(VOID)
EFI_STATUS EFIAPI InternalSetVariable(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
#define EFI_VARIABLE_NON_VOLATILE