coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vboot_common.h File Reference
#include <commonlib/region.h>
#include <cbfs.h>
#include <vb2_api.h>
Include dependency graph for vboot_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int vboot_check_recovery_request (void)
 
void vboot_reboot (void)
 
void vboot_platform_prepare_reboot (void)
 
int vboot_save_hash (void *digest, size_t digest_size)
 
int vboot_retrieve_hash (void *digest, size_t digest_size)
 
void verstage_main (void)
 Verify and select the firmware in the RW image. More...
 
void verstage_mainboard_early_init (void)
 
void verstage_mainboard_init (void)
 
static int vboot_developer_mode_enabled (void)
 
static int vboot_recovery_mode_enabled (void)
 
static int vboot_can_enable_udc (void)
 
static void vboot_run_logic (void)
 
static const struct cbfs_boot_devicevboot_get_cbfs_boot_device (void)
 
void vboot_save_data (struct vb2_context *ctx)
 
void vboot_sync_ec (void)
 

Function Documentation

◆ vboot_can_enable_udc()

static int vboot_can_enable_udc ( void  )
inlinestatic

Definition at line 59 of file vboot_common.h.

◆ 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()

static int vboot_developer_mode_enabled ( void  )
inlinestatic

Definition at line 56 of file vboot_common.h.

◆ vboot_get_cbfs_boot_device()

static const struct cbfs_boot_device* vboot_get_cbfs_boot_device ( void  )
inlinestatic

Definition at line 61 of file vboot_common.h.

References NULL.

◆ vboot_platform_prepare_reboot()

void vboot_platform_prepare_reboot ( void  )

◆ vboot_reboot()

void vboot_reboot ( void  )

Definition at line 60 of file vboot_common.c.

References board_reset(), cbmem_dump_console_to_uart(), CONFIG, and vboot_platform_prepare_reboot().

Referenced by cse_trigger_vboot_recovery(), Main(), reboot_into_recovery(), vboot_sync_ec(), and verstage_main().

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

◆ vboot_recovery_mode_enabled()

static int vboot_recovery_mode_enabled ( void  )
inlinestatic

Definition at line 57 of file vboot_common.h.

◆ vboot_retrieve_hash()

int vboot_retrieve_hash ( void digest,
size_t  digest_size 
)

Definition at line 43 of file vboot_storage.c.

References assert, EC_VSTORE_SLOT_SIZE, google_chromeec_vstore_read(), and VBOOT_HASH_VSLOT.

Referenced by handle_digest_result().

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

◆ vboot_run_logic()

static void vboot_run_logic ( void  )
inlinestatic

Definition at line 60 of file vboot_common.h.

◆ vboot_save_data()

void vboot_save_data ( struct vb2_context *  ctx)

Definition at line 12 of file vboot_common.c.

References antirollback_write_space_firmware(), antirollback_write_space_kernel(), BIOS_INFO, CONFIG, printk, save_vbnv(), and tlcl_lib_init().

Referenced by cse_trigger_vboot_recovery(), reboot_into_recovery(), vboot_sync_ec(), and verstage_main().

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

◆ vboot_save_hash()

int vboot_save_hash ( void digest,
size_t  digest_size 
)

Definition at line 11 of file vboot_storage.c.

References assert, BIOS_ERR, EC_VSTORE_SLOT_SIZE, google_chromeec_vstore_info(), google_chromeec_vstore_write(), printk, VBOOT_HASH_VSLOT, and VBOOT_HASH_VSLOT_MASK.

Referenced by handle_digest_result().

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

◆ vboot_sync_ec()

void vboot_sync_ec ( void  )

Definition at line 40 of file ec_sync.c.

References BIOS_EMERG, BIOS_ERR, BIOS_INFO, EC_REBOOT_COLD, EC_REBOOT_FLAG_SWITCH_RW_SLOT, google_chromeec_reboot(), halt(), printk, timestamp_add_now(), TS_EC_SYNC_END, TS_EC_SYNC_START, vboot_get_context(), vboot_reboot(), and vboot_save_data().

Referenced by romstage_main().

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

◆ verstage_main()

◆ verstage_mainboard_early_init()

void verstage_mainboard_early_init ( void  )

Definition at line 11 of file verstage.c.

References gpio_configure_pads_with_override(), setup_gpio(), variant_early_gpio_table(), and variant_early_override_gpio_table().

Referenced by Main().

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

◆ verstage_mainboard_init()

void verstage_mainboard_init ( void  )