coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
static ssize_t | spi_readat (const struct region_device *rd, void *b, size_t offset, size_t size) |
static ssize_t | spi_writeat (const struct region_device *rd, const void *b, size_t offset, size_t size) |
static ssize_t | spi_eraseat (const struct region_device *rd, size_t offset, size_t size) |
static void | boot_device_rw_init (void) |
const struct region_device * | boot_device_rw (void) |
const struct spi_flash * | boot_device_spi_flash (void) |
int | boot_device_wp_region (const struct region_device *rd, const enum bootdev_prot_type type) |
Variables | |
static struct spi_flash | sfg |
static bool | sfg_init_done |
static const struct region_device_ops | spi_ops |
static const struct region_device | spi_rw |
const struct region_device* boot_device_rw | ( | void | ) |
Definition at line 62 of file boot_device_rw_nommap.c.
References boot_device_rw_init(), NULL, sfg_init_done, and spi_rw.
Referenced by boot_device_rw_subregion().
Definition at line 47 of file boot_device_rw_nommap.c.
References sfg, sfg_init_done, spi_flash_probe(), and spi_init().
Referenced by boot_device_rw(), and boot_device_spi_flash().
Definition at line 73 of file boot_device_rw_nommap.c.
References boot_device_rw_init(), NULL, sfg, and sfg_init_done.
Referenced by boot_device_wp_region(), lb_spi_flash(), mainboard_config_cbi_wp(), mainboard_print_info(), nvm_is_write_protected(), nvm_protect(), pre_mem_debug_init(), protect_ro_rgn_spi_flash(), and spi_finalize_ops().
int boot_device_wp_region | ( | const struct region_device * | rd, |
const enum bootdev_prot_type | type | ||
) |
Definition at line 83 of file boot_device_rw_nommap.c.
References boot_dev, boot_device_init(), boot_device_spi_flash(), CONFIG, CTRLR_RP, CTRLR_RWP, CTRLR_WP, lock(), MEDIA_WP, NULL, READ_PROTECT, READ_WRITE_PROTECT, region_device_region(), spi_flash_ctrlr_protect_region(), spi_flash_is_write_protected(), spi_flash_set_write_protected(), SPI_WRITE_PROTECTION_PERMANENT, SPI_WRITE_PROTECTION_PIN, SPI_WRITE_PROTECTION_REBOOT, type, and WRITE_PROTECT.
Referenced by boot_device_security_lockdown().
|
static |
Definition at line 29 of file boot_device_rw_nommap.c.
References offset, sfg, spi_flash::size, and spi_flash_erase().
|
static |
Definition at line 11 of file boot_device_rw_nommap.c.
References offset, sfg, spi_flash::size, and spi_flash_read().
|
static |
Definition at line 20 of file boot_device_rw_nommap.c.
References offset, sfg, spi_flash::size, and spi_flash_write().
|
static |
Definition at line 1 of file boot_device_rw_nommap.c.
Referenced by boot_device_rw_init(), boot_device_spi_flash(), spi_eraseat(), spi_readat(), and spi_writeat().
|
static |
Definition at line 9 of file boot_device_rw_nommap.c.
Referenced by boot_device_rw(), boot_device_rw_init(), and boot_device_spi_flash().
|
static |
Definition at line 29 of file boot_device_rw_nommap.c.
|
static |
Definition at line 29 of file boot_device_rw_nommap.c.
Referenced by boot_device_rw().