coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
alternate_cbfs.c File Reference
#include <boot_device.h>
#include <console/console.h>
#include <soc/alternate_cbfs.h>
#include <soc/power.h>
#include <soc/spi.h>
#include <symbols.h>
Include dependency graph for alternate_cbfs.c:

Go to the source code of this file.

Functions

static int usb_cbfs_open (void)
 
static int sdmmc_cbfs_open (void)
 
const struct region_deviceboot_device_ro (void)
 
void boot_device_init (void)
 

Variables

static const struct mem_region_device alternate_rdev
 

Function Documentation

◆ boot_device_init()

◆ boot_device_ro()

◆ sdmmc_cbfs_open()

static int sdmmc_cbfs_open ( void  )
static

Definition at line 63 of file alternate_cbfs.c.

References BIOS_DEBUG, BIOS_EMERG, cbfs_cache, count, ENV_ROMSTAGE_OR_BEFORE, irom_sdmmc_read_blocks_ptr, printk, and REGION_SIZE.

Referenced by boot_device_init().

Here is the caller graph for this function:

◆ usb_cbfs_open()

static int usb_cbfs_open ( void  )
static

Definition at line 27 of file alternate_cbfs.c.

References BIOS_DEBUG, BIOS_EMERG, ENV_ROMSTAGE_OR_BEFORE, irom_load_image_from_usb_ptr, printk, and void().

Referenced by boot_device_init().

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

Variable Documentation

◆ alternate_rdev

const struct mem_region_device alternate_rdev
static
Initial value:
=
struct mem_pool cbfs_cache
Definition: cbfs.c:26
#define REGION_SIZE(name)
Definition: symbols.h:10
#define MEM_REGION_DEV_RO_INIT(base_, size_)
Definition: region.h:208

Definition at line 95 of file alternate_cbfs.c.

Referenced by boot_device_ro().