From 5bdb1f8ec34124c68db869dbb46b27e5a5fc24b5 Mon Sep 17 00:00:00 2001 From: Jaymes Wilks Date: Fri, 24 Feb 2017 15:08:57 -0600 Subject: Populate HDAT TPM Info Populate TPM Info during the secureboot runtime routine. Change-Id: I02b960c175d51dc9b5941e15a529bd1587747444 RTC:166834 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37187 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Stephen M. Cprek Reviewed-by: Michael Baiocchi Reviewed-by: Daniel M. Crowell --- src/include/usr/runtime/runtime.H | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/include/usr/runtime/runtime.H') diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H index 0ece1744a..7086ef55b 100644 --- a/src/include/usr/runtime/runtime.H +++ b/src/include/usr/runtime/runtime.H @@ -75,10 +75,28 @@ errlHndl_t populate_hbRuntimeData( void ); * values acquired via the secureboot module from a verified source, and * so, henceforth are available to the host at runtime. * - * @return errlHndl_t NULL on Success + * @return errlHndl_t nullptr on Success else pointer to error log */ errlHndl_t populate_hbSecurebootData( void ); +/** + * @brief Populate TPM Info in mainstore + * + * @description Populates the Secure Boot TPM Instance Info section of HDAT + * with trusted information acquired via secure methods, and overwrites + * any untrusted information that was already there. + * + * @return errlHndl_t nullptr on Success else pointer to error log + */ +errlHndl_t populate_hbTpmInfo( void ); + +/** + * @brief Fills in Tpm Info in HDAT for current node + * + * @return errlHndl_t nullptr on success else pointer to error log + */ +errlHndl_t populate_TpmInfoByNode(); + /** * @brief Fills in HBRT for given NODE * @@ -127,6 +145,8 @@ enum SectionId NACA, //< NACA HBRT, //< Hostboot Runtime HBRT_DATA, //< Hostboot Runtime Data + IPMI_DATA, //< IPMI Sensor Mapping Data + NODE_TPM_RELATED, //< Node TPM Related Data RESERVED_MEM, //< Hostboot's Reserved Mainstore Memory LAST_SECTION = RESERVED_MEM //< Placeholder for arrays }; -- cgit v1.2.3