5cb18b3d7b
Add a TPM2 ACPI table if a TPM 2 is used in the backend. Also add an SSDT for the TPM 2. Rename tpm_find() to tpm_get_version() and have this function return the version of the TPM found, TPMVersion_Unspec if no TPM is found. Use the version number to build version specific ACPI tables. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
110 lines
650 B
Plaintext
110 lines
650 B
Plaintext
static unsigned char ssdt_tpm_aml[] = {
|
|
0x53,
|
|
0x53,
|
|
0x44,
|
|
0x54,
|
|
0x6b,
|
|
0x0,
|
|
0x0,
|
|
0x0,
|
|
0x1,
|
|
0x37,
|
|
0x42,
|
|
0x58,
|
|
0x50,
|
|
0x43,
|
|
0x0,
|
|
0x0,
|
|
0x42,
|
|
0x58,
|
|
0x53,
|
|
0x53,
|
|
0x44,
|
|
0x54,
|
|
0x0,
|
|
0x0,
|
|
0x1,
|
|
0x0,
|
|
0x0,
|
|
0x0,
|
|
0x49,
|
|
0x4e,
|
|
0x54,
|
|
0x4c,
|
|
0x7,
|
|
0x11,
|
|
0x14,
|
|
0x20,
|
|
0x10,
|
|
0x46,
|
|
0x4,
|
|
0x5c,
|
|
0x2f,
|
|
0x3,
|
|
0x5f,
|
|
0x53,
|
|
0x42,
|
|
0x5f,
|
|
0x50,
|
|
0x43,
|
|
0x49,
|
|
0x30,
|
|
0x49,
|
|
0x53,
|
|
0x41,
|
|
0x5f,
|
|
0x5b,
|
|
0x82,
|
|
0x33,
|
|
0x54,
|
|
0x50,
|
|
0x4d,
|
|
0x5f,
|
|
0x8,
|
|
0x5f,
|
|
0x48,
|
|
0x49,
|
|
0x44,
|
|
0xc,
|
|
0x41,
|
|
0xd0,
|
|
0xc,
|
|
0x31,
|
|
0x8,
|
|
0x5f,
|
|
0x43,
|
|
0x52,
|
|
0x53,
|
|
0x11,
|
|
0x14,
|
|
0xa,
|
|
0x11,
|
|
0x86,
|
|
0x9,
|
|
0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