]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Include/Ppi/LockPhysicalPresence.h
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / Include / Ppi / LockPhysicalPresence.h
CommitLineData
0c18794e 1/** @file\r
b3548d32
LG
2 This file defines the lock physical Presence PPI. This PPI is\r
3 produced by a platform specific PEIM and consumed by the TPM\r
0c18794e 4 PEIM.\r
5\r
b3548d32 6Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
289b714b 7SPDX-License-Identifier: BSD-2-Clause-Patent\r
0c18794e 8\r
9**/\r
10\r
11#ifndef __PEI_LOCK_PHYSICAL_PRESENCE_H__\r
12#define __PEI_LOCK_PHYSICAL_PRESENCE_H__\r
13\r
14///\r
b3548d32 15/// Global ID for the PEI_LOCK_PHYSICAL_PRESENCE_PPI_GUID.\r
0c18794e 16///\r
17#define PEI_LOCK_PHYSICAL_PRESENCE_PPI_GUID \\r
18 { \\r
19 0xef9aefe5, 0x2bd3, 0x4031, { 0xaf, 0x7d, 0x5e, 0xfe, 0x5a, 0xbb, 0x9a, 0xd } \\r
20 }\r
21\r
22///\r
23/// Forward declaration for the PEI_LOCK_PHYSICAL_PRESENCE_PPI\r
24///\r
25typedef struct _PEI_LOCK_PHYSICAL_PRESENCE_PPI PEI_LOCK_PHYSICAL_PRESENCE_PPI;\r
26\r
27/**\r
28 This interface returns whether TPM physical presence needs be locked.\r
29\r
30 @param[in] PeiServices The pointer to the PEI Services Table.\r
31\r
32 @retval TRUE The TPM physical presence should be locked.\r
33 @retval FALSE The TPM physical presence cannot be locked.\r
34\r
35**/\r
36typedef\r
37BOOLEAN\r
38(EFIAPI *PEI_LOCK_PHYSICAL_PRESENCE)(\r
39 IN CONST EFI_PEI_SERVICES **PeiServices\r
40);\r
41\r
42///\r
b3548d32
LG
43/// This service abstracts TPM physical presence lock interface. It is necessary for\r
44/// safety to convey this information to the TPM driver so that TPM physical presence\r
45/// can be locked as early as possible. This PPI is produced by a platform specific\r
0c18794e 46/// PEIM and consumed by the TPM PEIM.\r
47///\r
48struct _PEI_LOCK_PHYSICAL_PRESENCE_PPI {\r
49 PEI_LOCK_PHYSICAL_PRESENCE LockPhysicalPresence;\r
50};\r
51\r
52extern EFI_GUID gPeiLockPhysicalPresencePpiGuid;\r
53\r
b3548d32 54#endif // __PEI_LOCK_PHYSICAL_PRESENCE_H__\r