51 size_t size, start, bios_mapped_size;
68 bios_mapped_size = size - 256 *
KiB;
83 "ERROR: CBFS @ %zx size %zx exceeds mem-mapped area @ %zx size %zx\n",
85 start, bios_mapped_size);
uint32_t spi_flash_get_mmap_windows(struct flash_mmap_window *table)
const struct region_device * boot_device_ro(void)
#define printk(level,...)
size_t fast_spi_get_bios_region(size_t *bios_size)
int fmap_locate_area(const char *name, struct region *r)
#define BIOS_CRIT
BIOS_CRIT - Recovery unlikely.
static size_t region_sz(const struct region *r)
int region_is_subregion(const struct region *p, const struct region *c)
int rdev_chain_mem(struct region_device *child, const void *base, size_t size)
void xlate_window_init(struct xlate_window *window, const struct region_device *access_dev, size_t sub_region_offset, size_t sub_region_size)
static void * rdev_mmap_full(const struct region_device *rd)
void xlate_region_device_ro_init(struct xlate_region_device *xdev, size_t window_count, const struct xlate_window *window_arr, size_t parent_size)
static size_t region_offset(const struct region *r)
static struct region_device shadow_dev
static struct xlate_region_device real_dev
static struct xlate_window real_dev_window
static void bios_mmap_init(void)
struct region_device rdev