X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=SecurityPkg%2FTcg%2FTcg2Smm%2FTpm.asl;fp=SecurityPkg%2FTcg%2FTcg2Smm%2FTpm.asl;h=50dea0ab9ad4f82fd3257dc7365fe1c3da79da5a;hb=b3548d32ddb553a9e95503457c66d11462622d16;hp=f58efca1443de177d451849b29ccf5535fa5c139;hpb=5a702acd3df099307d9bae0725f97b52b4895382;p=mirror_edk2.git diff --git a/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl b/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl index f58efca144..50dea0ab9a 100644 --- a/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl +++ b/SecurityPkg/Tcg/Tcg2Smm/Tpm.asl @@ -1,16 +1,16 @@ /** @file - The TPM2 definition block in ACPI table for TCG2 physical presence + The TPM2 definition block in ACPI table for TCG2 physical presence and MemoryClear. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
(c)Copyright 2016 HP Development Company, L.P.
Copyright (c) 2017, Microsoft Corporation. All rights reserved.
-This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at +This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ @@ -49,7 +49,7 @@ DefinitionBlock ( // OperationRegion (SMIP, SystemIO, 0xB2, 1) Field (SMIP, ByteAcc, NoLock, Preserve) - { + { IOB2, 8 } @@ -247,12 +247,12 @@ DefinitionBlock ( } Method (PTS, 1, Serialized) - { + { // // Detect Sx state for MOR, only S4, S5 need to handle // If (LAnd (LLess (Arg0, 6), LGreater (Arg0, 3))) - { + { // // Bit4 -- DisableAutoDetect. 0 -- Firmware MAY autodetect. // @@ -262,7 +262,7 @@ DefinitionBlock ( // Triggle the SMI through ACPI _PTS method. // Store (0x02, MCIP) - + // // Triggle the SMI interrupt // @@ -270,7 +270,7 @@ DefinitionBlock ( } } Return (0) - } + } Method (_STA, 0) { @@ -320,12 +320,12 @@ DefinitionBlock ( } Name(TPM2, Package (0x02){ - Zero, + Zero, Zero }) Name(TPM3, Package (0x03){ - Zero, + Zero, Zero, Zero }) @@ -334,7 +334,7 @@ DefinitionBlock ( // TCG Physical Presence Interface // Method (TPPI, 3, Serialized, 0, {BuffObj, PkgObj, IntObj, StrObj}, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj - { + { // // Switch by function index // @@ -359,11 +359,11 @@ DefinitionBlock ( // // b) Submit TPM Operation Request to Pre-OS Environment // - + Store (DerefOf (Index (Arg2, 0x00)), PPRQ) Store (0, PPRM) Store (0x02, PPIP) - + // // Triggle the SMI interrupt // @@ -377,7 +377,7 @@ DefinitionBlock ( // // c) Get Pending TPM Operation Requested By the OS // - + Store (PPRQ, Index (TPM2, 0x01)) Return (TPM2) } @@ -394,12 +394,12 @@ DefinitionBlock ( // e) Return TPM Operation Response to OS Environment // Store (0x05, PPIP) - + // // Triggle the SMI interrupt // Store (PPIN, IOB2) - + Store (LPPR, Index (TPM3, 0x01)) Store (PPRP, Index (TPM3, 0x02)) @@ -426,11 +426,11 @@ DefinitionBlock ( If (LEqual (PPRQ, 23)) { Store (DerefOf (Index (Arg2, 0x01)), PPRM) } - + // - // Triggle the SMI interrupt + // Triggle the SMI interrupt // - Store (PPIN, IOB2) + Store (PPIN, IOB2) Return (FRET) } Case (8) @@ -440,12 +440,12 @@ DefinitionBlock ( // Store (8, PPIP) Store (DerefOf (Index (Arg2, 0x00)), UCRQ) - + // // Triggle the SMI interrupt // Store (PPIN, IOB2) - + Return (FRET) } @@ -474,12 +474,12 @@ DefinitionBlock ( // Save the Operation Value of the Request to MORD (reserved memory) // Store (DerefOf (Index (Arg2, 0x00)), MORD) - + // // Triggle the SMI through ACPI _DSM method. // Store (0x01, MCIP) - + // // Triggle the SMI interrupt // @@ -488,7 +488,7 @@ DefinitionBlock ( } Default {BreakPoint} } - Return (1) + Return (1) } Method (_DSM, 4, Serialized, 0, UnknownObj, {BuffObj, IntObj, IntObj, PkgObj})