]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg/TcgConfigDxe: Replace TpmCommLib with Tpm12DeviceLib
authorMichael Kinney <michael.d.kinney@intel.com>
Thu, 21 Jan 2016 19:29:35 +0000 (19:29 +0000)
committermdkinney <mdkinney@Edk2>
Thu, 21 Jan 2016 19:29:35 +0000 (19:29 +0000)
Update TCG drivers for TPM 1.2 devices to use Tpm12DeviceLib instead
of TpmCommLib.  This is required to support TPM 1.2 hardware devices
that are not on LPC bus.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19723 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDriver.c
SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf
SecurityPkg/Tcg/TcgConfigDxe/TcgConfigImpl.h

index 787251828f0459cba3f3cf94dcccb4c99d536a45..29ec7b06213ffdda59a2206979bfa5f10690f908 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The module entry point for Tcg configuration module.\r
 \r
-Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -43,7 +43,7 @@ TcgConfigDriverEntryPoint (
     return EFI_UNSUPPORTED;\r
   }\r
 \r
-  Status = TisPcRequestUseTpm ((TIS_TPM_HANDLE) (UINTN) TPM_BASE_ADDRESS);\r
+  Status = Tpm12RequestUseTpm ();\r
   if (EFI_ERROR (Status)) {\r
     DEBUG ((EFI_D_ERROR, "TPM not detected!\n"));\r
     return Status;\r
index bd655c8870b7f0c6506626d50fdb1014e3ed6f87..82fc35eea00f79c88b8cdc2c5e9d20f21d1a7309 100644 (file)
@@ -2,7 +2,7 @@
 #  Provides the capability to update TPM state setup browser\r
 #  By this module, user may enable/disable/activate/deactivate/clear TPM, etc.\r
 #\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution. The full text of the license may be found at\r
@@ -52,7 +52,7 @@
   HiiLib\r
   PcdLib\r
   PrintLib\r
-  TpmCommLib\r
+  Tpm12DeviceLib\r
 \r
 [Guids]\r
   ## SOMETIMES_PRODUCES ## Variable:L"PhysicalPresence"\r
index ecc6a6d85534d17a762cd4826e007c821844df10..acc6062a9b3501b0cb5d99b6711f05c6a414b0dc 100644 (file)
@@ -2,7 +2,7 @@
   The header file of HII Config Access protocol implementation of TCG\r
   configuration module.\r
 \r
-Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/DevicePathLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/PrintLib.h>\r
-#include <Library/TpmCommLib.h>\r
+#include <Library/Tpm12DeviceLib.h>\r
 \r
 #include <Guid/MdeModuleHii.h>\r
 \r