76 typedef void *(*cbfs_allocator_t)(
void *
arg,
size_t size,
const union cbfs_mdata *mdata);
85 void *
buf,
size_t size);
87 static inline void *
cbfs_map(
const char *
name,
size_t *size_out);
113 uint32_t cbmem_id,
size_t *size_out);
189 struct vb2_hash *metadata_hash);
305 void *
buf,
size_t size)
339 uint32_t cbmem_id,
size_t *size_out)
cb_err
coreboot error codes
@ CB_SUCCESS
Call completed successfully.
void cbfs_unmap(void *mapping)
struct mem_pool cbfs_cache
static size_t _cbfs_load(const char *name, void *buf, size_t size, bool force_ro, enum cbfs_type *type)
static void * cbfs_unverified_area_alloc(const char *area, const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out)
static void * cbfs_ro_type_cbmem_alloc(const char *name, uint32_t cbmem_id, size_t *size_out, enum cbfs_type *type)
static bool cbfs_file_exists(const char *name)
static void * cbfs_type_alloc(const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out, enum cbfs_type *type)
static void * cbfs_ro_type_map(const char *name, size_t *size_out, enum cbfs_type *type)
void cbfs_boot_device_find_mcache(struct cbfs_boot_device *cbd, uint32_t id)
static void * cbfs_unverified_area_cbmem_alloc(const char *area, const char *name, uint32_t cbmem_id, size_t *size_out)
static void * cbfs_ro_map(const char *name, size_t *size_out)
static size_t cbfs_get_size(const char *name)
void * _cbfs_default_allocator(void *arg, size_t size, const union cbfs_mdata *unused)
static void * cbfs_alloc(const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out)
static size_t cbfs_unverified_area_load(const char *area, const char *name, void *buf, size_t size)
static size_t cbfs_ro_get_size(const char *name)
enum cb_err cbfs_prog_stage_load(struct prog *prog)
enum cb_err cbfs_init_boot_device(const struct cbfs_boot_device *cbd, struct vb2_hash *metadata_hash)
static void * cbfs_type_map(const char *name, size_t *size_out, enum cbfs_type *type)
void * _cbfs_cbmem_allocator(void *arg, size_t size, const union cbfs_mdata *unused)
void * _cbfs_alloc(const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out, bool force_ro, enum cbfs_type *type)
static void * cbfs_cbmem_alloc(const char *name, uint32_t cbmem_id, size_t *size_out)
static void * cbfs_ro_alloc(const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out)
static bool cbfs_ro_file_exists(const char *name)
static void * cbfs_map(const char *name, size_t *size_out)
static void * cbfs_type_cbmem_alloc(const char *name, uint32_t cbmem_id, size_t *size_out, enum cbfs_type *type)
static size_t cbfs_type_load(const char *name, void *buf, size_t size, enum cbfs_type *type)
static size_t cbfs_load(const char *name, void *buf, size_t size)
static void * cbfs_ro_type_alloc(const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out, enum cbfs_type *type)
static enum cbfs_type cbfs_ro_get_type(const char *name)
const struct cbfs_boot_device * cbfs_get_boot_device(bool force_ro)
static size_t cbfs_ro_type_load(const char *name, void *buf, size_t size, enum cbfs_type *type)
void *(* cbfs_allocator_t)(void *arg, size_t size, const union cbfs_mdata *mdata)
static size_t cbfs_ro_load(const char *name, void *buf, size_t size)
static enum cbfs_type cbfs_get_type(const char *name)
void cbfs_preload(const char *name)
void * _cbfs_unverified_area_alloc(const char *area, const char *name, cbfs_allocator_t allocator, void *arg, size_t *size_out)
enum cb_err _cbfs_boot_lookup(const char *name, bool force_ro, union cbfs_mdata *mdata, struct region_device *rdev)
static void * cbfs_unverified_area_map(const char *area, const char *name, size_t *size_out)
static void * cbfs_ro_cbmem_alloc(const char *name, uint32_t cbmem_id, size_t *size_out)
static struct region_device rdev
static uint32_t be32toh(uint32_t big_endian_32bits)
struct region_device rdev