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

Go to the source code of this file.

Functions

struct vb2_context * vboot_get_context (void)
 
static int vboot_is_firmware_slot_a (struct vb2_context *ctx)
 
static bool vboot_is_gbb_flag_set (enum vb2_gbb_flag flag)
 
int vboot_locate_firmware (struct vb2_context *ctx, struct region_device *fw)
 
static int verification_should_run (void)
 
static int verstage_should_load (void)
 
static int vboot_logic_executed (void)
 

Function Documentation

◆ vboot_get_context()

◆ vboot_is_firmware_slot_a()

static int vboot_is_firmware_slot_a ( struct vb2_context *  ctx)
inlinestatic

Definition at line 18 of file misc.h.

Referenced by cse_get_source_rdev_fmap(), update_boot_region(), vb2ex_read_resource(), vboot_locate_firmware(), and verstage_main().

Here is the caller graph for this function:

◆ vboot_is_gbb_flag_set()

static bool vboot_is_gbb_flag_set ( enum vb2_gbb_flag  flag)
inlinestatic

Definition at line 29 of file misc.h.

References vboot_get_context().

Referenced by qclib_load_and_run(), and vboot_can_enable_udc().

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

◆ vboot_locate_firmware()

int vboot_locate_firmware ( struct vb2_context *  ctx,
struct region_device fw 
)

Definition at line 53 of file common.c.

References fmap_locate_area_as_rdev(), name, rdev_chain(), and vboot_is_firmware_slot_a().

Referenced by vboot_get_cbfs_boot_device(), and verstage_main().

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

◆ vboot_logic_executed()

static int vboot_logic_executed ( void  )
inlinestatic

Definition at line 66 of file misc.h.

References CONFIG, dead_code, ENV_BOOTBLOCK, ENV_ROMSTAGE_OR_BEFORE, ENV_SEPARATE_VERSTAGE, vboot_executed, verification_should_run(), and verstage_should_load().

Referenced by tspi_tpm_is_setup(), vboot_get_cbfs_boot_device(), and vboot_get_context().

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

◆ verification_should_run()

static int verification_should_run ( void  )
inlinestatic

Definition at line 46 of file misc.h.

References CONFIG, dead_code, ENV_BOOTBLOCK, ENV_ROMSTAGE, and ENV_SEPARATE_VERSTAGE.

Referenced by tspi_tpm_is_setup(), vboot_get_context(), vboot_logic_executed(), and vboot_run_logic().

Here is the caller graph for this function:

◆ verstage_should_load()

static int verstage_should_load ( void  )
inlinestatic

Definition at line 58 of file misc.h.

References CONFIG, and ENV_BOOTBLOCK.

Referenced by vboot_logic_executed(), and vboot_run_logic().

Here is the caller graph for this function: