TianoCore EDK2 master
Loading...
Searching...
No Matches
Tpm2DeviceLib.h
Go to the documentation of this file.
1
9#ifndef _TPM2_DEVICE_LIB_H_
10#define _TPM2_DEVICE_LIB_H_
11
12#include <Uefi.h>
13
14//
15// Used in PcdActiveTpmInterfaceType to identify TPM interface type
16//
17typedef enum {
18 Tpm2PtpInterfaceTis,
19 Tpm2PtpInterfaceFifo,
20 Tpm2PtpInterfaceCrb,
21 Tpm2PtpInterfaceMax,
22} TPM2_PTP_INTERFACE_TYPE;
23
37EFIAPI
39 IN UINT32 InputParameterBlockSize,
40 IN UINT8 *InputParameterBlock,
41 IN OUT UINT32 *OutputParameterBlockSize,
42 IN UINT8 *OutputParameterBlock
43 );
44
53EFIAPI
55 VOID
56 );
57
70typedef
72(EFIAPI *TPM2_SUBMIT_COMMAND)(
73 IN UINT32 InputParameterBlockSize,
74 IN UINT8 *InputParameterBlock,
75 IN OUT UINT32 *OutputParameterBlockSize,
76 IN UINT8 *OutputParameterBlock
77 );
78
86typedef
88(EFIAPI *TPM2_REQUEST_USE_TPM)(
89 VOID
90 );
91
92typedef struct {
93 EFI_GUID ProviderGuid;
97
108EFIAPI
110 IN TPM2_DEVICE_INTERFACE *Tpm2Device
111 );
112
113#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * TPM2_REQUEST_USE_TPM)(VOID)
Definition: Tpm2DeviceLib.h:88
EFI_STATUS EFIAPI Tpm2RegisterTpm2DeviceLib(IN TPM2_DEVICE_INTERFACE *Tpm2Device)
EFI_STATUS EFIAPI Tpm2SubmitCommand(IN UINT32 InputParameterBlockSize, IN UINT8 *InputParameterBlock, IN OUT UINT32 *OutputParameterBlockSize, IN UINT8 *OutputParameterBlock)
EFI_STATUS EFIAPI Tpm2RequestUseTpm(VOID)
EFI_STATUS(EFIAPI * TPM2_SUBMIT_COMMAND)(IN UINT32 InputParameterBlockSize, IN UINT8 *InputParameterBlock, IN OUT UINT32 *OutputParameterBlockSize, IN UINT8 *OutputParameterBlock)
Definition: Tpm2DeviceLib.h:72
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213