]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c
SecurityPkg: Add TPM PTP support in TPM2 device lib.
authorYao, Jiewen <jiewen.yao@intel.com>
Tue, 26 Jan 2016 01:29:38 +0000 (01:29 +0000)
committerjyao1 <jyao1@Edk2>
Tue, 26 Jan 2016 01:29:38 +0000 (01:29 +0000)
commit79e748cf29f6d9a92f28d44d20eef8d6c24c4092
treef5cdeddf08d2d0c2f85bc1e257ce4185b01a234b
parentac6f9d7c127523a9509ede36e053adff8acfdbe1
SecurityPkg: Add TPM PTP support in TPM2 device lib.

TPM2 hardware may support PTP FIFO/TIS interface
or PTP CRB interface. The original lib only handles
PTP FIFO/TIS interface. This patch adds PTP CRB
interface support.
The current logic is that lib will runtime detect
TPM device interface (CRB or FIFO/TIS) and call
proper function to access hardware.

It is compatible for old TPM2 FIFO/TIS device and
new TPM2 CRB device.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19740 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.uni
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.c
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.uni
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.c [new file with mode: 0644]
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c