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, 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
37 #define TREE_FLAG_NO_PPI_CLEAR BIT1
38 #define TREE_FLAG_RESET_TRACK BIT3
41 // This variable is used to save TPM Management Flags and corresponding operations.
42 // It should be protected from malicious software (e.g. Set it as read-only variable).
44 #define TREE_PHYSICAL_PRESENCE_FLAGS_VARIABLE L"TrEEPhysicalPresenceFlags"
47 // The definition of physical presence operation actions
49 #define TREE_PHYSICAL_PRESENCE_NO_ACTION 0
50 #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR 5
51 #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_2 14
52 #define TREE_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17
53 #define TREE_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18
54 #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_3 21
55 #define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_4 22
57 #define TREE_PHYSICAL_PRESENCE_NO_ACTION_MAX 22
59 extern EFI_GUID gEfiTrEEPhysicalPresenceGuid
;