]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/TcgConfigDxe/TcgConfigImpl.c
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / Tcg / TcgConfigDxe / TcgConfigImpl.c
index 7fa5611cfd9476f3d0010df977216f9e6ca6fab0..a306bbbb5c96f6f231b8c62f7d540d497a778362 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   HII Config Access protocol implementation of TCG configuration module.\r
 \r
-Copyright (c) 2011 - 2016, 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) 2011 - 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
@@ -40,7 +40,7 @@ HII_VENDOR_DEVICE_PATH          mTcgHiiVendorDevicePath = {
   {\r
     END_DEVICE_PATH_TYPE,\r
     END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-    { \r
+    {\r
       (UINT8) (END_DEVICE_PATH_LENGTH),\r
       (UINT8) ((END_DEVICE_PATH_LENGTH) >> 8)\r
     }\r
@@ -73,7 +73,7 @@ GetTpmState (
   UINT8                         CmdBuf[64];\r
 \r
   ASSERT (TcgProtocol != NULL);\r
-  \r
+\r
   //\r
   // Get TPM Permanent flags (TpmEnable, TpmActivate)\r
   //\r
@@ -82,7 +82,7 @@ GetTpmState (
     *(UINT16*)&CmdBuf[0]  = SwapBytes16 (TPM_TAG_RQU_COMMAND);\r
     *(UINT32*)&CmdBuf[2]  = SwapBytes32 (TpmSendSize);\r
     *(UINT32*)&CmdBuf[6]  = SwapBytes32 (TPM_ORD_GetCapability);\r
-  \r
+\r
     *(UINT32*)&CmdBuf[10] = SwapBytes32 (TPM_CAP_FLAG);\r
     *(UINT32*)&CmdBuf[14] = SwapBytes32 (sizeof (TPM_CAP_FLAG_PERMANENT));\r
     *(UINT32*)&CmdBuf[18] = SwapBytes32 (TPM_CAP_FLAG_PERMANENT);\r
@@ -93,12 +93,12 @@ GetTpmState (
                             CmdBuf,\r
                             sizeof (CmdBuf),\r
                             CmdBuf\r
-                            ); \r
+                            );\r
     TpmRsp = (TPM_RSP_COMMAND_HDR *) &CmdBuf[0];\r
     if (EFI_ERROR (Status) || (TpmRsp->tag != SwapBytes16 (TPM_TAG_RSP_COMMAND)) || (TpmRsp->returnCode != 0)) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
-  \r
+\r
     TpmPermanentFlags = (TPM_PERMANENT_FLAGS *) &CmdBuf[sizeof (TPM_RSP_COMMAND_HDR) + sizeof (UINT32)];\r
 \r
     if (TpmEnable != NULL) {\r
@@ -109,8 +109,8 @@ GetTpmState (
       *TpmActivate = (BOOLEAN) !TpmPermanentFlags->deactivated;\r
     }\r
   }\r
\r
-  return EFI_SUCCESS;  \r
+\r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
@@ -175,7 +175,7 @@ TcgExtractConfig (
 \r
   //\r
   // Convert buffer data to <ConfigResp> by helper function BlockToConfig()\r
-  //  \r
+  //\r
   PrivateData->Configuration->TpmOperation = PHYSICAL_PRESENCE_ENABLE;\r
 \r
   //\r
@@ -321,8 +321,8 @@ SavePpRequest (
                   );\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
-  }                \r
-                  \r
+  }\r
+\r
   PpData.PPRequest = PpRequest;\r
   Status = gRT->SetVariable (\r
                   PHYSICAL_PRESENCE_VARIABLE,\r
@@ -400,7 +400,7 @@ TcgCallback (
 \r
   SavePpRequest (Value->u8);\r
   *ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT;\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -458,14 +458,14 @@ InstallTcgConfigForm (
            &gEfiHiiConfigAccessProtocolGuid,\r
            ConfigAccess,\r
            NULL\r
-           );  \r
+           );\r
 \r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
-  \r
+\r
   PrivateData->HiiHandle = HiiHandle;\r
 \r
-  return EFI_SUCCESS;  \r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r