Tpm12Support.h 983 B

12345678910111213141516171819202122232425262728293031323334
  1. /** @file
  2. Declare the InternalTpm12Detect() function, hiding the TPM-1.2 detection
  3. internals.
  4. Copyright (C) 2020, Red Hat, Inc.
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef TPM12_SUPPORT_H_
  8. #define TPM12_SUPPORT_H_
  9. #include <Uefi/UefiBaseType.h>
  10. /**
  11. Detect the presence of a TPM with interface version 1.2.
  12. @retval EFI_UNSUPPORTED The platform that includes this particular
  13. implementation of the function does not support
  14. TPM-1.2.
  15. @retval EFI_SUCCESS TPM-1.2 available. The Tpm12RequestUseTpm() and
  16. Tpm12SubmitCommand(TPM_ORD_GetTicks) operations
  17. (from the Tpm12DeviceLib class) have succeeded.
  18. @return Error codes propagated from Tpm12RequestUseTpm() and
  19. Tpm12SubmitCommand().
  20. **/
  21. EFI_STATUS
  22. InternalTpm12Detect (
  23. VOID
  24. );
  25. #endif // TPM12_SUPPORT_H_