diff options
Diffstat (limited to 'Board/EM/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h')
-rw-r--r-- | Board/EM/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/Board/EM/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h b/Board/EM/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h new file mode 100644 index 0000000..09637df --- /dev/null +++ b/Board/EM/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h @@ -0,0 +1,165 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//************************************************************************* +//********************************************************************** +// $Header: /Alaska/SOURCE/Modules/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h 1 4/21/14 2:18p Fredericko $ +// +// $Revision: 1 $ +// +// $Date: 4/21/14 2:18p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/TCG2/Common/TcgPlatformSetupPolicy/TcgPlatformSetupPolicy.h $ +// +// 1 4/21/14 2:18p Fredericko +// +// 1 10/08/13 12:05p Fredericko +// Initial Check-In for Tpm-Next module +// +// 1 7/10/13 5:57p Fredericko +// [TAG] EIP120969 +// [Category] New Feature +// [Description] TCG (TPM20) +// +// 1 9/27/11 10:11p Fredericko +// [TAG] EIP67286 +// [Category] Improvement +// [Description] Initial check-in for Tcg Setup policy for Dxe +// [Files] TcgPlatformSetupPolicy.cif +// TcgPlatformSetupPolicy.c +// TcgPlatformSetupPolicy.h +// TcgPlatformSetupPolicy.sdl +// TcgPlatformSetupPolicy.mak +// TcgPlatformSetupPolicy.dxs +// +// +//********************************************************************** +//<AMI_FHDR_START> +//---------------------------------------------------------------------------- +// +// Name: TcgPlatformpolicy.h +// +// Description: Header file for TcgPlatformpolicy +// +//---------------------------------------------------------------------------- +//<AMI_FHDR_END> +#ifndef _TCG_PLATFORM_SETUP_POLICY_H_ +#define _TCG_PLATFORM_SETUP_POLICY_H_ + +#include <Efi.h> +#include <token.h> +#include <Setup.h> + + + +#define TCG_PLATFORM_SETUP_POLICY_GUID \ + { \ + 0xbb6cbeff, 0xe072, 0x40d2, 0xa6, 0xeb, 0xba, 0xb7, 0x5b, 0xde, 0x87, 0xe7 \ + } + +#define TCG_PPI_SYNC_FLAG_GUID \ + {\ + 0xf3ed95df, 0x828e, 0x41c7, 0xbc, 0xa0, 0x16, 0xc4, 0x19, 0x65, 0xa6, 0x34 \ + } + +#define TCG_INTERNAL_FLAGS_GUID \ + {\ + 0x70fff0ff, 0xa543, 0x45b9, 0x8b, 0xe3, 0x1b, 0xdb, 0x90, 0x41, 0x20, 0x80 \ + } + + +// +// Protocol revision number +// Any backwards compatible changes to this protocol will result in an update in the revision number +// Major changes will require publication of a new protocol +// +#define TCG_PLATFORM_SETUP_PROTOCOL_REVISION_1 1 + +#pragma pack(1) + +typedef struct { + // + // Byte 0, bit definition for functionality enable/disable + // + UINT8 TpmSupport; // 0: Disabled; 1: Enabled + UINT8 TcmSupport; // 0: Disabled; 1: Enabled + UINT8 TpmEnable; // 0: Disabled; 1: Enabled + UINT8 TpmAuthenticate; + UINT8 TpmOperation; // 0: Disabled; 1: Enabled + UINT8 DisallowTpm; // 0: Disabled; 1: Enabled + UINT8 Reserved1; + UINT8 Reserved2; + + // + // Byte 1, bit definition for Status Information + // + UINT8 TpmHardware; // 0: Disabled; 1: Enabled + UINT8 TpmEnaDisable; + UINT8 TpmActDeact; + UINT8 TpmOwnedUnowned; + UINT8 TcgSupportEnabled; // 0: Disabled; 1: Enabled + UINT8 TpmError; + UINT8 PpiSetupSyncFlag; + UINT8 Reserved3; + + // + // Byte 2, Reserved bytes + // + UINT8 Reserved4; + + // + // Byte 3, Reserved bytes + // + UINT8 Reserved5; + + //TPM 20 Configuration + UINT8 Tpm20Device; +} TCG_CONFIGURATION; + + +#pragma pack() + +typedef +EFI_STATUS +(EFIAPI * UPDATE_AMI_TCG_STATUS_FLAGS)( + TCG_CONFIGURATION *StatusFlags, + BOOLEAN UpdateNvram +); + + +// +// AMT DXE Platform Policiy ==================================================== +// +typedef struct _TCG_PLATFORM_SETUP_PROTOCOL { + UINT8 Revision; + TCG_CONFIGURATION ConfigFlags; + UPDATE_AMI_TCG_STATUS_FLAGS UpdateStatusFlags; +} TCG_PLATFORM_SETUP_PROTOCOL; + + +#endif + +//************************************************************************* +//************************************************************************* +//** ** +//** (C)Copyright 1985-2011, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//************************************************************************* +//*************************************************************************
\ No newline at end of file |