34 IN UINT32 InputParameterBlockSize,
35 IN UINT8 *InputParameterBlock,
36 IN OUT UINT32 *OutputParameterBlockSize,
37 IN UINT8 *OutputParameterBlock
40 if (mInternalTpm2DeviceInterface.Tpm2SubmitCommand ==
NULL) {
41 return EFI_UNSUPPORTED;
44 return mInternalTpm2DeviceInterface.Tpm2SubmitCommand (
45 InputParameterBlockSize,
47 OutputParameterBlockSize,
65 if (mInternalTpm2DeviceInterface.Tpm2RequestUseTpm ==
NULL) {
66 return EFI_UNSUPPORTED;
69 return mInternalTpm2DeviceInterface.Tpm2RequestUseTpm ();
88 DEBUG ((DEBUG_WARN,
"WARNING: Tpm2RegisterTpm2DeviceLib - does not support %g registration\n", &Tpm2Device->ProviderGuid));
89 return EFI_UNSUPPORTED;
92 CopyMem (&mInternalTpm2DeviceInterface, Tpm2Device,
sizeof (mInternalTpm2DeviceInterface));
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
#define DEBUG(Expression)
#define PcdGetPtr(TokenName)
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)