and MemoryClear.\r
\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
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) Microsoft Corporation.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
//\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
Field (TNVS, AnyAcc, NoLock, Preserve)\r
{\r
PPIN, 8, // Software SMI for Physical Presence Interface\r
- PPIP, 32, // Used for save physical presence paramter\r
+ PPIP, 32, // Used for save physical presence parameter\r
PPRP, 32, // Physical Presence request operation response\r
PPRQ, 32, // Physical Presence request operation\r
LPPR, 32, // Last Physical Presence request operation\r
FRET, 32, // Physical Presence function return code\r
MCIN, 8, // Software SMI for Memory Clear Interface\r
- MCIP, 32, // Used for save the Mor paramter\r
+ MCIP, 32, // Used for save the Mor parameter\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 // Physical Presence request operation to Get User Confirmation Status\r
}\r
\r
Method (PTS, 1, Serialized)\r
//\r
// Trigger the SMI interrupt\r
//\r
- Store (MCIN, IOB2)\r
+ Store (MCIN, IOPN)\r
}\r
}\r
Return (0)\r
//\r
// TCG Hardware Information\r
//\r
- Method (HINF, 3, Serialized, 0, {BuffObj, PkgObj}, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj\r
+ Method (HINF, 1, Serialized, 0, {BuffObj, PkgObj}, {UnknownObj}) // IntObj\r
{\r
//\r
// Switch by function index\r
//\r
- Switch (ToInteger(Arg1))\r
+ Switch (ToInteger(Arg0))\r
{\r
Case (0)\r
{\r
//\r
// TCG Physical Presence Interface\r
//\r
- Method (TPPI, 3, Serialized, 0, {BuffObj, PkgObj, IntObj, StrObj}, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj\r
+ Method (TPPI, 2, Serialized, 0, {BuffObj, PkgObj, IntObj, StrObj}, {UnknownObj, UnknownObj}) // IntObj, PkgObj\r
{\r
//\r
// Switch by function index\r
//\r
- Switch (ToInteger(Arg1))\r
+ Switch (ToInteger(Arg0))\r
{\r
Case (0)\r
{\r
// b) Submit TPM Operation Request to Pre-OS Environment\r
//\r
\r
- Store (DerefOf (Index (Arg2, 0x00)), PPRQ)\r
+ Store (DerefOf (Index (Arg1, 0x00)), PPRQ)\r
Store (0x02, PPIP)\r
\r
//\r
// Trigger the SMI interrupt\r
//\r
- Store (PPIN, IOB2)\r
+ Store (PPIN, IOPN)\r
Return (FRET)\r
\r
\r
//\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
// g) Submit TPM Operation Request to Pre-OS Environment 2\r
//\r
Store (7, PPIP)\r
- Store (DerefOf (Index (Arg2, 0x00)), PPRQ)\r
+ Store (DerefOf (Index (Arg1, 0x00)), PPRQ)\r
\r
//\r
// Trigger the SMI interrupt\r
//\r
- Store (PPIN, IOB2)\r
+ Store (PPIN, IOPN)\r
Return (FRET)\r
}\r
Case (8)\r
// e) Get User Confirmation Status for Operation\r
//\r
Store (8, PPIP)\r
- Store (DerefOf (Index (Arg2, 0x00)), UCRQ)\r
+ Store (DerefOf (Index (Arg1, 0x00)), UCRQ)\r
\r
//\r
// Trigger the SMI interrupt\r
//\r
- Store (PPIN, IOB2)\r
+ Store (PPIN, IOPN)\r
\r
Return (FRET)\r
}\r
Return (1)\r
}\r
\r
- Method (TMCI, 3, Serialized, 0, IntObj, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj\r
+ Method (TMCI, 2, Serialized, 0, IntObj, {UnknownObj, UnknownObj}) // IntObj, PkgObj\r
{\r
//\r
// Switch by function index\r
//\r
- Switch (ToInteger (Arg1))\r
+ Switch (ToInteger (Arg0))\r
{\r
Case (0)\r
{\r
//\r
// Save the Operation Value of the Request to MORD (reserved memory)\r
//\r
- Store (DerefOf (Index (Arg2, 0x00)), MORD)\r
+ Store (DerefOf (Index (Arg1, 0x00)), MORD)\r
\r
//\r
// Trigger the SMI through ACPI _DSM method.\r
//\r
// Trigger the SMI interrupt\r
//\r
- Store (MCIN, IOB2)\r
+ Store (MCIN, IOPN)\r
Return (MRET)\r
}\r
Default {BreakPoint}\r
//\r
If(LEqual(Arg0, ToUUID ("cf8e16a5-c1e8-4e25-b712-4f54a96702c8")))\r
{\r
- Return (HINF (Arg1, Arg2, Arg3))\r
+ Return (HINF (Arg2))\r
}\r
\r
//\r
//\r
If(LEqual(Arg0, ToUUID ("3dddfaa6-361b-4eb4-a424-8d10089d1653")))\r
{\r
- Return (TPPI (Arg1, Arg2, Arg3))\r
+ Return (TPPI (Arg2, Arg3))\r
}\r
\r
//\r
//\r
If(LEqual(Arg0, ToUUID ("376054ed-cc13-4675-901c-4756d7f2d45d")))\r
{\r
- Return (TMCI (Arg1, Arg2, Arg3))\r
+ Return (TMCI (Arg2, Arg3))\r
}\r
\r
Return (Buffer () {0})\r