diff options
Diffstat (limited to 'include/flash_log.h')
-rw-r--r-- | include/flash_log.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/flash_log.h b/include/flash_log.h index cc6c292d49..30bd326712 100644 --- a/include/flash_log.h +++ b/include/flash_log.h @@ -25,6 +25,7 @@ enum flash_event_type { FE_LOG_FIPS_FAILURE = 10, /* Error during continuous and/or known-answer * tests for FIPS 140-2/3 */ + FE_LOG_BRDPROP = 11, /* Detected invalid board properties */ /* * Fixed padding value makes it easier to parse log space * snapshots. @@ -106,6 +107,27 @@ struct ap_ro_entry_payload { enum ap_ro_verification_ev event : 8; } __packed; +/*****************************************************************************/ +/* Brdprop Events */ +/* Each event can only be logged once per boot. */ +enum brdprop_ev { + BRDPROP_INVALID = 0, + BRDPROP_AMBIGUOUS = 1, + BRDPROP_NO_ENTRY = 2, + + /* + * If BRDPROP_COUNT goes above 8, increase the size of events in + * brdprop_payload. + */ + BRDPROP_COUNT = 3, +}; + +struct brdprop_payload { + uint8_t events; + uint32_t reset_flags; + uint8_t configs[BRDPROP_COUNT]; +} __packed; + /* Returned in the "type" field, when there is no entry available */ #define FLASH_LOG_NO_ENTRY 0xff #define MAX_FLASH_LOG_PAYLOAD_SIZE ((1 << 6) - 1) |