Tcg2PhysicalPresenceData.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved. <BR>
  7. SPDX-License-Identifier: BSD-2-Clause-Patent
  8. **/
  9. #ifndef __TCG2_PHYSICAL_PRESENCE_DATA_GUID_H__
  10. #define __TCG2_PHYSICAL_PRESENCE_DATA_GUID_H__
  11. #define EFI_TCG2_PHYSICAL_PRESENCE_DATA_GUID \
  12. { \
  13. 0xaeb9c5c1, 0x94f1, 0x4d02, { 0xbf, 0xd9, 0x46, 0x2, 0xdb, 0x2d, 0x3c, 0x54 } \
  14. }
  15. #define TCG2_PHYSICAL_PRESENCE_VARIABLE L"Tcg2PhysicalPresence"
  16. typedef struct {
  17. UINT8 PPRequest; ///< Physical Presence request command.
  18. UINT32 PPRequestParameter; ///< Physical Presence request Parameter.
  19. UINT8 LastPPRequest;
  20. UINT32 PPResponse;
  21. } EFI_TCG2_PHYSICAL_PRESENCE;
  22. //
  23. // This variable is used to save TCG2 Management Flags and corresponding operations.
  24. // It should be protected from malicious software (e.g. Set it as read-only variable).
  25. //
  26. #define TCG2_PHYSICAL_PRESENCE_FLAGS_VARIABLE L"Tcg2PhysicalPresenceFlags"
  27. typedef struct {
  28. UINT32 PPFlags;
  29. } EFI_TCG2_PHYSICAL_PRESENCE_FLAGS;
  30. extern EFI_GUID gEfiTcg2PhysicalPresenceGuid;
  31. #endif