![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <commonlib/region.h>
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_device * | boot_device_ro (void) |
const struct region_device * | boot_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) |
enum bootdev_prot_type |
Enumerator | |
---|---|
CTRLR_WP | |
CTRLR_RP | |
CTRLR_RWP | |
MEDIA_WP |
Definition at line 18 of file boot_device.h.
Definition at line 82 of file cbfs_spi.c.
References am335x_mmc_init_storage(), BIOS_DEBUG, BIOS_EMERG, card, die(), exynos_init_spi_boot_device(), exynos_power, FU540_MSEL, fu540_spi_mmap(), init_done, iram_secondary_base, m, media, MMCHS0_BASE, MSEL_SPI0x1, MSEL_SPI0x4, MSEL_SPI2SD, exynos5_power::om_stat, OM_STAT_MASK, OM_STAT_SDMMC, OM_STAT_SPI, printk, read32(), am335x_mmc_host::reg, am335x_mmc_host::sd_clock_hz, sd_host, am335x_mmc_host::sd_mmc_ctrlr, sdmmc_cbfs_open(), SECONDARY_BASE_BOOT_USB, slave, spi_dma_fix(), spi_flash_info, spi_flash_init_done, spi_flash_probe(), spi_mmap_config, spi_sdcard_init(), spi_setup_slave(), storage_display_setup(), storage_setup_media(), and usb_cbfs_open().
Referenced by boot_device_ro_subregion(), boot_device_rw_subregion(), boot_device_spi_flash(), boot_device_wp_region(), find_fmap_directory(), setup_preram_cache(), and vboot_get_cbfs_boot_device().
const struct region_device* boot_device_ro | ( | void | ) |
Definition at line 9 of file rom_media.c.
References alternate_rdev, mem_region_device::base, BIOS_EMERG, bios_mmap_init(), boot_dev, die(), exynos_power, exynos_spi_boot_device(), FU540_MSEL, iram_secondary_base, m, map_spi_rom(), mdev, MSEL_SPI0x1, MSEL_SPI0x4, MSEL_SPI2SD, NULL, exynos5_power::om_stat, OM_STAT_MASK, OM_STAT_SDMMC, OM_STAT_SPI, printk, mem_region_device::rdev, mmap_helper_region_device::rdev, xlate_region_device::rdev, read32(), real_dev, sd_mdev, SECONDARY_BASE_BOOT_USB, spi_flash_init_done, and spi_mdev.
Referenced by boot_device_ro_subregion(), boot_device_rw(), boot_device_security_lockdown(), efs_is_valid(), elog_flash_offset_to_address(), find_fmap_directory(), lb_boot_media_params(), Main(), setup_preram_cache(), and update_boot_region().
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().
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().
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().
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().
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().