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

Go to the source code of this file.

Functions

static voidvboot_get_workbuf (void)
 
struct vb2_context * vboot_get_context (void)
 
int vboot_locate_firmware (struct vb2_context *ctx, struct region_device *fw)
 
static void vboot_setup_cbmem (int unused)
 

Variables

static struct vb2_context * vboot_ctx
 

Function Documentation

◆ vboot_get_context()

◆ vboot_get_workbuf()

static void* vboot_get_workbuf ( void  )
static

Definition at line 13 of file common.c.

References assert, cbmem_find(), CBMEM_ID_VBOOT_WORKBUF, cbmem_possibly_online(), CONFIG, NULL, and preram_symbols_available().

Referenced by vboot_get_context().

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

static void vboot_setup_cbmem ( int  unused)
static

Definition at line 70 of file common.c.

References assert, cbmem_add(), CBMEM_ID_VBOOT_WORKBUF, CONFIG, NULL, and vboot_ctx.

Here is the call graph for this function:

Variable Documentation

◆ vboot_ctx

struct vb2_context* vboot_ctx
static

Definition at line 11 of file common.c.

Referenced by vboot_get_context(), and vboot_setup_cbmem().