56#define MTD_NANDFLASH 4
57#define MTD_DATAFLASH 6
58#define MTD_MLCNANDFLASH 8
int(* erase)(struct MtdDev *mtd, UINT64 start, UINT64 len, UINT64 *failAddr)
擦除flash操作
UINT32 eraseSize
4K, 跟PAGE_CACHE_SIZE对应
int(* write)(struct MtdDev *mtd, UINT64 start, UINT64 len, const char *buf)
写操作
int(* read)(struct MtdDev *mtd, UINT64 start, UINT64 len, const char *buf)
读操作
unsigned long blockEnd
结束块索引
unsigned long blockStart
开始块索引
unsigned long blockSize
块大小,不用猜也知道,是4K,和内存的页等同,如此方便置换