]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This library is intended to be used by BDS modules.\r | |
3 | This library will lock TPM after executing TPM request.\r | |
4 | \r | |
5 | Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r | |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
7 | \r | |
8 | **/\r | |
9 | \r | |
10 | #ifndef _TCG_PHYSICAL_PRESENCE_LIB_H_\r | |
11 | #define _TCG_PHYSICAL_PRESENCE_LIB_H_\r | |
12 | \r | |
13 | /**\r | |
14 | Check and execute the pending TPM request and Lock TPM.\r | |
15 | \r | |
16 | The TPM request may come from OS or BIOS. This API will display request information and wait\r | |
17 | for user confirmation if TPM request exists. The TPM request will be sent to TPM device after\r | |
18 | the TPM request is confirmed, and one or more reset may be required to make TPM request to\r | |
19 | take effect. At last, it will lock TPM to prevent TPM state change by malware.\r | |
20 | \r | |
21 | This API should be invoked after console in and console out are all ready as they are required\r | |
22 | to display request information and get user input to confirm the request. This API should also\r | |
23 | be invoked as early as possible as TPM is locked in this function.\r | |
24 | \r | |
25 | **/\r | |
26 | VOID\r | |
27 | EFIAPI\r | |
28 | TcgPhysicalPresenceLibProcessRequest (\r | |
29 | VOID\r | |
30 | );\r | |
31 | \r | |
32 | /**\r | |
33 | Check if the pending TPM request needs user input to confirm.\r | |
34 | \r | |
35 | The TPM request may come from OS. This API will check if TPM request exists and need user\r | |
36 | input to confirmation.\r | |
37 | \r | |
38 | @retval TRUE TPM needs input to confirm user physical presence.\r | |
39 | @retval FALSE TPM doesn't need input to confirm user physical presence.\r | |
40 | \r | |
41 | **/\r | |
42 | BOOLEAN\r | |
43 | EFIAPI\r | |
44 | TcgPhysicalPresenceLibNeedUserConfirm(\r | |
45 | VOID\r | |
46 | );\r | |
47 | \r | |
48 | #endif\r |