#include <nand.h>
Collaboration diagram for nand_chip:
Data Fields | |
void __iomem * | IO_ADDR_R |
void __iomem * | IO_ADDR_W |
u_char(* | read_byte )(struct mtd_info *mtd) |
void(* | write_byte )(struct mtd_info *mtd, u_char byte) |
u16(* | read_word )(struct mtd_info *mtd) |
void(* | write_word )(struct mtd_info *mtd, u16 word) |
void(* | write_buf )(struct mtd_info *mtd, const u_char *buf, int len) |
void(* | read_buf )(struct mtd_info *mtd, u_char *buf, int len) |
int(* | verify_buf )(struct mtd_info *mtd, const u_char *buf, int len) |
void(* | select_chip )(struct mtd_info *mtd, int chip) |
int(* | block_bad )(struct mtd_info *mtd, loff_t ofs, int getchip) |
int(* | block_markbad )(struct mtd_info *mtd, loff_t ofs) |
void(* | hwcontrol )(struct mtd_info *mtd, int cmd) |
int(* | dev_ready )(struct mtd_info *mtd) |
void(* | cmdfunc )(struct mtd_info *mtd, unsigned command, int column, int page_addr) |
int(* | waitfunc )(struct mtd_info *mtd, struct nand_chip *this, int state) |
int(* | calculate_ecc )(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) |
int(* | correct_data )(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) |
void(* | enable_hwecc )(struct mtd_info *mtd, int mode) |
void(* | erase_cmd )(struct mtd_info *mtd, int page) |
int(* | scan_bbt )(struct mtd_info *mtd) |
int | eccmode |
int | eccsize |
int | eccbytes |
int | eccsteps |
int | chip_delay |
spinlock_t | chip_lock |
wait_queue_head_t | wq |
nand_state_t | state |
int | page_shift |
int | phys_erase_shift |
int | bbt_erase_shift |
int | chip_shift |
u_char * | data_buf |
u_char * | oob_buf |
int | oobdirty |
u_char * | data_poi |
unsigned int | options |
int | badblockpos |
int | numchips |
unsigned long | chipsize |
int | pagemask |
int | pagebuf |
nand_oobinfo * | autooob |
uint8_t * | bbt |
nand_bbt_descr * | bbt_td |
nand_bbt_descr * | bbt_md |
nand_bbt_descr * | badblock_pattern |
nand_hw_control * | controller |
void * | priv |
int(* | errstat )(struct mtd_info *mtd, struct nand_chip *this, int state, int status, int page) |
Definition at line 334 of file nand.h.
void __iomem* nand_chip::IO_ADDR_R |
void __iomem* nand_chip::IO_ADDR_W |
u_char(* nand_chip::read_byte)(struct mtd_info *mtd) |
Referenced by nand_scan(), and nand_wait().
void(* nand_chip::write_byte)(struct mtd_info *mtd, u_char byte) |
Referenced by nand_command(), nand_command_lp(), and nand_scan().
u16(* nand_chip::read_word)(struct mtd_info *mtd) |
Referenced by nand_scan().
void(* nand_chip::write_word)(struct mtd_info *mtd, u16 word) |
Referenced by nand_scan().
void(* nand_chip::write_buf)(struct mtd_info *mtd, const u_char *buf, int len) |
Referenced by nand_scan(), and nand_wait().
void(* nand_chip::read_buf)(struct mtd_info *mtd, u_char *buf, int len) |
Referenced by nand_do_read_ecc(), nand_read_oob(), nand_read_raw(), nand_scan(), and nand_wait().
int(* nand_chip::verify_buf)(struct mtd_info *mtd, const u_char *buf, int len) |
Referenced by nand_scan(), and nand_wait().
void(* nand_chip::select_chip)(struct mtd_info *mtd, int chip) |
Referenced by nand_block_bad(), nand_do_read_ecc(), nand_read_oob(), nand_read_raw(), nand_release_device(), and nand_scan().
int(* nand_chip::block_bad)(struct mtd_info *mtd, loff_t ofs, int getchip) |
Referenced by nand_block_checkbad(), and nand_scan().
int(* nand_chip::block_markbad)(struct mtd_info *mtd, loff_t ofs) |
Referenced by nand_scan().
void(* nand_chip::hwcontrol)(struct mtd_info *mtd, int cmd) |
Referenced by crisv32_nand_flash_probe(), nand_command(), nand_command_lp(), and nand_select_chip().
int(* nand_chip::dev_ready)(struct mtd_info *mtd) |
Referenced by crisv32_nand_flash_probe(), nand_read_oob(), nand_read_raw(), and nand_wait().
void(* nand_chip::cmdfunc)(struct mtd_info *mtd, unsigned command, int column, int page_addr) |
Referenced by nand_block_bad(), nand_do_read_ecc(), nand_read_oob(), nand_read_raw(), nand_scan(), and nand_wait().
Referenced by nand_scan(), and nand_wait().
int(* nand_chip::calculate_ecc)(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) |
Referenced by nand_do_read_ecc(), nand_scan(), and nand_wait().
int(* nand_chip::correct_data)(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) |
Referenced by nand_do_read_ecc(), and nand_scan().
void(* nand_chip::enable_hwecc)(struct mtd_info *mtd, int mode) |
Referenced by nand_do_read_ecc(), and nand_wait().
void(* nand_chip::erase_cmd)(struct mtd_info *mtd, int page) |
Referenced by nand_scan().
int(* nand_chip::scan_bbt)(struct mtd_info *mtd) |
Referenced by nand_scan().
Definition at line 358 of file nand.h.
Referenced by crisv32_nand_flash_probe(), nand_do_read_ecc(), nand_scan(), and nand_wait().
Definition at line 359 of file nand.h.
Referenced by nand_do_read_ecc(), nand_scan(), and nand_wait().
Definition at line 360 of file nand.h.
Referenced by nand_do_read_ecc(), nand_scan(), and nand_wait().
Definition at line 362 of file nand.h.
Referenced by crisv32_nand_flash_probe(), nand_read_oob(), nand_read_raw(), nand_scan(), and nand_wait().
spinlock_t nand_chip::chip_lock |
wait_queue_head_t nand_chip::wq |
Definition at line 365 of file nand.h.
Referenced by nand_get_device(), nand_resume(), and nand_wait().
Definition at line 366 of file nand.h.
Referenced by create_bbt(), nand_do_read_ecc(), nand_read_oob(), nand_read_raw(), nand_scan(), read_bbt(), and search_bbt().
Definition at line 367 of file nand.h.
Referenced by nand_do_read_ecc(), nand_read_oob(), nand_read_raw(), and nand_scan().
Definition at line 368 of file nand.h.
Referenced by create_bbt(), nand_scan(), read_abs_bbt(), and search_bbt().
Definition at line 369 of file nand.h.
Referenced by nand_read_oob(), nand_read_raw(), and nand_scan().
u_char* nand_chip::data_buf |
u_char* nand_chip::oob_buf |
u_char* nand_chip::data_poi |
unsigned int nand_chip::options |
Definition at line 374 of file nand.h.
Referenced by crisv32_nand_flash_probe(), nand_default_bbt(), nand_release(), nand_scan(), and nand_wait().
Definition at line 376 of file nand.h.
Referenced by mark_bbt_region(), nand_scan(), read_abs_bbt(), and search_bbt().
unsigned long nand_chip::chipsize |
Definition at line 377 of file nand.h.
Referenced by create_bbt(), nand_scan(), read_abs_bbt(), and search_bbt().
Definition at line 378 of file nand.h.
Referenced by nand_do_read_ecc(), nand_read_oob(), and nand_read_raw().
struct nand_oobinfo* nand_chip::autooob |
uint8_t* nand_chip::bbt |
Definition at line 381 of file nand.h.
Referenced by create_bbt(), nand_isbad_bbt(), nand_release(), and read_bbt().
struct nand_bbt_descr* nand_chip::bbt_td |
struct nand_bbt_descr* nand_chip::bbt_md |
struct nand_hw_control* nand_chip::controller |
void* nand_chip::priv |
int(* nand_chip::errstat)(struct mtd_info *mtd, struct nand_chip *this, int state, int status, int page) |
Referenced by nand_wait().