35 IN UINT32 InputParameterBlockSize,
36 IN UINT8 *InputParameterBlock,
37 IN OUT UINT32 *OutputParameterBlockSize,
38 IN UINT8 *OutputParameterBlock
44 if (mTcgProtocol ==
NULL) {
45 Status =
gBS->LocateProtocol (&gEfiTcgProtocolGuid,
NULL, (VOID **)&mTcgProtocol);
46 if (EFI_ERROR (Status)) {
50 DEBUG ((DEBUG_ERROR,
"Tpm12SubmitCommand - TCG - %r\n", Status));
58 Status = mTcgProtocol->PassThroughToTpm (
60 InputParameterBlockSize,
62 *OutputParameterBlockSize,
65 if (EFI_ERROR (Status)) {
70 *OutputParameterBlockSize =
SwapBytes32 (Header->paramSize);
90 if (mTcgProtocol ==
NULL) {
91 Status =
gBS->LocateProtocol (&gEfiTcgProtocolGuid,
NULL, (VOID **)&mTcgProtocol);
92 if (EFI_ERROR (Status)) {
96 DEBUG ((DEBUG_ERROR,
"Tpm12RequestUseTpm - TCG - %r\n", Status));
UINT32 EFIAPI SwapBytes32(IN UINT32 Value)
#define DEBUG(Expression)
EFI_STATUS EFIAPI Tpm12RequestUseTpm(VOID)
EFI_STATUS EFIAPI Tpm12SubmitCommand(IN UINT32 InputParameterBlockSize, IN UINT8 *InputParameterBlock, IN OUT UINT32 *OutputParameterBlockSize, IN UINT8 *OutputParameterBlock)