]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Include/Library/Tpm12DeviceLib.h
SecurityPkg: Clean up source files
[mirror_edk2.git] / SecurityPkg / Include / Library / Tpm12DeviceLib.h
CommitLineData
c1d93242
JY
1/** @file\r
2 This library abstract how to access TPM12 hardware device.\r
3\r
b3548d32 4Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved. <BR>\r
c1d93242
JY
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT 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
32EFI_STATUS\r
33EFIAPI\r
34Tpm12SubmitCommand (\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
48EFI_STATUS\r
49EFIAPI\r
50Tpm12RequestUseTpm (\r
51 VOID\r
52 );\r
53\r
54#endif\r