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

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)
 

Function Documentation

◆ fmap_find_region_name()

int fmap_find_region_name ( const struct region *const  ar,
char  name[FMAP_STRLEN] 
)

◆ fmap_locate_area()

int fmap_locate_area ( const char *  name,
struct region r 
)

◆ fmap_locate_area_as_rdev()

int fmap_locate_area_as_rdev ( const char *  name,
struct region_device area 
)

◆ fmap_locate_area_as_rdev_rw()

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().

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

◆ fmap_overwrite_area()

ssize_t fmap_overwrite_area ( const char *  name,
const void buffer,
size_t  size 
)

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().

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

◆ fmap_read_area()

ssize_t fmap_read_area ( const char *  name,
void buffer,
size_t  size 
)

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().

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

◆ get_fmap_flash_offset()

uint64_t get_fmap_flash_offset ( void  )

Definition at line 27 of file fmap.c.

Referenced by lb_boot_media_params().

Here is the caller graph for this function: