]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Include/Guid/Tcg2PhysicalPresenceData.h
SecurityPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / SecurityPkg / Include / Guid / Tcg2PhysicalPresenceData.h
1 /** @file
2 Define the variable data structures used for TCG2 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
5 is saved to variable.
6
7 Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved. <BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
9
10 **/
11
12 #ifndef __TCG2_PHYSICAL_PRESENCE_DATA_GUID_H__
13 #define __TCG2_PHYSICAL_PRESENCE_DATA_GUID_H__
14
15 #define EFI_TCG2_PHYSICAL_PRESENCE_DATA_GUID \
16 { \
17 0xaeb9c5c1, 0x94f1, 0x4d02, { 0xbf, 0xd9, 0x46, 0x2, 0xdb, 0x2d, 0x3c, 0x54 } \
18 }
19
20 #define TCG2_PHYSICAL_PRESENCE_VARIABLE L"Tcg2PhysicalPresence"
21
22 typedef struct {
23 UINT8 PPRequest; ///< Physical Presence request command.
24 UINT32 PPRequestParameter; ///< Physical Presence request Parameter.
25 UINT8 LastPPRequest;
26 UINT32 PPResponse;
27 } EFI_TCG2_PHYSICAL_PRESENCE;
28
29 //
30 // This variable is used to save TCG2 Management Flags and corresponding operations.
31 // It should be protected from malicious software (e.g. Set it as read-only variable).
32 //
33 #define TCG2_PHYSICAL_PRESENCE_FLAGS_VARIABLE L"Tcg2PhysicalPresenceFlags"
34 typedef struct {
35 UINT32 PPFlags;
36 } EFI_TCG2_PHYSICAL_PRESENCE_FLAGS;
37
38 extern EFI_GUID gEfiTcg2PhysicalPresenceGuid;
39
40 #endif
41