summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/pnor_common.H
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2016-02-19 10:19:17 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-05-11 17:13:59 -0400
commit2846d635adc08c844d68d68f7a7e2ff885c4fad5 (patch)
tree326a64051d3868799c74df55affc252a6a9861f9 /src/usr/pnor/pnor_common.H
parent483342c80d5431cd5866ee64464d62b32bf33b56 (diff)
downloadtalos-hostboot-2846d635adc08c844d68d68f7a7e2ff885c4fad5.tar.gz
talos-hostboot-2846d635adc08c844d68d68f7a7e2ff885c4fad5.zip
Send hash of pnor sections to TPM
Replay log events to TPM after initialization Change-Id: Ibab5e28790324c28a7cd9fb2805041d7a896376a RTC:125290 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23898 Tested-by: Jenkins Server Reviewed-by: Timothy R. Block <block@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/pnor_common.H')
-rw-r--r--src/usr/pnor/pnor_common.H13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/pnor/pnor_common.H b/src/usr/pnor/pnor_common.H
index 3bf6022d7..e8b6bd4f8 100644
--- a/src/usr/pnor/pnor_common.H
+++ b/src/usr/pnor/pnor_common.H
@@ -28,6 +28,7 @@
#include <pnor/pnorif.H>
#include "pnor_utils.H"
#include "ffs.h"
+#include <secureboot/service.H>
/************************************************************
* Provides common functions for Hostboot IPL and runtime
@@ -72,6 +73,18 @@ namespace PNOR {
void physicalToMmioOffset(uint64_t i_hbbAddress,
uint64_t& o_mmioOffset);
+ /**
+ * @brief Reads version header of section, hashes it, and extends to tpm
+ * buffer list.
+ *
+ * @parm i_addr Offset into flash to read
+ * @parm i_size Number of bytes to read
+ * @parm i_name Name of PNOR section
+ *
+ * @return Error from operation
+ */
+ errlHndl_t extendHash(uint64_t i_addr, size_t i_size, const char* i_name);
+
}
#endif
OpenPOWER on IntegriCloud