47 Command.Hdr.tag =
SwapBytes16 (TPM_TAG_RQU_COMMAND);
48 Command.Hdr.paramSize =
SwapBytes32 (
sizeof (Command));
49 Command.Hdr.ordinal =
SwapBytes32 (TPM_ORD_Startup);
51 Length =
sizeof (Response);
52 Status =
Tpm12SubmitCommand (
sizeof (Command), (UINT8 *)&Command, &Length, (UINT8 *)&Response);
53 if (EFI_ERROR (Status)) {
59 DEBUG ((DEBUG_INFO,
"TPM12Startup: TPM_SUCCESS\n"));
61 case TPM_INVALID_POSTINIT:
63 DEBUG ((DEBUG_INFO,
"TPM12Startup: TPM_INVALID_POSTINIT\n"));
66 return EFI_DEVICE_ERROR;
93 Length =
sizeof (Response);
94 Status =
Tpm12SubmitCommand (
sizeof (Command), (UINT8 *)&Command, &Length, (UINT8 *)&Response);
95 if (EFI_ERROR (Status)) {
103 return EFI_DEVICE_ERROR;
UINT16 EFIAPI SwapBytes16(IN UINT16 Value)
UINT32 EFIAPI SwapBytes32(IN UINT32 Value)
#define DEBUG(Expression)
EFI_STATUS EFIAPI Tpm12SubmitCommand(IN UINT32 InputParameterBlockSize, IN UINT8 *InputParameterBlock, IN OUT UINT32 *OutputParameterBlockSize, IN UINT8 *OutputParameterBlock)
EFI_STATUS EFIAPI Tpm12SaveState(VOID)
EFI_STATUS EFIAPI Tpm12Startup(IN TPM_STARTUP_TYPE TpmSt)