41 Command.ordinal =
SwapBytes32 (TPM_ORD_ContinueSelfTest);
42 Length =
sizeof (Response);
43 Status =
Tpm12SubmitCommand (
sizeof (Command), (UINT8 *)&Command, &Length, (UINT8 *)&Response);
44 if (EFI_ERROR (Status)) {
48 if (
SwapBytes32 (Response.returnCode) != TPM_SUCCESS) {
49 DEBUG ((DEBUG_ERROR,
"Tpm12ContinueSelfTest: Response Code error! 0x%08x\r\n",
SwapBytes32 (Response.returnCode)));
50 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 Tpm12ContinueSelfTest(VOID)