/** @file
The TPM definition block in ACPI table for physical presence
and MemoryClear.
Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>
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
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
"Tpm.aml",
"SSDT",
1,
"Intel_",
"TcgTable",
0x1000
)
{
{
{
//
// Define _HID, "PNP0C31" is defined in
// "Secure Startup-FVE and TPM Admin BIOS and Platform Requirements"
//
//
// Readable name of this device, don't know if this way is correct yet
//
//
// Return the resource consumed by TPM device
//
})
//
// Operational region for Smi port access
//
{
IOB2, 8
}
//
// Operational region for TPM access
//
{
ACC0, 8,
}
//
// Operational region for TPM support, TPM Physical Presence and TPM Memory Clear
// Region Offset 0xFFFF0000 and Length 0xF0 will be fixed in C code.
//
{
}
{
//
// Detect Sx state for MOR, only S4, S5 need to handle
//
{
//
// Bit4 -- DisableAutoDetect. 0 -- Firmware MAY autodetect.
//
{
//
// Triggle the SMI through ACPI _PTS method.
//
//
// Triggle the SMI interrupt
//
}
}
Return (0)
}
{
{
Return (0)
}
Return (0x0f)
}
//
// TCG Hardware Information
//
Method (HINF, 3, Serialized, 0, {BuffObj, PkgObj}, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj
{
//
// Switch by function index
//
{
Case (0)
{
//
// Standard query
//
}
Case (1)
{
//
// Return failure if no TPM present
//
{
}
//
// Return TPM version
//
}
}
}
Zero,
})
Zero,
Zero,
})
//
// TCG Physical Presence Interface
//
Method (TPPI, 3, Serialized, 0, {BuffObj, PkgObj, IntObj, StrObj}, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj
{
//
// Switch by function index
//
{
Case (0)
{
//
// Standard query, supports function 1-8
//
}
Case (1)
{
//
// a) Get Physical Presence Interface Version
//
Return ("1.2")
}
Case (2)
{
//
// b) Submit TPM Operation Request to Pre-OS Environment
//
//
// Triggle the SMI interrupt
//
}
Case (3)
{
//
// c) Get Pending TPM Operation Requested By the OS
//
}
Case (4)
{
//
// d) Get Platform-Specific Action to Transition to Pre-OS Environment
//
Return (2)
}
Case (5)
{
//
// e) Return TPM Operation Response to OS Environment
//
//
// Triggle the SMI interrupt
//
}
Case (6)
{
//
// f) Submit preferred user language (Not implemented)
//
Return (3)
}
Case (7)
{
//
// g) Submit TPM Operation Request to Pre-OS Environment 2
//
//
// Triggle the SMI interrupt
//
}
Case (8)
{
//
// e) Get User Confirmation Status for Operation
//
//
// Triggle the SMI interrupt
//
}
}
Return (1)
}
Method (TMCI, 3, Serialized, 0, IntObj, {UnknownObj, UnknownObj, UnknownObj}) // IntObj, IntObj, PkgObj
{
//
// Switch by function index
//
{
Case (0)
{
//
// Standard query, supports function 1-1
//
}
Case (1)
{
//
// Save the Operation Value of the Request to MORD (reserved memory)
//
//
// Triggle the SMI through ACPI _DSM method.
//
//
// Triggle the SMI interrupt
//
}
}
Return (1)
}
{
//
// TCG Hardware Information
//
{
}
//
// TCG Physical Presence Interface
//
{
}
//
// TCG Memory Clear Interface
//
{
}
}
}
}
}