2011-09-27 10:44:33 +02:00
|
|
|
/** @file
|
2016-10-17 03:26:13 +02:00
|
|
|
This library is intended to be used by BDS modules.
|
2011-09-27 10:44:33 +02:00
|
|
|
This library will lock TPM after executing TPM request.
|
|
|
|
|
2018-06-27 15:13:09 +02:00
|
|
|
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:56 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2011-09-27 10:44:33 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _TCG_PHYSICAL_PRESENCE_LIB_H_
|
|
|
|
#define _TCG_PHYSICAL_PRESENCE_LIB_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
Check and execute the pending TPM request and Lock TPM.
|
|
|
|
|
2018-06-27 15:13:09 +02:00
|
|
|
The TPM request may come from OS or BIOS. This API will display request information and wait
|
2011-09-27 10:44:33 +02:00
|
|
|
for user confirmation if TPM request exists. The TPM request will be sent to TPM device after
|
2018-06-27 15:13:09 +02:00
|
|
|
the TPM request is confirmed, and one or more reset may be required to make TPM request to
|
2011-09-27 10:44:33 +02:00
|
|
|
take effect. At last, it will lock TPM to prevent TPM state change by malware.
|
2018-06-27 15:13:09 +02:00
|
|
|
|
2011-09-27 10:44:33 +02:00
|
|
|
This API should be invoked after console in and console out are all ready as they are required
|
2018-06-27 15:13:09 +02:00
|
|
|
to display request information and get user input to confirm the request. This API should also
|
2011-09-27 10:44:33 +02:00
|
|
|
be invoked as early as possible as TPM is locked in this function.
|
2018-06-27 15:13:09 +02:00
|
|
|
|
2011-09-27 10:44:33 +02:00
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
TcgPhysicalPresenceLibProcessRequest (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2012-11-01 05:46:26 +01:00
|
|
|
/**
|
|
|
|
Check if the pending TPM request needs user input to confirm.
|
|
|
|
|
|
|
|
The TPM request may come from OS. This API will check if TPM request exists and need user
|
|
|
|
input to confirmation.
|
2018-06-27 15:13:09 +02:00
|
|
|
|
2012-11-01 05:46:26 +01:00
|
|
|
@retval TRUE TPM needs input to confirm user physical presence.
|
|
|
|
@retval FALSE TPM doesn't need input to confirm user physical presence.
|
|
|
|
|
|
|
|
**/
|
|
|
|
BOOLEAN
|
|
|
|
EFIAPI
|
|
|
|
TcgPhysicalPresenceLibNeedUserConfirm (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2011-09-27 10:44:33 +02:00
|
|
|
#endif
|