coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
switches.c File Reference
#include <bootmode.h>
#include <ec/google/chromeec/ec.h>
#include <elog.h>
Include dependency graph for switches.c:

Go to the source code of this file.

Functions

int get_recovery_mode_switch (void)
 
int get_recovery_mode_retrain_switch (void)
 
static void elog_add_recovery_mode_switch_event (void)
 
int clear_recovery_mode_switch (void)
 

Function Documentation

◆ clear_recovery_mode_switch()

int clear_recovery_mode_switch ( void  )

◆ elog_add_recovery_mode_switch_event()

static void elog_add_recovery_mode_switch_event ( void  )
static

Definition at line 39 of file switches.c.

References EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT, EC_HOST_EVENT_MASK, elog_add_event_byte(), ELOG_TYPE_EC_EVENT, and google_chromeec_get_events_b().

Referenced by clear_recovery_mode_switch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_recovery_mode_retrain_switch()

int get_recovery_mode_retrain_switch ( void  )

Definition at line 29 of file switches.c.

References EC_HOST_EVENT_KEYBOARD_RECOVERY_HW_REINIT, EC_HOST_EVENT_MASK, and google_chromeec_get_events_b().

Referenced by invalidate_normal_cache(), mrc_cache_find_current(), and mt_mem_init_run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_recovery_mode_switch()

int get_recovery_mode_switch ( void  )

Definition at line 17 of file switches.c.

References CONFIG, EC_HOST_EVENT_KEYBOARD_RECOVERY, EC_HOST_EVENT_MASK, EC_SWITCH_DEDICATED_RECOVERY, google_chromeec_get_events_b(), and google_chromeec_get_switches().

Referenced by early_ec_init(), stout_ec_init(), and verstage_main().

Here is the call graph for this function:
Here is the caller graph for this function: