]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/Tcg2Smm/Tpm.asl
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Smm / Tpm.asl
index f58efca1443de177d451849b29ccf5535fa5c139..50dea0ab9ad4f82fd3257dc7365fe1c3da79da5a 100644 (file)
@@ -1,16 +1,16 @@
 /** @file\r
-  The TPM2 definition block in ACPI table for TCG2 physical presence  \r
+  The TPM2 definition block in ACPI table for TCG2 physical presence\r
   and MemoryClear.\r
 \r
 Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
 (c)Copyright 2016 HP Development Company, L.P.<BR>\r
 Copyright (c) 2017, Microsoft 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
+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
@@ -49,7 +49,7 @@ DefinitionBlock (
       //\r
       OperationRegion (SMIP, SystemIO, 0xB2, 1)\r
       Field (SMIP, ByteAcc, NoLock, Preserve)\r
-      { \r
+      {\r
           IOB2, 8\r
       }\r
 \r
@@ -247,12 +247,12 @@ DefinitionBlock (
       }\r
 \r
       Method (PTS, 1, Serialized)\r
-      {  \r
+      {\r
         //\r
         // Detect Sx state for MOR, only S4, S5 need to handle\r
         //\r
         If (LAnd (LLess (Arg0, 6), LGreater (Arg0, 3)))\r
-        {   \r
+        {\r
           //\r
           // Bit4 -- DisableAutoDetect. 0 -- Firmware MAY autodetect.\r
           //\r
@@ -262,7 +262,7 @@ DefinitionBlock (
             // Triggle the SMI through ACPI _PTS method.\r
             //\r
             Store (0x02, MCIP)\r
-              \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
@@ -270,7 +270,7 @@ DefinitionBlock (
           }\r
         }\r
         Return (0)\r
-      }   \r
+      }\r
 \r
       Method (_STA, 0)\r
       {\r
@@ -320,12 +320,12 @@ DefinitionBlock (
       }\r
 \r
       Name(TPM2, Package (0x02){\r
-        Zero, \r
+        Zero,\r
         Zero\r
       })\r
 \r
       Name(TPM3, Package (0x03){\r
-        Zero, \r
+        Zero,\r
         Zero,\r
         Zero\r
       })\r
@@ -334,7 +334,7 @@ DefinitionBlock (
       // TCG Physical Presence Interface\r
       //\r
       Method (TPPI, 3, Serialized, 0, {BuffObj, PkgObj, IntObj, StrObj}, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj\r
-      {        \r
+      {\r
         //\r
         // Switch by function index\r
         //\r
@@ -359,11 +359,11 @@ DefinitionBlock (
             //\r
             // b) Submit TPM Operation Request to Pre-OS Environment\r
             //\r
-                  \r
+\r
             Store (DerefOf (Index (Arg2, 0x00)), PPRQ)\r
             Store (0, PPRM)\r
             Store (0x02, PPIP)\r
-              \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
@@ -377,7 +377,7 @@ DefinitionBlock (
             //\r
             // c) Get Pending TPM Operation Requested By the OS\r
             //\r
-                  \r
+\r
             Store (PPRQ, Index (TPM2, 0x01))\r
             Return (TPM2)\r
           }\r
@@ -394,12 +394,12 @@ DefinitionBlock (
             // e) Return TPM Operation Response to OS Environment\r
             //\r
             Store (0x05, PPIP)\r
-                  \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
             Store (PPIN, IOB2)\r
-                  \r
+\r
             Store (LPPR, Index (TPM3, 0x01))\r
             Store (PPRP, Index (TPM3, 0x02))\r
 \r
@@ -426,11 +426,11 @@ DefinitionBlock (
             If (LEqual (PPRQ, 23)) {\r
               Store (DerefOf (Index (Arg2, 0x01)), PPRM)\r
             }\r
-                \r
+\r
             //\r
-            // Triggle the SMI interrupt \r
+            // Triggle the SMI interrupt\r
             //\r
-            Store (PPIN, IOB2)  \r
+            Store (PPIN, IOB2)\r
             Return (FRET)\r
           }\r
           Case (8)\r
@@ -440,12 +440,12 @@ DefinitionBlock (
             //\r
             Store (8, PPIP)\r
             Store (DerefOf (Index (Arg2, 0x00)), UCRQ)\r
-                  \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
             Store (PPIN, IOB2)\r
-                  \r
+\r
             Return (FRET)\r
           }\r
 \r
@@ -474,12 +474,12 @@ DefinitionBlock (
             // Save the Operation Value of the Request to MORD (reserved memory)\r
             //\r
             Store (DerefOf (Index (Arg2, 0x00)), MORD)\r
-                  \r
+\r
             //\r
             // Triggle the SMI through ACPI _DSM method.\r
             //\r
             Store (0x01, MCIP)\r
-                  \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
@@ -488,7 +488,7 @@ DefinitionBlock (
           }\r
           Default {BreakPoint}\r
         }\r
-        Return (1)        \r
+        Return (1)\r
       }\r
 \r
       Method (_DSM, 4, Serialized, 0, UnknownObj, {BuffObj, IntObj, IntObj, PkgObj})\r