45 speed = size * (
u64)1000 / usecs;
49 offset, size, usecs, speed, bps / 1000, bps % 1000);
55 size_t offset,
size_t size)
63 size_t offset,
size_t size)
84 int bus = CONFIG_BOOT_DEVICE_SPI_FLASH_BUS;
struct mem_pool cbfs_cache
static const struct region_device_ops spi_ops
static struct mmap_helper_region_device mdev
const struct region_device * boot_device_ro(void)
static ssize_t spi_readat(const struct region_device *rd, void *b, size_t offset, size_t size)
const struct region_device * boot_device_rw(void)
static struct spi_flash spi_flash_info
static bool spi_flash_init_done
const struct spi_flash * boot_device_spi_flash(void)
static ssize_t spi_writeat(const struct region_device *rd, const void *b, size_t offset, size_t size)
void boot_device_init(void)
static ssize_t spi_eraseat(const struct region_device *rd, size_t offset, size_t size)
#define printk(level,...)
static void stopwatch_init(struct stopwatch *sw)
static long stopwatch_duration_usecs(struct stopwatch *sw)
int console_log_level(int msg_level)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void * mmap_helper_rdev_mmap(const struct region_device *, size_t, size_t)
int mmap_helper_rdev_munmap(const struct region_device *, void *)
#define MMAP_HELPER_DEV_INIT(ops_, offset_, size_, mpool_)
int spi_flash_probe(unsigned int bus, unsigned int cs, struct spi_flash *flash)
int spi_flash_read(const struct spi_flash *flash, u32 offset, size_t len, void *buf)
int spi_flash_write(const struct spi_flash *flash, u32 offset, size_t len, const void *buf)
int spi_flash_erase(const struct spi_flash *flash, u32 offset, size_t len)
struct region_device rdev
void *(* mmap)(const struct region_device *, size_t, size_t)