]>
Commit | Line | Data |
---|---|---|
607599bf | 1 | /** @file\r |
07309c3d | 2 | This library is intended to be used by BDS modules.\r |
607599bf | 3 | This library will lock TPM after executing TPM request.\r |
4 | \r | |
b3548d32 | 5 | Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r |
289b714b | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
607599bf | 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 | |
b3548d32 | 16 | The TPM request may come from OS or BIOS. This API will display request information and wait\r |
607599bf | 17 | for user confirmation if TPM request exists. The TPM request will be sent to TPM device after\r |
b3548d32 | 18 | the TPM request is confirmed, and one or more reset may be required to make TPM request to\r |
607599bf | 19 | take effect. At last, it will lock TPM to prevent TPM state change by malware.\r |
b3548d32 | 20 | \r |
607599bf | 21 | This API should be invoked after console in and console out are all ready as they are required\r |
b3548d32 | 22 | to display request information and get user input to confirm the request. This API should also\r |
607599bf | 23 | be invoked as early as possible as TPM is locked in this function.\r |
b3548d32 | 24 | \r |
607599bf | 25 | **/\r |
26 | VOID\r | |
27 | EFIAPI\r | |
28 | TcgPhysicalPresenceLibProcessRequest (\r | |
29 | VOID\r | |
30 | );\r | |
31 | \r | |
48211402 | 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 | |
b3548d32 | 37 | \r |
48211402 | 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 | |
607599bf | 48 | #endif\r |