![]() |
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.
Enumerations | |
enum | { MRC_TRAINING_DATA , MRC_VARIABLE_DATA } |
Functions | |
ssize_t | mrc_cache_load_current (int type, uint32_t version, void *buffer, size_t buffer_size) |
mrc_cache_load_current More... | |
void * | mrc_cache_current_mmap_leak (int type, uint32_t version, size_t *data_size) |
mrc_cache_mmap_leak More... | |
int | mrc_cache_stash_data (int type, uint32_t version, const void *data, size_t size) |
Returns < 0 on error, 0 on success. More... | |
anonymous enum |
Enumerator | |
---|---|
MRC_TRAINING_DATA | |
MRC_VARIABLE_DATA |
Definition at line 10 of file mrc_cache.h.
mrc_cache_mmap_leak
Return a pointer to a buffer with the latest slot data. An mmap will be executed (without a matching unmap). This will be a common entry point for platforms where mmap is considered a noop, like x86
Definition at line 342 of file mrc_cache.c.
References BIOS_INFO, mrc_metadata::data_size, mrc_cache_find_current(), mrc_data_valid(), NULL, printk, rdev, rdev_mmap_full(), region_device_sz(), type, and version.
Referenced by check_region_overlap(), get_cached_training(), init_dram_ddr3(), OemInitResume(), platform_fsp_memory_init_params_cb(), prepare_mrc_cache(), raminit(), raminit_common(), and sdram_initialize().
mrc_cache_load_current
Fill in the buffer with the latest slot data. This will be a common entry point for ARM platforms. Returns < 0 on error, size of the returned data on success.
Definition at line 319 of file mrc_cache.c.
References buffer, mrc_metadata::data_size, mrc_cache_find_current(), mrc_data_valid(), rdev, rdev_readat(), region_device_sz(), type, and version.
Referenced by mt_mem_init_run(), and qclib_load_and_run().
Returns < 0 on error, 0 on success.
Definition at line 687 of file mrc_cache.c.
References BIOS_ERR, BIOS_INFO, cbmem_add(), cache_region::cbmem_id, compute_ip_checksum(), CONFIG, mrc_metadata::header_checksum, lookup_region_type(), memcpy(), MRC_DATA_SIGNATURE, cache_region::name, NULL, printk, mrc_metadata::signature, type, update_mrc_cache_by_type(), and version.
Referenced by mainboard_romstage_entry(), mt_mem_init_run(), OemS3Save(), raminit(), raminit_common(), save_memory_training_data(), save_mrc_data(), save_timings(), sdram_initialize(), and write_table_entry().