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