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