summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2020-05-21 00:58:40 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-05-21 12:23:37 +0000
commitfc72a6ceaa4859ef3043b706100827d4fbcc3bed (patch)
treedd18be62de3f895ee0085d0942d59bf132809283 /OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
parent08c77cce0edd80547a527304c6b4a75e2de2ac9e (diff)
downloadedk2-fc72a6ceaa4859ef3043b706100827d4fbcc3bed.tar.gz
edk2-fc72a6ceaa4859ef3043b706100827d4fbcc3bed.tar.bz2
edk2-fc72a6ceaa4859ef3043b706100827d4fbcc3bed.zip
OvmfPkg/Tcg2ConfigPei: factor out InternalTpm12Detect()
Move the calls to the Tpm12RequestUseTpm() and Tpm12SubmitCommand() Tpm12DeviceLib functions to a separate C file, so that we can override these actions in a subsequent patch. This code movement requires moving the TPM_RSP_GET_TICKS / TestTpm12() helper structure / function too. While at it, give the TestTpm12() function @retval / @return documentation, plus wrap an overlong line in it. Functionally, this patch is a no-op. Cc: Ard Biesheuvel <ard.biesheuvel@arm.com> Cc: Eric Auger <eric.auger@redhat.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Marc-André Lureau <marcandre.lureau@redhat.com> Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Cc: Simon Hardy <simon.hardy@itdev.co.uk> Cc: Stefan Berger <stefanb@linux.ibm.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2728 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20200520225841.17793-3-lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Diffstat (limited to 'OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf')
-rw-r--r--OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf2
1 files changed, 2 insertions, 0 deletions
diff --git a/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf b/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
index b79d0a3fb9..aa996b7da7 100644
--- a/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
+++ b/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
@@ -21,6 +21,8 @@
[Sources]
Tcg2ConfigPeim.c
+ Tpm12Support.c
+ Tpm12Support.h
[Packages]
MdePkg/MdePkg.dec