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

Go to the source code of this file.

Data Structures

struct  TPM2_STARTUP_COMMAND
 
struct  TPM2_STARTUP_RESPONSE
 
struct  TPM2_SHUTDOWN_COMMAND
 
struct  TPM2_SHUTDOWN_RESPONSE
 

Functions

EFI_STATUS EFIAPI Tpm2Startup (IN TPM_SU StartupType)
 
EFI_STATUS EFIAPI Tpm2Shutdown (IN TPM_SU ShutdownType)
 

Detailed Description

Implement TPM2 Startup related command.

Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Tpm2Startup.c.

Function Documentation

◆ Tpm2Shutdown()

EFI_STATUS EFIAPI Tpm2Shutdown ( IN TPM_SU  ShutdownType)

Send Shutdown command to TPM2.

Parameters
[in]ShutdownTypeTPM_SU_CLEAR or TPM_SU_STATE.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORUnexpected device behavior.

Definition at line 95 of file Tpm2Startup.c.

◆ Tpm2Startup()

EFI_STATUS EFIAPI Tpm2Startup ( IN TPM_SU  StartupType)

Send Startup command to TPM2.

Parameters
[in]StartupTypeTPM_SU_CLEAR or TPM_SU_STATE
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORUnexpected device behavior.

Definition at line 49 of file Tpm2Startup.c.