diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /Board/EM/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h | |
download | zprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz |
Diffstat (limited to 'Board/EM/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h')
-rw-r--r-- | Board/EM/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/Board/EM/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h b/Board/EM/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h new file mode 100644 index 0000000..d13e433 --- /dev/null +++ b/Board/EM/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h @@ -0,0 +1,167 @@ +//************************************************************************* +//************************************************************************* +//** ** +//** (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/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.h 1 4/21/14 2:18p Fredericko $ +// +// $Revision: 1 $ +// +// $Date: 4/21/14 2:18p $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/TCG2/Common/TcgPlatformSetupPeiPolicy/TcgPlatformSetupPeiPolicy.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:56p Fredericko +// [TAG] EIP120969 +// [Category] New Feature +// [Description] TCG (TPM20) +// +// 2 12/18/11 10:25p Fredericko +// Changes to support TcgplatformPeiPolicy in relation to O.S. requests. +// +// 1 9/27/11 10:10p Fredericko +// [TAG] EIP67286 +// [Category] Improvement +// [Description] Initial check-in for Tcg Setup policy for pei +// [Files] TcgPlatformSetupPeiPolicy.cif +// TcgPlatformSetupPeiPolicy.c +// TcgPlatformSetupPeiPolicy.h +// TcgPlatformSetupPeiPolicy.sdl +// TcgPlatformSetupPeiPolicy.mak +// TcgPlatformSetupPeiPolicy.dxs +// +// +//********************************************************************** +//<AMI_FHDR_START> +//--------------------------------------------------------------------------- +// Name: TcgPlatformpeipolicy.h +// +// Description: Header file for TcgPlatformpeipolicy +// +//--------------------------------------------------------------------------- +//<AMI_FHDR_END> + +#ifndef _TCG_PLATFORM_SETUP_PEI_POLICY_H_ +#define _TCG_PLATFORM_SETUP_PEI_POLICY_H_ + +#include <Efi.h> +#include <token.h> +#include <Setup.h> +#include <Ppi\ReadOnlyVariable.h> + + + +#define TCG_PLATFORM_SETUP_PEI_POLICY_GUID \ + { \ + 0xa76b4e22, 0xb50a, 0x401d, 0x8b, 0x35, 0x51, 0x24, 0xb0, 0xba, 0x41, 0x4 \ + } + +#define TCG_PPI_SYNC_FLAG_GUID \ + {\ + 0xf3ed95df, 0x828e, 0x41c7, 0xbc, 0xa0, 0x16, 0xc4, 0x19, 0x65, 0xa6, 0x34 \ + } + +#define PEI_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_PEI_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 * GET_TCG_PEI_POLICY)( + IN EFI_PEI_SERVICES **PeiServices , + IN TCG_CONFIGURATION *ConfigFlags +); + + +// +// AMT DXE Platform Policiy ==================================================== +// +typedef struct _TCG_PLATFORM_SETUP_INTERFACE { + UINT8 Revision; + GET_TCG_PEI_POLICY getTcgPeiPolicy; +} TCG_PLATFORM_SETUP_INTERFACE; + + +#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 |