]>
Commit | Line | Data |
---|---|---|
607599bf | 1 | /** @file\r |
2 | Ihis library is intended to be used by BDS modules.\r | |
3 | This library will lock TPM after executing TPM request.\r | |
4 | \r | |
48211402 | 5 | Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r |
607599bf | 6 | This program and the accompanying materials \r |
7 | are licensed and made available under the terms and conditions of the BSD License \r | |
8 | which accompanies this distribution. The full text of the license may be found at \r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _TCG_PHYSICAL_PRESENCE_LIB_H_\r | |
17 | #define _TCG_PHYSICAL_PRESENCE_LIB_H_\r | |
18 | \r | |
19 | /**\r | |
20 | Check and execute the pending TPM request and Lock TPM.\r | |
21 | \r | |
22 | The TPM request may come from OS or BIOS. This API will display request information and wait \r | |
23 | for user confirmation if TPM request exists. The TPM request will be sent to TPM device after\r | |
24 | the TPM request is confirmed, and one or more reset may be required to make TPM request to \r | |
25 | take effect. At last, it will lock TPM to prevent TPM state change by malware.\r | |
26 | \r | |
27 | This API should be invoked after console in and console out are all ready as they are required\r | |
28 | to display request information and get user input to confirm the request. This API should also \r | |
29 | be invoked as early as possible as TPM is locked in this function.\r | |
30 | \r | |
31 | **/\r | |
32 | VOID\r | |
33 | EFIAPI\r | |
34 | TcgPhysicalPresenceLibProcessRequest (\r | |
35 | VOID\r | |
36 | );\r | |
37 | \r | |
48211402 | 38 | /**\r |
39 | Check if the pending TPM request needs user input to confirm.\r | |
40 | \r | |
41 | The TPM request may come from OS. This API will check if TPM request exists and need user\r | |
42 | input to confirmation.\r | |
43 | \r | |
44 | @retval TRUE TPM needs input to confirm user physical presence.\r | |
45 | @retval FALSE TPM doesn't need input to confirm user physical presence.\r | |
46 | \r | |
47 | **/\r | |
48 | BOOLEAN\r | |
49 | EFIAPI\r | |
50 | TcgPhysicalPresenceLibNeedUserConfirm(\r | |
51 | VOID\r | |
52 | );\r | |
53 | \r | |
607599bf | 54 | #endif\r |