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

Go to the source code of this file.

Enumerations

enum  bootdev_prot_type { CTRLR_WP = 1 , CTRLR_RP = 2 , CTRLR_RWP = 3 , MEDIA_WP = 4 }
 

Functions

const struct region_deviceboot_device_ro (void)
 
const struct region_deviceboot_device_rw (void)
 
int boot_device_ro_subregion (const struct region *sub, struct region_device *subrd)
 
int boot_device_rw_subregion (const struct region *sub, struct region_device *subrd)
 
int boot_device_wp_region (const struct region_device *rd, const enum bootdev_prot_type type)
 
void boot_device_init (void)
 
void boot_device_security_lockdown (void)
 

Enumeration Type Documentation

◆ bootdev_prot_type

Enumerator
CTRLR_WP 
CTRLR_RP 
CTRLR_RWP 
MEDIA_WP 

Definition at line 18 of file boot_device.h.

Function Documentation

◆ boot_device_init()

◆ boot_device_ro()

◆ boot_device_ro_subregion()

int boot_device_ro_subregion ( const struct region sub,
struct region_device subrd 
)

Definition at line 27 of file boot_device.c.

References boot_device_init(), boot_device_ro(), and boot_device_subregion().

Referenced by fmap_locate_area_as_rdev(), lookup_store(), mrc_cache_find_current(), and update_mrc_cache_by_type().

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

◆ boot_device_rw()

const struct region_device* boot_device_rw ( void  )

Definition at line 62 of file boot_device_rw_nommap.c.

References boot_device_ro(), boot_device_rw_init(), NULL, sfg_init_done, and spi_rw.

Referenced by boot_device_rw_subregion().

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

◆ boot_device_rw_subregion()

int boot_device_rw_subregion ( const struct region sub,
struct region_device subrd 
)

Definition at line 36 of file boot_device.c.

References boot_device_init(), boot_device_rw(), and boot_device_subregion().

Referenced by fmap_locate_area_as_rdev_rw(), lookup_store(), and update_mrc_cache_by_type().

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

◆ boot_device_security_lockdown()

void boot_device_security_lockdown ( void  )

Definition at line 12 of file lockdown.c.

References BIOS_DEBUG, BIOS_ERR, BIOS_INFO, boot_device_ro(), boot_device_wp_region(), CONFIG, CTRLR_RWP, CTRLR_WP, fmap_locate_area_as_rdev(), MEDIA_WP, NULL, printk, and rdev.

Referenced by lock(), and verstage_main().

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

◆ boot_device_wp_region()