|
Data Structures |
struct | erase_info |
struct | mtd_erase_region_info |
struct | mtd_info |
Defines |
#define | CONFIG_MTD_NAND_VERIFY_WRITE |
#define | NAND_BBT_SUPPORT 1 |
#define | NAND_WRITE_SUPPORT 1 |
#define | NAND_ERASE_SUPPORT 1 |
#define | NAND_MULTICHIP_SUPPORT 0 |
#define | NAND_BUSWIDTH16_SUPPORT 0 |
#define | NAND_HWECC_SUPPORT 0 |
#define | NAND_KVEC_SUPPORT 0 |
#define | NAND_HAS_MALLOC 0 |
#define | MTD_CHAR_MAJOR 90 |
#define | MTD_BLOCK_MAJOR 31 |
#define | MAX_MTD_DEVICES 16 |
#define | MTD_ERASE_PENDING 0x01 |
#define | MTD_ERASING 0x02 |
#define | MTD_ERASE_SUSPEND 0x04 |
#define | MTD_ERASE_DONE 0x08 |
#define | MTD_ERASE_FAILED 0x10 |
#define | MTD_PROGREGION_SIZE(mtd) (mtd)->oobblock |
#define | MTD_PROGREGION_CTRLMODE_VALID(mtd) (mtd)->oobsize |
#define | MTD_PROGREGION_CTRLMODE_INVALID(mtd) (mtd)->ecctype |
#define | MTD_ERASE(mtd, args...) (*(mtd->erase))(mtd, args) |
#define | MTD_POINT(mtd, a, b, c, d) (*(mtd->point))(mtd, a,b,c, (u_char **)(d)) |
#define | MTD_UNPOINT(mtd, arg) (*(mtd->unpoint))(mtd, (u_char *)arg) |
#define | MTD_READ(mtd, args...) (*(mtd->read))(mtd, args) |
#define | MTD_WRITE(mtd, args...) (*(mtd->write))(mtd, args) |
#define | MTD_READV(mtd, args...) (*(mtd->readv))(mtd, args) |
#define | MTD_WRITEV(mtd, args...) (*(mtd->writev))(mtd, args) |
#define | MTD_READECC(mtd, args...) (*(mtd->read_ecc))(mtd, args) |
#define | MTD_WRITEECC(mtd, args...) (*(mtd->write_ecc))(mtd, args) |
#define | MTD_READOOB(mtd, args...) (*(mtd->read_oob))(mtd, args) |
#define | MTD_WRITEOOB(mtd, args...) (*(mtd->write_oob))(mtd, args) |
#define | MTD_SYNC(mtd) do { if (mtd->sync) (*(mtd->sync))(mtd); } while (0) |
#define | printk printf |
#define | MTD_DEBUG_LEVEL0 (0) |
#define | MTD_DEBUG_LEVEL1 (1) |
#define | MTD_DEBUG_LEVEL2 (2) |
#define | MTD_DEBUG_LEVEL3 (3) |
#define | DEBUG(n, args...) do { } while(0) |
#define | BUG() do { nop(); } while(1) |
Functions |
static void | mtd_erase_callback (struct erase_info *instr) |