TianoCore EDK2 master
Loading...
Searching...
No Matches
Tpm12GetCapability.c File Reference

Go to the source code of this file.

Data Structures

struct  TPM_CMD_GET_CAPABILITY
 
struct  TPM_RSP_GET_CAPABILITY_PERMANENT_FLAGS
 
struct  TPM_RSP_GET_CAPABILITY_STCLEAR_FLAGS
 

Functions

EFI_STATUS EFIAPI Tpm12GetCapabilityFlagPermanent (OUT TPM_PERMANENT_FLAGS *TpmPermanentFlags)
 
EFI_STATUS EFIAPI Tpm12GetCapabilityFlagVolatile (OUT TPM_STCLEAR_FLAGS *VolatileFlags)
 

Detailed Description

Implement TPM1.2 Get Capabilities related commands.

Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Tpm12GetCapability.c.

Function Documentation

◆ Tpm12GetCapabilityFlagPermanent()

EFI_STATUS EFIAPI Tpm12GetCapabilityFlagPermanent ( OUT TPM_PERMANENT_FLAGS TpmPermanentFlags)

Get TPM capability permanent flags.

Parameters
[out]TpmPermanentFlagsPointer to the buffer for returned flag structure.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_TIMEOUTThe register can't run into the expected status in time.
EFI_BUFFER_TOO_SMALLResponse data buffer is too small.
EFI_DEVICE_ERRORUnexpected device behavior.

Definition at line 52 of file Tpm12GetCapability.c.

◆ Tpm12GetCapabilityFlagVolatile()

EFI_STATUS EFIAPI Tpm12GetCapabilityFlagVolatile ( OUT TPM_STCLEAR_FLAGS VolatileFlags)

Get TPM capability volatile flags.

Parameters
[out]VolatileFlagsPointer to the buffer for returned flag structure.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORThe command was unsuccessful.

Definition at line 98 of file Tpm12GetCapability.c.