diff options
Diffstat (limited to 'src/drivers/elog')
-rw-r--r-- | src/drivers/elog/elog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 6fc4053a4f..d3c01c2d58 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -933,6 +933,17 @@ int elog_add_event_wake(u8 source, u32 instance) return elog_add_event_raw(ELOG_TYPE_WAKE_SOURCE, &wake, sizeof(wake)); } +int elog_add_extended_event(u8 type, u32 complement) +{ + struct elog_event_extended_event event = { + .event_type = type, + .event_complement = complement + }; + return elog_add_event_raw(ELOG_TYPE_EXTENDED_EVENT, + &event, + sizeof(event)); +} + /* Make sure elog_init() runs at least once to log System Boot event. */ static void elog_bs_init(void *unused) { elog_init(); } BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_ENTRY, elog_bs_init, NULL); |