TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | TPM_RSP_GET_TICKS |
Functions | |
STATIC EFI_STATUS | TestTpm12 () |
EFI_STATUS | InternalTpm12Detect (VOID) |
Implement the InternalTpm12Detect() function on top of the Tpm12DeviceLib class.
Copyright (C) 2020, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Tpm12Support.c.
EFI_STATUS InternalTpm12Detect | ( | VOID | ) |
Detect the presence of a TPM with interface version 1.2.
EFI_SUCCESS | TPM-1.2 available. The Tpm12RequestUseTpm() and Tpm12SubmitCommand(TPM_ORD_GetTicks) operations (from the Tpm12DeviceLib class) have succeeded. |
Definition at line 71 of file Tpm12Support.c.
STATIC EFI_STATUS TestTpm12 | ( | ) |
Probe for the TPM for 1.2 version, by sending TPM1.2 GetTicks
Sending a TPM1.2 command to a TPM2 should return a TPM1.2 header (tag = 0xc4) and error code (TPM_BADTAG = 0x1e)
EFI_SUCCESS | TPM version 1.2 probing successful. |
Definition at line 34 of file Tpm12Support.c.