7 #ifndef OPENOCD_FLASH_NOR_SFDP_H
8 #define OPENOCD_FLASH_NOR_SFDP_H
10 #define SFDP_MAGIC 0x50444653
21 unsigned int words, uint32_t *
buffer);
target_addr_t addr
Start address to search for the control block.
int spi_sfdp(struct flash_bank *bank, struct flash_device *dev, read_sfdp_block_t read_sfdp_block)
int(* read_sfdp_block_t)(struct flash_bank *bank, uint32_t addr, unsigned int words, uint32_t *buffer)
static int read_sfdp_block(struct flash_bank *bank, uint32_t addr, unsigned int words, uint32_t *buffer)
Provides details of a flash bank, available either on-chip or through a major interface.