]>
Commit | Line | Data |
---|---|---|
c1d93242 JY |
1 | /** @file\r |
2 | This library is used by other modules to send TPM12 command.\r | |
3 | \r | |
4 | Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r | |
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_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 | |
28 | EFI_STATUS\r | |
29 | EFIAPI\r | |
30 | Tpm12Startup (\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 | |
40 | EFI_STATUS\r | |
41 | EFIAPI\r | |
42 | Tpm12SaveState (\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 | |
52 | EFI_STATUS\r | |
53 | EFIAPI\r | |
54 | Tpm12ForceClear (\r | |
55 | VOID\r | |
56 | );\r | |
57 | \r | |
58 | #endif\r |