/** @file\r
TCG MOR (Memory Overwrite Request) Control Driver.\r
\r
- This driver initilize MemoryOverwriteRequestControl variable. It \r
+ This driver initilize MemoryOverwriteRequestControl variable. It\r
will clear MOR_CLEAR_MEMORY_BIT bit if it is set. It will also do TPer Reset for\r
those encrypted drives through EFI_STORAGE_SECURITY_COMMAND_PROTOCOL at EndOfDxe.\r
\r
-Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
+Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
{\r
EFI_STATUS Status;\r
UINTN DataSize;\r
- \r
+\r
if (MOR_CLEAR_MEMORY_VALUE (mMorControl) == 0x0) {\r
//\r
// MorControl is expected, directly return to avoid unnecessary variable operation\r
// Clear MOR_CLEAR_MEMORY_BIT\r
//\r
DEBUG ((EFI_D_INFO, "TcgMor: Clear MorClearMemory bit\n"));\r
- mMorControl &= 0xFE; \r
+ mMorControl &= 0xFE;\r
\r
DataSize = sizeof (mMorControl);\r
Status = gRT->SetVariable (\r
- MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME, \r
- &gEfiMemoryOverwriteControlDataGuid, \r
+ MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME,\r
+ &gEfiMemoryOverwriteControlDataGuid,\r
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
- DataSize, \r
+ DataSize,\r
&mMorControl\r
);\r
if (EFI_ERROR (Status)) {\r
@param[in] ImageHandle Image handle of this driver.\r
@param[in] SystemTable A Pointer to the EFI System Table.\r
\r
- @retval EFI_SUCEESS \r
+ @retval EFI_SUCEESS\r
@return Others Some error occurs.\r
**/\r
EFI_STATUS\r
\r
DataSize = sizeof (mMorControl);\r
Status = gRT->GetVariable (\r
- MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME, \r
- &gEfiMemoryOverwriteControlDataGuid, \r
- NULL, \r
- &DataSize, \r
+ MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME,\r
+ &gEfiMemoryOverwriteControlDataGuid,\r
+ NULL,\r
+ &DataSize,\r
&mMorControl\r
);\r
if (EFI_ERROR (Status)) {\r
//\r
mMorControl = 0;\r
Status = gRT->SetVariable (\r
- MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME, \r
- &gEfiMemoryOverwriteControlDataGuid, \r
+ MEMORY_OVERWRITE_REQUEST_VARIABLE_NAME,\r
+ &gEfiMemoryOverwriteControlDataGuid,\r
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
- DataSize, \r
+ DataSize,\r
&mMorControl\r
);\r
DEBUG ((EFI_D_INFO, "TcgMor: Create MOR variable! Status = %r\n", Status));\r