2 This file defines the lock physical Presence PPI. This PPI is
3 produced by a platform specific PEIM and consumed by the TPM
6 Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #ifndef __PEI_LOCK_PHYSICAL_PRESENCE_H__
12 #define __PEI_LOCK_PHYSICAL_PRESENCE_H__
15 /// Global ID for the PEI_LOCK_PHYSICAL_PRESENCE_PPI_GUID.
17 #define PEI_LOCK_PHYSICAL_PRESENCE_PPI_GUID \
19 0xef9aefe5, 0x2bd3, 0x4031, { 0xaf, 0x7d, 0x5e, 0xfe, 0x5a, 0xbb, 0x9a, 0xd } \
23 /// Forward declaration for the PEI_LOCK_PHYSICAL_PRESENCE_PPI
25 typedef struct _PEI_LOCK_PHYSICAL_PRESENCE_PPI PEI_LOCK_PHYSICAL_PRESENCE_PPI
;
28 This interface returns whether TPM physical presence needs be locked.
30 @param[in] PeiServices The pointer to the PEI Services Table.
32 @retval TRUE The TPM physical presence should be locked.
33 @retval FALSE The TPM physical presence cannot be locked.
38 (EFIAPI
*PEI_LOCK_PHYSICAL_PRESENCE
)(
39 IN CONST EFI_PEI_SERVICES
**PeiServices
43 /// This service abstracts TPM physical presence lock interface. It is necessary for
44 /// safety to convey this information to the TPM driver so that TPM physical presence
45 /// can be locked as early as possible. This PPI is produced by a platform specific
46 /// PEIM and consumed by the TPM PEIM.
48 struct _PEI_LOCK_PHYSICAL_PRESENCE_PPI
{
49 PEI_LOCK_PHYSICAL_PRESENCE LockPhysicalPresence
;
52 extern EFI_GUID gPeiLockPhysicalPresencePpiGuid
;
54 #endif // __PEI_LOCK_PHYSICAL_PRESENCE_H__