Add TPM2 implementation.
signed off by: jiewen.yao@intel.com reviewed by: guo.dong@intel.com git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14687 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
38
SecurityPkg/Include/Guid/TpmInstance.h
Normal file
38
SecurityPkg/Include/Guid/TpmInstance.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/** @file
|
||||
TPM instance guid, used for PcdTpmInstanceGuid.
|
||||
|
||||
Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __TPM_INSTANCE_GUID_H__
|
||||
#define __TPM_INSTANCE_GUID_H__
|
||||
|
||||
#define TPM_DEVICE_INTERFACE_NONE \
|
||||
{ 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
|
||||
|
||||
#define TPM_DEVICE_INTERFACE_TPM12 \
|
||||
{ 0x8b01e5b6, 0x4f19, 0x46e8, { 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc } }
|
||||
|
||||
#define TPM_DEVICE_INTERFACE_TPM20_DTPM \
|
||||
{ 0x286bf25a, 0xc2c3, 0x408c, { 0xb3, 0xb4, 0x25, 0xe6, 0x75, 0x8b, 0x73, 0x17 } }
|
||||
|
||||
extern EFI_GUID gEfiTpmDeviceInstanceNoneGuid;
|
||||
extern EFI_GUID gEfiTpmDeviceInstanceTpm12Guid;
|
||||
extern EFI_GUID gEfiTpmDeviceInstanceTpm20DtpmGuid;
|
||||
|
||||
|
||||
#define TPM_DEVICE_SELECTED_GUID \
|
||||
{ 0x7f4158d3, 0x74d, 0x456d, { 0x8c, 0xb2, 0x1, 0xf9, 0xc8, 0xf7, 0x9d, 0xaa } }
|
||||
|
||||
extern EFI_GUID gEfiTpmDeviceSelectedGuid;
|
||||
|
||||
#endif
|
||||
|
25
SecurityPkg/Include/Guid/TrEEConfigHii.h
Normal file
25
SecurityPkg/Include/Guid/TrEEConfigHii.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/** @file
|
||||
GUIDs used as HII FormSet and HII Package list GUID in TrEEConfig driver.
|
||||
|
||||
Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available under
|
||||
the terms and conditions of the BSD License that accompanies this distribution.
|
||||
The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php.
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __TREE_CONFIG_HII_GUID_H__
|
||||
#define __TREE_CONFIG_HII_GUID_H__
|
||||
|
||||
#define TREE_CONFIG_FORM_SET_GUID \
|
||||
{ \
|
||||
0xc54b425f, 0xaa79, 0x48b4, { 0x98, 0x1f, 0x99, 0x8b, 0x3c, 0x4b, 0x64, 0x1c } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTrEEConfigFormSetGuid;
|
||||
|
||||
#endif
|
62
SecurityPkg/Include/Guid/TrEEPhysicalPresenceData.h
Normal file
62
SecurityPkg/Include/Guid/TrEEPhysicalPresenceData.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/** @file
|
||||
Define the variable data structures used for TrEE physical presence.
|
||||
The TPM2 request from firmware or OS is saved to variable. And it is
|
||||
cleared after it is processed in the next boot cycle. The TPM2 response
|
||||
is saved to variable.
|
||||
|
||||
Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef __TREE_PHYSICAL_PRESENCE_DATA_GUID_H__
|
||||
#define __TREE_PHYSICAL_PRESENCE_DATA_GUID_H__
|
||||
|
||||
#define EFI_TREE_PHYSICAL_PRESENCE_DATA_GUID \
|
||||
{ \
|
||||
0xf24643c2, 0xc622, 0x494e, { 0x8a, 0xd, 0x46, 0x32, 0x57, 0x9c, 0x2d, 0x5b }\
|
||||
}
|
||||
|
||||
#define TREE_PHYSICAL_PRESENCE_VARIABLE L"TrEEPhysicalPresence"
|
||||
|
||||
typedef struct {
|
||||
UINT8 PPRequest; ///< Physical Presence request command.
|
||||
UINT8 LastPPRequest;
|
||||
UINT32 PPResponse;
|
||||
} EFI_TREE_PHYSICAL_PRESENCE;
|
||||
|
||||
//
|
||||
// The definition bit of the flags
|
||||
//
|
||||
#define TREE_FLAG_NO_PPI_CLEAR BIT1
|
||||
#define TREE_FLAG_RESET_TRACK BIT3
|
||||
|
||||
//
|
||||
// This variable is used to save TPM Management Flags and corresponding operations.
|
||||
// It should be protected from malicious software (e.g. Set it as read-only variable).
|
||||
//
|
||||
#define TREE_PHYSICAL_PRESENCE_FLAGS_VARIABLE L"TrEEPhysicalPresenceFlags"
|
||||
|
||||
//
|
||||
// The definition of physical presence operation actions
|
||||
//
|
||||
#define TREE_PHYSICAL_PRESENCE_NO_ACTION 0
|
||||
#define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR 5
|
||||
#define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_2 14
|
||||
#define TREE_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17
|
||||
#define TREE_PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18
|
||||
#define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_3 21
|
||||
#define TREE_PHYSICAL_PRESENCE_CLEAR_CONTROL_CLEAR_4 22
|
||||
|
||||
#define TREE_PHYSICAL_PRESENCE_NO_ACTION_MAX 22
|
||||
|
||||
extern EFI_GUID gEfiTrEEPhysicalPresenceGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user