]>
Commit | Line | Data |
---|---|---|
c1d93242 JY |
1 | /** @file\r |
2 | This library abstract how to access TPM12 hardware device.\r | |
3 | \r | |
b3548d32 | 4 | Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>\r |
289b714b | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
c1d93242 JY |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef _TPM12_DEVICE_LIB_H_\r | |
10 | #define _TPM12_DEVICE_LIB_H_\r | |
11 | \r | |
12 | #include <IndustryStandard/Tpm12.h>\r | |
13 | \r | |
14 | /**\r | |
15 | This service enables the sending of commands to the TPM12.\r | |
16 | \r | |
17 | @param[in] InputParameterBlockSize Size of the TPM12 input parameter block.\r | |
18 | @param[in] InputParameterBlock Pointer to the TPM12 input parameter block.\r | |
19 | @param[in,out] OutputParameterBlockSize Size of the TPM12 output parameter block.\r | |
20 | @param[in] OutputParameterBlock Pointer to the TPM12 output parameter block.\r | |
21 | \r | |
22 | @retval EFI_SUCCESS The command byte stream was successfully sent to the device and a response was successfully received.\r | |
23 | @retval EFI_DEVICE_ERROR The command was not successfully sent to the device or a response was not successfully received from the device.\r | |
b3548d32 | 24 | @retval EFI_BUFFER_TOO_SMALL The output parameter block is too small.\r |
c1d93242 JY |
25 | **/\r |
26 | EFI_STATUS\r | |
27 | EFIAPI\r | |
28 | Tpm12SubmitCommand (\r | |
29 | IN UINT32 InputParameterBlockSize,\r | |
30 | IN UINT8 *InputParameterBlock,\r | |
31 | IN OUT UINT32 *OutputParameterBlockSize,\r | |
32 | IN UINT8 *OutputParameterBlock\r | |
33 | );\r | |
34 | \r | |
35 | /**\r | |
36 | This service requests use TPM12.\r | |
37 | \r | |
38 | @retval EFI_SUCCESS Get the control of TPM12 chip.\r | |
39 | @retval EFI_NOT_FOUND TPM12 not found.\r | |
40 | @retval EFI_DEVICE_ERROR Unexpected device behavior.\r | |
41 | **/\r | |
42 | EFI_STATUS\r | |
43 | EFIAPI\r | |
44 | Tpm12RequestUseTpm (\r | |
45 | VOID\r | |
46 | );\r | |
47 | \r | |
48 | #endif\r |