12 #define SPI_OPCODE_WREN 0x06
13 #define SPI_OPCODE_FAST_READ 0x0b
227 size_t bytesout,
void *din,
size_t bytesin));
struct arm64_kernel_header header
int spi_flash_ctrlr_protect_region(const struct spi_flash *flash, const struct region *region, const enum ctrlr_prot_type type)
void lb_spi_flash(struct lb_header *header)
int spi_flash_set_write_protected(const struct spi_flash *flash, const struct region *region, const enum spi_flash_status_reg_lockdown mode)
int spi_flash_probe(unsigned int bus, unsigned int cs, struct spi_flash *flash)
uint32_t spi_flash_get_mmap_windows(struct flash_mmap_window *table)
int chipset_volatile_group_begin(const struct spi_flash *flash)
int spi_flash_volatile_group_begin(const struct spi_flash *flash)
int spi_flash_read(const struct spi_flash *flash, u32 offset, size_t len, void *buf)
int spi_flash_is_write_protected(const struct spi_flash *flash, const struct region *region)
const struct spi_flash * boot_device_spi_flash(void)
int chipset_volatile_group_end(const struct spi_flash *flash)
int spi_flash_vector_helper(const struct spi_slave *slave, struct spi_op vectors[], size_t count, int(*func)(const struct spi_slave *slave, const void *dout, size_t bytesout, void *din, size_t bytesin))
spi_flash_status_reg_lockdown
@ SPI_WRITE_PROTECTION_PERMANENT
@ SPI_WRITE_PROTECTION_PIN
@ SPI_WRITE_PROTECTION_PRESERVE
@ SPI_WRITE_PROTECTION_NONE
@ SPI_WRITE_PROTECTION_REBOOT
int spi_flash_write(const struct spi_flash *flash, u32 offset, size_t len, const void *buf)
int spi_flash_status(const struct spi_flash *flash, u8 *reg)
int spi_flash_volatile_group_end(const struct spi_flash *flash)
int spi_flash_erase(const struct spi_flash *flash, u32 offset, size_t len)
int spi_flash_generic_probe(const struct spi_slave *slave, struct spi_flash *flash)
static struct spi_slave slave
int(* erase)(const struct spi_flash *flash, u32 offset, size_t len)
int(* read)(const struct spi_flash *flash, u32 offset, size_t len, void *buf)
int(* status)(const struct spi_flash *flash, u8 *reg)
int(* write)(const struct spi_flash *flash, u32 offset, size_t len, const void *buf)
int(* set_write)(const struct spi_flash *flash, const struct region *region, const enum spi_flash_status_reg_lockdown mode)
int(* get_write)(const struct spi_flash *flash, const struct region *region)
const struct spi_flash_protection_ops * prot_ops
const struct spi_flash_ops * ops
const struct spi_flash_part_id * part
union spi_flash::@248 flags