Subrata Banik | 20fe24b | 2021-12-09 02:46:38 +0530 | [diff] [blame] | 1 | /** @file |
| 2 | Support for Microsoft Secure MOR implementation, defined at |
| 3 | Microsoft Secure MOR implementation. |
| 4 | https://msdn.microsoft.com/en-us/library/windows/hardware/mt270973(v=vs.85).aspx |
| 5 | |
| 6 | Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> |
| 7 | SPDX-License-Identifier: BSD-2-Clause-Patent |
| 8 | |
| 9 | **/ |
| 10 | |
| 11 | #ifndef __MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_H__ |
| 12 | #define __MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_H__ |
| 13 | |
| 14 | #define MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_GUID \ |
| 15 | { \ |
| 16 | 0xBB983CCF, 0x151D, 0x40E1, {0xA0, 0x7B, 0x4A, 0x17, 0xBE, 0x16, 0x82, 0x92} \ |
| 17 | } |
| 18 | |
| 19 | #define MEMORY_OVERWRITE_REQUEST_CONTROL_LOCK_NAME L"MemoryOverwriteRequestControlLock" |
| 20 | |
| 21 | // |
| 22 | // VendorGuid: {BB983CCF-151D-40E1-A07B-4A17BE168292} |
| 23 | // Name: MemoryOverwriteRequestControlLock |
| 24 | // Attributes: NV+BS+RT |
| 25 | // GetVariable value in Data parameter: 0x0 (unlocked); 0x1 (locked without key); 0x2 (locked with key) |
| 26 | // SetVariable value in Data parameter: 0x0 (unlocked); 0x1 (locked); |
| 27 | // Revision 2 additionally accepts an 8-byte value that represents a shared secret key. |
| 28 | // |
| 29 | |
| 30 | // |
| 31 | // Note: Setting MemoryOverwriteRequestControlLock does not commit to flash (just changes the internal lock state). |
| 32 | // Getting the variable returns the internal state and never exposes the key. |
| 33 | // |
| 34 | |
| 35 | extern EFI_GUID gEfiMemoryOverwriteRequestControlLockGuid; |
| 36 | |
| 37 | #endif |