coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <commonlib/bsd/fmap_serialized.h>
#include <commonlib/region.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Functions | |
int | fmap_locate_area_as_rdev (const char *name, struct region_device *area) |
int | fmap_locate_area_as_rdev_rw (const char *name, struct region_device *area) |
int | fmap_locate_area (const char *name, struct region *r) |
int | fmap_find_region_name (const struct region *const ar, char name[FMAP_STRLEN]) |
ssize_t | fmap_read_area (const char *name, void *buffer, size_t size) |
ssize_t | fmap_overwrite_area (const char *name, const void *buffer, size_t size) |
uint64_t | get_fmap_flash_offset (void) |
int fmap_find_region_name | ( | const struct region *const | ar, |
char | name[FMAP_STRLEN] | ||
) |
Definition at line 208 of file fmap.c.
References BIOS_DEBUG, find_fmap_directory(), FMAP_STRLEN, le32toh(), memcpy(), name, fmap_area::name, NULL, fmap_area::offset, region::offset, offset, printk, rdev_mmap(), rdev_munmap(), fmap_area::size, and region::size.
int fmap_locate_area | ( | const char * | name, |
struct region * | r | ||
) |
Definition at line 164 of file fmap.c.
References BIOS_DEBUG, find_fmap_directory(), le32toh(), name, fmap_area::name, NULL, fmap_area::offset, region::offset, offset, printk, rdev_mmap(), rdev_munmap(), fmap_area::size, region::size, and strcmp().
Referenced by bios_mmap_init(), fmap_locate_area_as_rdev(), fmap_locate_area_as_rdev_rw(), lookup_region_by_name(), mainboard_print_info(), and protect_ro_rgn_spi_flash().
int fmap_locate_area_as_rdev | ( | const char * | name, |
struct region_device * | area | ||
) |
Definition at line 144 of file fmap.c.
References boot_device_ro_subregion(), fmap_locate_area(), and name.
Referenced by _cbfs_unverified_area_alloc(), apob_thread_entry(), boot_device_security_lockdown(), cbfs_get_boot_device(), fmap_read_area(), init_vpd_rdev(), mainboard_init(), program_mac_address(), tspi_init_crtm(), vb2ex_read_resource(), and vboot_locate_firmware().
int fmap_locate_area_as_rdev_rw | ( | const char * | name, |
struct region_device * | area | ||
) |
Definition at line 154 of file fmap.c.
References boot_device_rw_subregion(), fmap_locate_area(), and name.
Referenced by configure_descriptor(), cse_get_rw_rdev(), elog_find_flash(), flashconsole_init(), fmap_overwrite_area(), fpf_blown(), init_vbnv(), invalidate_normal_cache(), load_spd_cache(), and soc_update_apob_cache().
Definition at line 263 of file fmap.c.
References buffer, fmap_locate_area_as_rdev_rw(), name, rdev, rdev_eraseat(), rdev_writeat(), and region_device_sz().
Referenced by write_table_entry().
Definition at line 254 of file fmap.c.
References buffer, fmap_locate_area_as_rdev(), MIN, name, rdev, rdev_readat(), and region_device_sz().
Referenced by read_calibration_data_from_flash().
Definition at line 27 of file fmap.c.
Referenced by lb_boot_media_params().