]>
Commit | Line | Data |
---|---|---|
0c18794e | 1 | /** @file\r |
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 | |
4 | PEIM.\r | |
5 | \r | |
6 | Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r | |
7 | This program and the accompanying materials \r | |
8 | are licensed and made available under the terms and conditions of the BSD License \r | |
9 | which accompanies this distribution. The full text of the license may be found at \r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __PEI_LOCK_PHYSICAL_PRESENCE_H__\r | |
18 | #define __PEI_LOCK_PHYSICAL_PRESENCE_H__\r | |
19 | \r | |
20 | ///\r | |
21 | /// Global ID for the PEI_LOCK_PHYSICAL_PRESENCE_PPI_GUID. \r | |
22 | ///\r | |
23 | #define PEI_LOCK_PHYSICAL_PRESENCE_PPI_GUID \\r | |
24 | { \\r | |
25 | 0xef9aefe5, 0x2bd3, 0x4031, { 0xaf, 0x7d, 0x5e, 0xfe, 0x5a, 0xbb, 0x9a, 0xd } \\r | |
26 | }\r | |
27 | \r | |
28 | ///\r | |
29 | /// Forward declaration for the PEI_LOCK_PHYSICAL_PRESENCE_PPI\r | |
30 | ///\r | |
31 | typedef struct _PEI_LOCK_PHYSICAL_PRESENCE_PPI PEI_LOCK_PHYSICAL_PRESENCE_PPI;\r | |
32 | \r | |
33 | /**\r | |
34 | This interface returns whether TPM physical presence needs be locked.\r | |
35 | \r | |
36 | @param[in] PeiServices The pointer to the PEI Services Table.\r | |
37 | \r | |
38 | @retval TRUE The TPM physical presence should be locked.\r | |
39 | @retval FALSE The TPM physical presence cannot be locked.\r | |
40 | \r | |
41 | **/\r | |
42 | typedef\r | |
43 | BOOLEAN\r | |
44 | (EFIAPI *PEI_LOCK_PHYSICAL_PRESENCE)(\r | |
45 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
46 | );\r | |
47 | \r | |
48 | ///\r | |
49 | /// This service abstracts TPM physical presence lock interface. It is necessary for \r | |
50 | /// safety to convey this information to the TPM driver so that TPM physical presence \r | |
51 | /// can be locked as early as possible. This PPI is produced by a platform specific \r | |
52 | /// PEIM and consumed by the TPM PEIM.\r | |
53 | ///\r | |
54 | struct _PEI_LOCK_PHYSICAL_PRESENCE_PPI {\r | |
55 | PEI_LOCK_PHYSICAL_PRESENCE LockPhysicalPresence;\r | |
56 | };\r | |
57 | \r | |
58 | extern EFI_GUID gPeiLockPhysicalPresencePpiGuid;\r | |
59 | \r | |
60 | #endif // __PEI_LOCK_PHYSICAL_PRESENCE_H__ |