Functions | |
EFI_STATUS | TpmCommLogEvent (IN OUT UINT8 **EventLogPtr, IN OUT UINTN *LogSize, IN UINTN MaxSize, IN TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData) |
EFI_STATUS | TpmCommExtend (IN TIS_TPM_HANDLE TpmHandle, IN TPM_DIGEST *DigestToExtend, IN TPM_PCRINDEX PcrIndex, OUT TPM_DIGEST *NewPcrValue) |
EFI_STATUS | TpmCommGetFlags (IN TIS_TPM_HANDLE TpmHandle, IN UINT32 FlagSubcap, OUT VOID *Buffer, IN UINTN Size) |
EFI_STATUS EFIAPI | TisPcExecute (IN TIS_TPM_HANDLE TisReg, IN CONST CHAR8 *Fmt,...) |
Copyright (c) 2005 - 2010, Intel 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 http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS EFIAPI TisPcExecute | ( | IN TIS_TPM_HANDLE | TisReg, | |
IN CONST CHAR8 * | Fmt, | |||
... | ||||
) |
Send formatted command to TPM for execution and return formatted data from response.
[in] | TisReg | TPM Handle. |
[in] | Fmt | Format control string. |
[in] | ... | The variable argument list. |
EFI_SUCCESS | Operation completed successfully. | |
EFI_TIMEOUT | The register can't run into the expected status in time. |
References BOOLEAN(), EFI_STATUS(), TIS_PC_STS_GO, TIS_PC_STS_READY, TisPcReceive(), TisPcReceiveV(), TisPcSend(), TisPcSendV(), TPMCMDBUFLENGTH, TpmCommandBuf, and UINTN().
Referenced by TcgDxePassThroughToTpm(), TpmCommExtend(), and TpmCommGetFlags().
EFI_STATUS TpmCommExtend | ( | IN TIS_TPM_HANDLE | TpmHandle, | |
IN TPM_DIGEST * | DigestToExtend, | |||
IN TPM_PCRINDEX | PcrIndex, | |||
OUT TPM_DIGEST * | NewPcrValue | |||
) |
Extend a TPM PCR.
[in] | TpmHandle | TPM handle. |
[in] | DigestToExtend | The 160 bit value representing the event to be recorded. |
[in] | PcrIndex | The PCR to be updated. |
[out] | NewPcrValue | New PCR value after extend. |
EFI_SUCCESS | Operation completed successfully. | |
EFI_DEVICE_ERROR | The command was unsuccessful. |
References EFI_STATUS(), TisPcExecute(), and UINTN().
Referenced by HashLogExtendEvent(), and TcgDxeHashLogExtendEventI().
EFI_STATUS TpmCommGetFlags | ( | IN TIS_TPM_HANDLE | TpmHandle, | |
IN UINT32 | FlagSubcap, | |||
OUT VOID * | FlagBuffer, | |||
IN UINTN | FlagSize | |||
) |
Get TPM capability flags.
[in] | TpmHandle | TPM handle. |
[in] | FlagSubcap | Flag subcap. |
[out] | FlagBuffer | Pointer to the buffer for returned flag structure. |
[in] | FlagSize | Size of the buffer. |
EFI_SUCCESS | Operation completed successfully. | |
EFI_DEVICE_ERROR | The command was unsuccessful. |
References EFI_STATUS(), and TisPcExecute().
Referenced by GetTpmStatus().
EFI_STATUS TpmCommLogEvent | ( | IN OUT UINT8 ** | EventLogPtr, | |
IN OUT UINTN * | LogSize, | |||
IN UINTN | MaxSize, | |||
IN TCG_PCR_EVENT_HDR * | NewEventHdr, | |||
IN UINT8 * | NewEventData | |||
) |
Add a new entry to the Event Log.
[in,out] | EventLogPtr | Pointer to the Event Log data. |
[in,out] | LogSize | Size of the Event Log. |
[in] | MaxSize | Maximum size of the Event Log. |
[in] | NewEventHdr | Pointer to a TCG_PCR_EVENT_HDR data structure. |
[in] | NewEventData | Pointer to the new event data. |
EFI_SUCCESS | The new event log entry was added. | |
EFI_OUT_OF_RESOURCES | No enough memory to log the new event. |
References UINTN().
Referenced by TcgDxeLogEventI().