]>
Commit | Line | Data |
---|---|---|
c1d93242 JY |
1 | /** @file\r |
2 | Define the variable data structures used for TrEE physical presence.\r | |
3 | The TPM2 request from firmware or OS is saved to variable. And it is\r | |
4 | cleared after it is processed in the next boot cycle. The TPM2 response \r | |
5 | is saved to variable.\r | |
6 | \r | |
4610b23a | 7 | Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved. <BR>\r |
c1d93242 JY |
8 | This program and the accompanying materials\r |
9 | are licensed and made available under the terms and conditions of the BSD License\r | |
10 | which accompanies this distribution. The full text of the license may be found at\r | |
11 | http://opensource.org/licenses/bsd-license.php\r | |
12 | \r | |
13 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
14 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | #ifndef __TREE_PHYSICAL_PRESENCE_DATA_GUID_H__\r | |
19 | #define __TREE_PHYSICAL_PRESENCE_DATA_GUID_H__\r | |
20 | \r | |
21 | #define EFI_TREE_PHYSICAL_PRESENCE_DATA_GUID \\r | |
22 | { \\r | |
23 | 0xf24643c2, 0xc622, 0x494e, { 0x8a, 0xd, 0x46, 0x32, 0x57, 0x9c, 0x2d, 0x5b }\\r | |
24 | }\r | |
25 | \r | |
26 | #define TREE_PHYSICAL_PRESENCE_VARIABLE L"TrEEPhysicalPresence"\r | |
27 | \r | |
28 | typedef struct {\r | |
29 | UINT8 PPRequest; ///< Physical Presence request command.\r | |
30 | UINT8 LastPPRequest;\r | |
31 | UINT32 PPResponse;\r | |
32 | } EFI_TREE_PHYSICAL_PRESENCE;\r | |
33 | \r | |
34 | //\r | |
35 | // The definition bit of the flags\r | |
36 | //\r | |
4610b23a | 37 | // BIT0 is reserved\r |
c1d93242 | 38 | #define TREE_FLAG_NO_PPI_CLEAR BIT1\r |
4610b23a | 39 | // BIT2 is reserved\r |
c1d93242 JY |
40 | #define TREE_FLAG_RESET_TRACK BIT3\r |
41 | \r | |
42 | //\r | |
43 | // This variable is used to save TPM Management Flags and corresponding operations.\r | |
44 | // It should be protected from malicious software (e.g. Set it as read-only variable). \r | |
45 | //\r | |
46 | #define TREE_PHYSICAL_PRESENCE_FLAGS_VARIABLE L"TrEEPhysicalPresenceFlags"\r | |
4610b23a JY |
47 | typedef struct {\r |
48 | UINT8 PPFlags;\r | |
49 | } EFI_TREE_PHYSICAL_PRESENCE_FLAGS;\r | |
c1d93242 JY |
50 | \r |
51 | //\r | |
52 | // The definition of physical presence operation actions\r | |
53 | //\r | |
54 | #define TREE_PHYSICAL_PRESENCE_NO_ACTION 0\r | |
55 | #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR 5\r | |
56 | #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_2 14\r | |
57 | #define TREE_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17\r | |
58 | #define TREE_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18\r | |
59 | #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_3 21\r | |
60 | #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_4 22\r | |
61 | \r | |
62 | #define TREE_PHYSICAL_PRESENCE_NO_ACTION_MAX 22\r | |
63 | \r | |
64 | extern EFI_GUID gEfiTrEEPhysicalPresenceGuid;\r | |
65 | \r | |
66 | #endif\r | |
67 | \r |