TianoCore EDK2 master
Loading...
Searching...
No Matches
PhysicalPresencePei.c File Reference

Go to the source code of this file.

Functions

BOOLEAN EFIAPI LockTpmPhysicalPresence (IN CONST EFI_PEI_SERVICES **PeiServices)
 
EFI_STATUS EFIAPI PeimEntry (IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices)
 

Variables

PEI_LOCK_PHYSICAL_PRESENCE_PPI mLockPhysicalPresencePpi
 
EFI_PEI_PPI_DESCRIPTOR mLockPhysicalPresencePpiList
 

Detailed Description

This driver produces PEI_LOCK_PHYSICAL_PRESENCE_PPI to indicate whether TPM need be locked or not. It can be replaced by a platform specific driver.

Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PhysicalPresencePei.c.

Function Documentation

◆ LockTpmPhysicalPresence()

BOOLEAN EFIAPI LockTpmPhysicalPresence ( IN CONST EFI_PEI_SERVICES **  PeiServices)

This interface returns whether TPM physical presence needs be locked or not.

Parameters
[in]PeiServicesThe pointer to the PEI Services Table.
Return values
TRUEThe TPM physical presence should be locked.
FALSEThe TPM physical presence cannot be locked.

Definition at line 57 of file PhysicalPresencePei.c.

◆ PeimEntry()

EFI_STATUS EFIAPI PeimEntry ( IN EFI_PEI_FILE_HANDLE  FileHandle,
IN CONST EFI_PEI_SERVICES **  PeiServices 
)

Entry point of this module.

It installs lock physical presence PPI.

Parameters
[in]FileHandleHandle of the file being invoked.
[in]PeiServicesDescribes the list of possible PEI Services.
Returns
Status of install lock physical presence PPI.

Definition at line 122 of file PhysicalPresencePei.c.

Variable Documentation

◆ mLockPhysicalPresencePpi

PEI_LOCK_PHYSICAL_PRESENCE_PPI mLockPhysicalPresencePpi
Initial value:
= {
}
BOOLEAN EFIAPI LockTpmPhysicalPresence(IN CONST EFI_PEI_SERVICES **PeiServices)

Definition at line 36 of file PhysicalPresencePei.c.

◆ mLockPhysicalPresencePpiList

EFI_PEI_PPI_DESCRIPTOR mLockPhysicalPresencePpiList
Initial value:
= {
EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
&gPeiLockPhysicalPresencePpiGuid,
&mLockPhysicalPresencePpi
}

Definition at line 40 of file PhysicalPresencePei.c.