1#ifndef FLASH_GLUE_INTERFACE_H
2#define FLASH_GLUE_INTERFACE_H
89#define NumberOf(arr) (sizeof(arr)/sizeof(arr[0]))
91#define FLASH_STRIDE(b) 4
92#define FLASH_WIDTH(b) ((b)->width)
93#define FLASH_NDEVS(b) (FLASH_STRIDE(b)/FLASH_WIDTH(b))
103typedef volatile _u8_a_t *A8;
104typedef volatile _u16_a_t *A16;
105typedef volatile _u32_a_t *A32;
202 int (*get_id)(
struct bankdesc *b, uint32_t addr, uint32_t *pVendorId, uint32_t *pDeviceId);
209 void (*unlock_block)(
struct bankdesc *b, uint32_t addr);
216 void (*lock_block)(
struct bankdesc *b, uint32_t addr);
225 int (*erase_block)(
struct bankdesc *b, uint32_t addr);
235 uint32_t (*check_ready)(
struct bankdesc *b, uint32_t addr);
239 void (*print_stat)(
struct bankdesc *b, uint32_t sta,
int verbose);
241 void (*array_mode)(
struct bankdesc *b, uint32_t addr);
247 uint32_t (*write_line)(
struct bankdesc *b, uint32_t addr,
const char *src, uint32_t N);
256 struct bankdesc *(*bankcheck)(
int bank,
int quiet);
262 int (*flash_wp)(
int bank,
int enbl);
264 uint32_t (*read_us_timer)(void);
271extern struct vendesc BSP_flash_vendor_intel[];
272extern struct vendesc BSP_flash_vendor_spansion[];
Definition: xnandpsu_onfi.h:185
Definition: flashPgmPvt.h:142
Definition: flashPgmPvt.h:168
Definition: flashPgmPvt.h:200
Definition: flashPgmPvt.h:254
Definition: flashPgmPvt.h:178