]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Tcg/Tcg2Smm/Tpm.asl
SecurityPkg Tcg: Use SW SMI IO port PCD in Tpm.asl
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Smm / Tpm.asl
index 7a91708a1a344016a763bb33581c737657beaea3..95f9d7eae8416ee60d86d3003f47198361d76d88 100644 (file)
@@ -4,7 +4,7 @@
 \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
+Copyright (c) Microsoft Corporation.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -41,10 +41,10 @@ DefinitionBlock (
       //\r
       // Operational region for Smi port access\r
       //\r
-      OperationRegion (SMIP, SystemIO, 0xB2, 1)\r
+      OperationRegion (SMIP, SystemIO, FixedPcdGet16 (PcdSmiCommandIoPort), 1)\r
       Field (SMIP, ByteAcc, NoLock, Preserve)\r
       {\r
-          IOB2, 8\r
+          IOPN, 8\r
       }\r
 \r
       //\r
@@ -258,7 +258,7 @@ DefinitionBlock (
             //\r
             // Trigger the SMI interrupt\r
             //\r
-            Store (MCIN, IOB2)\r
+            Store (MCIN, IOPN)\r
           }\r
         }\r
         Return (0)\r
@@ -359,7 +359,7 @@ DefinitionBlock (
             //\r
             // Trigger the SMI interrupt\r
             //\r
-            Store (PPIN, IOB2)\r
+            Store (PPIN, IOPN)\r
             Return (FRET)\r
 \r
 \r
@@ -390,7 +390,7 @@ DefinitionBlock (
             //\r
             // Trigger the SMI interrupt\r
             //\r
-            Store (PPIN, IOB2)\r
+            Store (PPIN, IOPN)\r
 \r
             Store (LPPR, Index (TPM3, 0x01))\r
             Store (PPRP, Index (TPM3, 0x02))\r
@@ -422,7 +422,7 @@ DefinitionBlock (
             //\r
             // Trigger the SMI interrupt\r
             //\r
-            Store (PPIN, IOB2)\r
+            Store (PPIN, IOPN)\r
             Return (FRET)\r
           }\r
           Case (8)\r
@@ -436,7 +436,7 @@ DefinitionBlock (
             //\r
             // Trigger the SMI interrupt\r
             //\r
-            Store (PPIN, IOB2)\r
+            Store (PPIN, IOPN)\r
 \r
             Return (FRET)\r
           }\r
@@ -475,7 +475,7 @@ DefinitionBlock (
             //\r
             // Trigger the SMI interrupt\r
             //\r
-            Store (MCIN, IOB2)\r
+            Store (MCIN, IOPN)\r
             Return (MRET)\r
           }\r
           Default {BreakPoint}\r