spiflash_handle_t
STATIC int spiflash_common_erase(spiflash_handle_t, size_t, size_t);
STATIC int spiflash_common_write(spiflash_handle_t, size_t, size_t,
STATIC int spiflash_common_read(spiflash_handle_t, size_t, size_t, uint8_t *);
STATIC void spiflash_process_done(spiflash_handle_t, int);
STATIC void spiflash_process_read(spiflash_handle_t);
STATIC void spiflash_process_write(spiflash_handle_t);
STATIC int spiflash_nsectors(spiflash_handle_t, struct buf *);
STATIC int spiflash_nsectors(spiflash_handle_t, struct buf *);
STATIC int spiflash_sector(spiflash_handle_t, struct buf *);
spiflash_handle_t
return (spiflash_handle_t)config_found(dev, &sfa, spiflash_print,
spiflash_handle_t sc;
spiflash_handle_t sc;
spiflash_handle_t sc;
spiflash_handle_t sc;
spiflash_process_done(spiflash_handle_t sc, int err)
spiflash_process_read(spiflash_handle_t sc)
spiflash_process_write(spiflash_handle_t sc)
spiflash_nsectors(spiflash_handle_t sc, struct buf *bp)
spiflash_sector(spiflash_handle_t sc, struct buf *bp)
spiflash_handle_t sc = arg;
spiflash_common_erase(spiflash_handle_t sc, size_t start, size_t size)
spiflash_common_write(spiflash_handle_t sc, size_t start, size_t size,
spiflash_common_read(spiflash_handle_t sc, size_t start, size_t size,
spiflash_read_status(spiflash_handle_t sc, uint8_t *sr)
spiflash_write_enable(spiflash_handle_t sc)
spiflash_write_disable(spiflash_handle_t sc)
spiflash_cmd(spiflash_handle_t sc, uint8_t cmd,
spiflash_wait(spiflash_handle_t sc, int tmo)
int (*sf_erase)(spiflash_handle_t, size_t, size_t);
int (*sf_write)(spiflash_handle_t, size_t, size_t,
int (*sf_read)(spiflash_handle_t, size_t, size_t, uint8_t *);
int (*sf_getstatus)(spiflash_handle_t, int, int);
int (*sf_setstatus)(spiflash_handle_t, int, int, int);
spiflash_handle_t spiflash_attach_mi(const struct spiflash_hw_if *, void *,
void spiflash_set_private(spiflash_handle_t, void *);
void *spiflash_get_private(spiflash_handle_t);
int spiflash_read_status(spiflash_handle_t, uint8_t *);
int spiflash_write_disable(spiflash_handle_t);
int spiflash_write_enable(spiflash_handle_t);
int spiflash_cmd(spiflash_handle_t, uint8_t, size_t, uint32_t, size_t,
int spiflash_wait(spiflash_handle_t, int);