]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/TcgSmm/Tpm.asl
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / Tcg / TcgSmm / Tpm.asl
index b5449d98b4c4ec7acdf1faa64e54fa79cd440af6..12f24f399677e4593c3bca81eed562f32dd27e39 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
-  The TPM definition block in ACPI table for physical presence  \r
+  The TPM definition block in ACPI table for physical presence\r
   and MemoryClear.\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
@@ -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
@@ -79,16 +79,16 @@ DefinitionBlock (
         MCIP,   32, //   Used for save the Mor paramter\r
         MORD,   32, //   Memory Overwrite Request Data\r
         MRET,   32, //   Memory Overwrite function return code\r
-        UCRQ,   32  //   Phyical Presence request operation to Get User Confirmation Status \r
+        UCRQ,   32  //   Phyical Presence request operation to Get User Confirmation Status\r
       }\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
@@ -98,7 +98,7 @@ DefinitionBlock (
             // Triggle the SMI through ACPI _PTS method.\r
             //\r
             Store (0x02, MCIP)\r
-              \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
@@ -106,7 +106,7 @@ DefinitionBlock (
           }\r
         }\r
         Return (0)\r
-      }   \r
+      }\r
 \r
       Method (_STA, 0)\r
       {\r
@@ -156,12 +156,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
@@ -170,7 +170,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
@@ -195,10 +195,10 @@ DefinitionBlock (
             //\r
             // b) Submit TPM Operation Request to Pre-OS Environment\r
             //\r
-                  \r
+\r
             Store (DerefOf (Index (Arg2, 0x00)), PPRQ)\r
             Store (0x02, PPIP)\r
-              \r
+\r
             //\r
             // Triggle the SMI interrupt\r
             //\r
@@ -212,7 +212,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
@@ -229,12 +229,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
@@ -257,11 +257,11 @@ DefinitionBlock (
             //\r
             Store (7, PPIP)\r
             Store (DerefOf (Index (Arg2, 0x00)), PPRQ)\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
@@ -271,12 +271,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
@@ -305,12 +305,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
@@ -319,7 +319,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