summaryrefslogtreecommitdiffstats
path: root/src/commonlib/bsd/include/commonlib/bsd/elog.h
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-08-02 11:42:49 +0000
committerSubrata Banik <subratabanik@google.com>2022-08-06 14:06:33 +0000
commit151dcf49a67d5422a99be484c583e6cdbb094292 (patch)
treee5b90da7728f957183f78f94d735d3e8b47902cf /src/commonlib/bsd/include/commonlib/bsd/elog.h
parent3a53da16321fcf9c31b657d0951b7c46851fd016 (diff)
downloadcoreboot-151dcf49a67d5422a99be484c583e6cdbb094292.tar.gz
coreboot-151dcf49a67d5422a99be484c583e6cdbb094292.tar.bz2
coreboot-151dcf49a67d5422a99be484c583e6cdbb094292.zip
util/elogtool: Mark redundant boot mode event type as `deprecated`
This patch adds `_DEPRECATED_` tag to ChromeOS boot mode related event logging types as below: * ELOG_TYPE_CROS_RECOVERY_MODE <---- to record recovery boot reason while booting into recovery mode * ELOG_TYPE_CROS_DEVELOPER_MODE <--- if the platform is booted into developer mode. * ELOG_TYPE_CROS_DIAGNOSTICS <---- if the platform is booted into diagnostic mode. Drop static structure `cros_deprecated_recovery_reasons` as it has been replaced by vb2_get_recovery_reason_string() function. ELOG_TYPE_FW_BOOT_INFO event type is now used to record all those related fw boot info along with ChromeOS boot mode/reason etc. BUG=b:215615970 TEST=Build and boot google/kano to ChromeOS. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I932952ce32337e2d54473667ce17582a90882da8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65802 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/commonlib/bsd/include/commonlib/bsd/elog.h')
-rw-r--r--src/commonlib/bsd/include/commonlib/bsd/elog.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commonlib/bsd/include/commonlib/bsd/elog.h b/src/commonlib/bsd/include/commonlib/bsd/elog.h
index 63761ebf53e9..b49b37550037 100644
--- a/src/commonlib/bsd/include/commonlib/bsd/elog.h
+++ b/src/commonlib/bsd/include/commonlib/bsd/elog.h
@@ -204,9 +204,9 @@ struct elog_event_data_wake {
} __packed;
/* ChromeOS related events */
-#define ELOG_TYPE_CROS_DEVELOPER_MODE 0xa0
-#define ELOG_TYPE_CROS_RECOVERY_MODE 0xa1
-#define ELOG_CROS_RECOVERY_MODE_BUTTON 0x02
+#define ELOG_DEPRECATED_TYPE_CROS_DEVELOPER_MODE 0xa0
+#define ELOG_DEPRECATED_TYPE_CROS_RECOVERY_MODE 0xa1
+#define ELOG_DEPRECATED_CROS_RECOVERY_MODE_BUTTON 0x02
/* Management Engine Events */
#define ELOG_TYPE_MANAGEMENT_ENGINE 0xa2
@@ -306,8 +306,8 @@ struct elog_event_mem_cache_update {
#define ELOG_TYPE_MI_HR 0xb5
/* ChromeOS diagnostics-related events */
-#define ELOG_TYPE_CROS_DIAGNOSTICS 0xb6
-#define ELOG_CROS_LAUNCH_DIAGNOSTICS 0x01
+#define ELOG_DEPRECATED_TYPE_CROS_DIAGNOSTICS 0xb6
+#define ELOG_DEPRECATED_CROS_LAUNCH_DIAGNOSTICS 0x01
struct elog_event_extended_event {
uint8_t event_type;