summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/trustedboot.H
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2017-04-21 14:44:18 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-28 14:16:04 -0400
commitf2cf9b470331c9607d11881108fc4fa74f20b4a4 (patch)
tree7552045d38b2bef4cee1261ba1f99b87c692c469 /src/usr/secureboot/trusted/trustedboot.H
parent246654c69f0b76642662a20c374792ea21e2076f (diff)
downloadtalos-hostboot-f2cf9b470331c9607d11881108fc4fa74f20b4a4.tar.gz
talos-hostboot-f2cf9b470331c9607d11881108fc4fa74f20b4a4.zip
Update 'is TPM Required' checking to include the use of a new sensor
This commit adds the support to read the new "is TPM Required" sensor and updates the decision tree of whether or not the system requires a TPM to be present. Change-Id: I61871935d59272351ea1aa769641579efeee2f7e RTC:167580 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39592 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Timothy R. Block <block@us.ibm.com> Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/secureboot/trusted/trustedboot.H')
-rw-r--r--src/usr/secureboot/trusted/trustedboot.H15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/usr/secureboot/trusted/trustedboot.H b/src/usr/secureboot/trusted/trustedboot.H
index 64a3bd727..660bf92de 100644
--- a/src/usr/secureboot/trusted/trustedboot.H
+++ b/src/usr/secureboot/trusted/trustedboot.H
@@ -202,6 +202,21 @@ void getTpmWithRoleOf(
TARGETING::TPM_ROLE i_tpmRole,
TARGETING::Target*& o_pTpm);
+/**
+ * @brief Returns value of TPM Sensor if it is available
+ * All error handing is contained in the function and the output value
+ * is only valid if the function returns TRUE
+ *
+ * @param[out] o_isTpmRequired Value returned from TPM Required sensor:
+ * TRUE if TPM is required; FALSE if TPM is NOT required
+ * NOTE: this parameter is only valid if this function returns TRUE
+ *
+ * @return bool Returns TRUE if sensor was available and found without error;
+ * otherwise returns FALSE
+ */
+bool getTpmRequiredSensorValue(
+ bool& o_isTpmRequired);
+
} // end TRUSTEDBOOT namespace
#endif
OpenPOWER on IntegriCloud