]>
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 |
c1d93242 JY |
5 | This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _TPM12_DEVICE_LIB_H_\r | |
16 | #define _TPM12_DEVICE_LIB_H_\r | |
17 | \r | |
18 | #include <IndustryStandard/Tpm12.h>\r | |
19 | \r | |
20 | /**\r | |
21 | This service enables the sending of commands to the TPM12.\r | |
22 | \r | |
23 | @param[in] InputParameterBlockSize Size of the TPM12 input parameter block.\r | |
24 | @param[in] InputParameterBlock Pointer to the TPM12 input parameter block.\r | |
25 | @param[in,out] OutputParameterBlockSize Size of the TPM12 output parameter block.\r | |
26 | @param[in] OutputParameterBlock Pointer to the TPM12 output parameter block.\r | |
27 | \r | |
28 | @retval EFI_SUCCESS The command byte stream was successfully sent to the device and a response was successfully received.\r | |
29 | @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 | 30 | @retval EFI_BUFFER_TOO_SMALL The output parameter block is too small.\r |
c1d93242 JY |
31 | **/\r |
32 | EFI_STATUS\r | |
33 | EFIAPI\r | |
34 | Tpm12SubmitCommand (\r | |
35 | IN UINT32 InputParameterBlockSize,\r | |
36 | IN UINT8 *InputParameterBlock,\r | |
37 | IN OUT UINT32 *OutputParameterBlockSize,\r | |
38 | IN UINT8 *OutputParameterBlock\r | |
39 | );\r | |
40 | \r | |
41 | /**\r | |
42 | This service requests use TPM12.\r | |
43 | \r | |
44 | @retval EFI_SUCCESS Get the control of TPM12 chip.\r | |
45 | @retval EFI_NOT_FOUND TPM12 not found.\r | |
46 | @retval EFI_DEVICE_ERROR Unexpected device behavior.\r | |
47 | **/\r | |
48 | EFI_STATUS\r | |
49 | EFIAPI\r | |
50 | Tpm12RequestUseTpm (\r | |
51 | VOID\r | |
52 | );\r | |
53 | \r | |
54 | #endif\r |