coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootmode.c File Reference
#include <assert.h>
#include <bootmode.h>
#include <bootstate.h>
#include <vb2_api.h>
#include <security/vboot/misc.h>
#include <security/vboot/vbnv.h>
#include <security/vboot/vboot_common.h>
Include dependency graph for bootmode.c:

Go to the source code of this file.

Functions

int vboot_check_recovery_request (void)
 
int vboot_recovery_mode_enabled (void)
 
int vboot_developer_mode_enabled (void)
 
int __weak clear_recovery_mode_switch (void)
 
static void do_clear_recovery_mode_switch (void *unused)
 
 BOOT_STATE_INIT_ENTRY (BS_WRITE_TABLES, BS_ON_ENTRY, do_clear_recovery_mode_switch, NULL)
 
int __weak get_recovery_mode_retrain_switch (void)
 
int __weak get_ec_is_trusted (void)
 

Function Documentation

◆ BOOT_STATE_INIT_ENTRY()

BOOT_STATE_INIT_ENTRY ( BS_WRITE_TABLES  ,
BS_ON_ENTRY  ,
do_clear_recovery_mode_switch  ,
NULL   
)

◆ clear_recovery_mode_switch()

int __weak clear_recovery_mode_switch ( void  )

Definition at line 31 of file bootmode.c.

Referenced by do_clear_recovery_mode_switch().

Here is the caller graph for this function:

◆ do_clear_recovery_mode_switch()

static void do_clear_recovery_mode_switch ( void unused)
static

Definition at line 36 of file bootmode.c.

References clear_recovery_mode_switch(), and vboot_get_context().

Here is the call graph for this function:

◆ get_ec_is_trusted()

int __weak get_ec_is_trusted ( void  )

Definition at line 60 of file bootmode.c.

Referenced by verstage_main().

Here is the caller graph for this function:

◆ get_recovery_mode_retrain_switch()

int __weak get_recovery_mode_retrain_switch ( void  )

Definition at line 55 of file bootmode.c.

◆ vboot_check_recovery_request()

int vboot_check_recovery_request ( void  )

Definition at line 16 of file bootmode.c.

References vboot_get_context().

Here is the call graph for this function:

◆ vboot_developer_mode_enabled()

int vboot_developer_mode_enabled ( void  )

Definition at line 26 of file bootmode.c.

References vboot_get_context().

Referenced by Main(), and vboot_can_enable_udc().

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

◆ vboot_recovery_mode_enabled()

int vboot_recovery_mode_enabled ( void  )

Definition at line 21 of file bootmode.c.

References vboot_get_context().

Referenced by gpio_lock_pad(), handle_cse_eop_result(), invalidate_normal_cache(), lookup_region_type(), mainboard_init(), mrc_cache_find_current(), mt_mem_init_run(), and platform_fsp_silicon_init_params_cb().

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