]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Include/Library/Tpm12CommandLib.h
MdeModulePkg XhciPei/UsbBusPei: Add XHCI recovery support.
[mirror_edk2.git] / SecurityPkg / Include / Library / Tpm12CommandLib.h
CommitLineData
c1d93242
JY
1/** @file\r
2 This library is used by other modules to send TPM12 command.\r
3\r
4Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
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_COMMAND_LIB_H_\r
16#define _TPM12_COMMAND_LIB_H_\r
17\r
18#include <IndustryStandard/Tpm12.h>\r
19\r
20/**\r
21 Send Startup command to TPM1.2.\r
22\r
23 @param TpmSt Startup Type.\r
24\r
25 @retval EFI_SUCCESS Operation completed successfully.\r
26 @retval EFI_DEVICE_ERROR Unexpected device behavior.\r
27**/\r
28EFI_STATUS\r
29EFIAPI\r
30Tpm12Startup (\r
31 IN TPM_STARTUP_TYPE TpmSt\r
32 );\r
33\r
9318b08e
JY
34/**\r
35 Send SaveState command to TPM1.2.\r
36\r
37 @retval EFI_SUCCESS Operation completed successfully.\r
38 @retval EFI_DEVICE_ERROR Unexpected device behavior.\r
39**/\r
40EFI_STATUS\r
41EFIAPI\r
42Tpm12SaveState (\r
43 VOID\r
44 );\r
45\r
c1d93242
JY
46/**\r
47 Send ForceClear command to TPM1.2.\r
48\r
49 @retval EFI_SUCCESS Operation completed successfully.\r
50 @retval EFI_DEVICE_ERROR Unexpected device behavior.\r
51**/\r
52EFI_STATUS\r
53EFIAPI\r
54Tpm12ForceClear (\r
55 VOID\r
56 );\r
57\r
58#endif\r