diff options
Diffstat (limited to 'src/include/usr')
| -rw-r--r-- | src/include/usr/secureboot/trustedboot_reasoncodes.H | 8 | ||||
| -rw-r--r-- | src/include/usr/secureboot/trustedbootif.H | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/include/usr/secureboot/trustedboot_reasoncodes.H b/src/include/usr/secureboot/trustedboot_reasoncodes.H index c636681fb..77d237012 100644 --- a/src/include/usr/secureboot/trustedboot_reasoncodes.H +++ b/src/include/usr/secureboot/trustedboot_reasoncodes.H @@ -49,6 +49,10 @@ namespace TRUSTEDBOOT MOD_TPM_CMD_GETCAPFWVERSION = 0x03, MOD_TPM_MARSHALCMDDATA = 0x04, MOD_TPM_UNMARSHALRESPDATA = 0x05, + MOD_TPM_VERIFYFUNCTIONAL = 0x06, + + MOD_TPMLOGMGR_INITIALIZE = 0x10, + MOD_TPMLOGMGR_ADDEVENT = 0x11, }; enum TRUSTEDReasonCode @@ -65,6 +69,10 @@ namespace TRUSTEDBOOT RC_TPM_MARSHALING_FAIL = SECURE_COMP_ID | 0xA7, RC_TPM_UNMARSHAL_INVALID_CMD = SECURE_COMP_ID | 0xA8, RC_TPM_UNMARSHALING_FAIL = SECURE_COMP_ID | 0xA9, + RC_TPMLOGMGR_ADDEVENT_FAIL = SECURE_COMP_ID | 0xAA, + RC_TPMLOGMGR_ADDEVENTMARSH_FAIL = SECURE_COMP_ID | 0xAB, + RC_TPMLOGMGR_INIT_FAIL = SECURE_COMP_ID | 0xAC, + RC_TPM_NOFUNCTIONALTPM_FAIL = SECURE_COMP_ID | 0xAD, }; #ifdef __cplusplus } diff --git a/src/include/usr/secureboot/trustedbootif.H b/src/include/usr/secureboot/trustedbootif.H index f9e4c1e48..acd9a867f 100644 --- a/src/include/usr/secureboot/trustedbootif.H +++ b/src/include/usr/secureboot/trustedbootif.H @@ -39,6 +39,7 @@ namespace TRUSTEDBOOT { + struct _TpmLogMgr; /// Track system TPM status struct TpmTarget @@ -48,20 +49,21 @@ namespace TRUSTEDBOOT uint8_t initAttempted:1;///< Has TPM init been run uint8_t available:1; ///< Is TPM physically in system uint8_t failed:1; ///< Is TPM currently failed + struct _TpmLogMgr* logMgr; ///< Event log manager for TPM mutex_t tpmMutex; ///< TPM Mutex TpmTarget(); }; /// TPM PCR designations - enum TPM_Pcr + typedef enum { PCR_0 = 0, PCR_1 = 1, PCR_4 = 4, PCR_DEBUG = 16, PCR_MAX = 16, - }; + } TPM_Pcr; /** |

