ELOG: Introduce elog_gsmi variants
This avoids a lot of if (CONFIG(ELOG_GSMI)) boilerplate. Change-Id: I87d25c820daedeb33b3b474a6632a89ea80b0867 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36647 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
7e4bfe4b91
commit
9dd1a12f9c
17 changed files with 49 additions and 94 deletions
|
|
@ -243,6 +243,16 @@ static inline int elog_smbios_write_type15(unsigned long *current,
|
|||
static inline int elog_add_extended_event(u8 type, u32 complement) { return 0; }
|
||||
#endif
|
||||
|
||||
#if CONFIG(ELOG_GSMI)
|
||||
#define elog_gsmi_add_event elog_add_event
|
||||
#define elog_gsmi_add_event_byte elog_add_event_byte
|
||||
#define elog_gsmi_add_event_word elog_add_event_word
|
||||
#else
|
||||
static inline int elog_gsmi_add_event(u8 event_type) { return 0; }
|
||||
static inline int elog_gsmi_add_event_byte(u8 event_type, u8 data) { return 0; }
|
||||
static inline int elog_gsmi_add_event_word(u8 event_type, u16 data) { return 0; }
|
||||
#endif
|
||||
|
||||
extern u32 gsmi_exec(u8 command, u32 *param);
|
||||
|
||||
#if CONFIG(ELOG_BOOT_COUNT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue