Implement Tcg physical presence as a library instead of DXE driver in order that TPM can be locked as early as possible.
Signed-off-by: gdong1 Reviewed-by: hhtian Reviewed-by: niruiyu Reviewed-by: xdu2 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12447 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
38
SecurityPkg/Include/Library/TcgPhysicalPresenceLib.h
Normal file
38
SecurityPkg/Include/Library/TcgPhysicalPresenceLib.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/** @file
|
||||
Ihis library is intended to be used by BDS modules.
|
||||
This library will lock TPM after executing TPM request.
|
||||
|
||||
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _TCG_PHYSICAL_PRESENCE_LIB_H_
|
||||
#define _TCG_PHYSICAL_PRESENCE_LIB_H_
|
||||
|
||||
/**
|
||||
Check and execute the pending TPM request and Lock TPM.
|
||||
|
||||
The TPM request may come from OS or BIOS. This API will display request information and wait
|
||||
for user confirmation if TPM request exists. The TPM request will be sent to TPM device after
|
||||
the TPM request is confirmed, and one or more reset may be required to make TPM request to
|
||||
take effect. At last, it will lock TPM to prevent TPM state change by malware.
|
||||
|
||||
This API should be invoked after console in and console out are all ready as they are required
|
||||
to display request information and get user input to confirm the request. This API should also
|
||||
be invoked as early as possible as TPM is locked in this function.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
TcgPhysicalPresenceLibProcessRequest (
|
||||
VOID
|
||||
);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user