summaryrefslogtreecommitdiffstats
path: root/src/include/usr/secureboot/trustedbootif.H
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2017-04-05 09:38:19 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-23 11:22:58 -0400
commit9349e6ece944f284f59b1b9315f27a82df60d196 (patch)
tree5c89628f4fea6fe337c73a11d81cd46adc44396b /src/include/usr/secureboot/trustedbootif.H
parent5865a928059b01c1a467003f8328debd3e63a452 (diff)
downloadtalos-hostboot-9349e6ece944f284f59b1b9315f27a82df60d196.tar.gz
talos-hostboot-9349e6ece944f284f59b1b9315f27a82df60d196.zip
Trustedboot support to log different event types
Change-Id: I811e9bd38c8c365acbcf204fa638ec0eb7302b7e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38879 Reviewed-by: Timothy R. Block <block@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/secureboot/trustedbootif.H')
-rw-r--r--src/include/usr/secureboot/trustedbootif.H27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/usr/secureboot/trustedbootif.H b/src/include/usr/secureboot/trustedbootif.H
index 6b54cadeb..8f79756d9 100644
--- a/src/include/usr/secureboot/trustedbootif.H
+++ b/src/include/usr/secureboot/trustedbootif.H
@@ -81,6 +81,31 @@ namespace TRUSTEDBOOT
IMPLEMENTATION_PCR = 24, ///< The number of PCRs implemented by TPM
} TPM_Pcr;
+ /// TCG PC Client Platform Firmware Profile Spec Family "2.0" v00.50
+ typedef enum : uint8_t
+ {
+ EV_PREBOOT_CERT = 0x00,
+ EV_POST_CODE = 0x01,
+ EV_UNUSED = 0x02,
+ EV_NO_ACTION = 0x03,
+ EV_SEPARATOR = 0x04,
+ EV_ACTION = 0x05,
+ EV_EVENT_TAG = 0x06,
+ EV_S_CRTM_CONTENTS = 0x07,
+ EV_S_CRTM_VERSION = 0x08,
+ EV_CPU_MICROCODE = 0x09,
+ EV_PLATFORM_CONFIG_FLAGS = 0x0A,
+ EV_TABLE_OF_DEVICES = 0x0B,
+ EV_COMPACT_HASH = 0x0C,
+ EV_IPL = 0x0D, ///< Deprecated
+ EV_IPL_PARTITION_DATA = 0x0E, ///< Deprecated
+ EV_NONHOST_CODE = 0x0F,
+ EV_NONHOST_CONFIG = 0x10,
+ EV_NONHOST_INFO = 0x11,
+ EV_OMIT_BOOT_DEVICE_EVENTS = 0x12,
+ EV_INVALID ///< Used for error checking
+ } EventTypes;
+
/**
* @brief Initialize trusted boot/TPM components for the master TPM
@@ -95,6 +120,7 @@ namespace TRUSTEDBOOT
/**
* @brief Extend a measurement into the TPMs and log atomically
* @param[in] i_pcr PCR to write to
+ * @param[in] i_eventType Event type to log
* @param[in] i_digest Digest value to write to PCR
* @param[in] i_digestSize Byte size of i_digest data
* @param[in] i_logMsg Null terminated log message, truncated at 128 chars
@@ -105,6 +131,7 @@ namespace TRUSTEDBOOT
* size being used
*/
errlHndl_t pcrExtend(TPM_Pcr i_pcr,
+ EventTypes i_eventType,
const uint8_t* i_digest,
size_t i_digestSize,
const char* i_logMsg,
OpenPOWER on IntegriCloud