mtd_info Struct Reference

#include <mtd.h>

Collaboration diagram for mtd_info:

Collaboration graph
[legend]

Data Fields

u_char type
u_int32_t flags
u_int32_t size
u_int32_t erasesize
u_int32_t oobblock
u_int32_t oobsize
u_int32_t ecctype
u_int32_t eccsize
char * name
int index
nand_oobinfo oobinfo
u_int32_t oobavail
int numeraseregions
mtd_erase_region_infoeraseregions
u_int32_t bank_size
int(* erase )(struct mtd_info *mtd, struct erase_info *instr)
int(* point )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf)
void(* unpoint )(struct mtd_info *mtd, u_char *addr, loff_t from, size_t len)
int(* read )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
int(* write )(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
int(* read_ecc )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf, u_char *eccbuf, struct nand_oobinfo *oobsel)
int(* write_ecc )(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf, u_char *eccbuf, struct nand_oobinfo *oobsel)
int(* read_oob )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
int(* write_oob )(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
int(* get_fact_prot_info )(struct mtd_info *mtd, struct otp_info *buf, size_t len)
int(* read_fact_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
int(* get_user_prot_info )(struct mtd_info *mtd, struct otp_info *buf, size_t len)
int(* read_user_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
int(* write_user_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
int(* lock_user_prot_reg )(struct mtd_info *mtd, loff_t from, size_t len)
int(* readv )(struct mtd_info *mtd, struct kvec *vecs, unsigned long count, loff_t from, size_t *retlen)
int(* readv_ecc )(struct mtd_info *mtd, struct kvec *vecs, unsigned long count, loff_t from, size_t *retlen, u_char *eccbuf, struct nand_oobinfo *oobsel)
int(* writev )(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen)
int(* writev_ecc )(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen, u_char *eccbuf, struct nand_oobinfo *oobsel)
void(* sync )(struct mtd_info *mtd)
int(* lock )(struct mtd_info *mtd, loff_t ofs, size_t len)
int(* unlock )(struct mtd_info *mtd, loff_t ofs, size_t len)
int(* suspend )(struct mtd_info *mtd)
void(* resume )(struct mtd_info *mtd)
int(* block_isbad )(struct mtd_info *mtd, loff_t ofs)
int(* block_markbad )(struct mtd_info *mtd, loff_t ofs)
notifier_block reboot_notifier
void * priv
module * owner
int usecount
unsigned ignore_bad
char * name
nand_oobinfo oobinfo
mtd_erase_region_infoeraseregions
void * priv
module * owner

Detailed Description

Definition at line 72 of file mtd.h.


Field Documentation

u_char mtd_info::type

Definition at line 73 of file mtd.h.

Referenced by bootload().

u_int32_t mtd_info::flags

Definition at line 74 of file mtd.h.

Referenced by bootload().

u_int32_t mtd_info::size

Definition at line 75 of file mtd.h.

Referenced by bootload(), create_bbt(), init_axis_flash(), mark_bbt_region(), nand_block_isbad(), nand_do_read_ecc(), nand_erase_nand(), nand_read(), nand_read_oob(), nand_read_raw(), nand_scan(), nand_scan_bbt(), nand_scan_ident(), nand_update_bbt(), nand_write(), nand_write_oob(), read_abs_bbt(), rflflash_init(), rflflash_nand_do_erase(), rflflash_nand_size(), search_bbt(), search_read_bbts(), and write_bbt().

u_int32_t mtd_info::erasesize

Definition at line 81 of file mtd.h.

Referenced by bootload(), init_axis_flash(), nand_get_flash_type(), nand_rw(), nand_scan(), rflflash_dump(), rflflash_dump_oob(), rflflash_init(), rflflash_mark_bad(), rflflash_nand_erase(), and rflflash_nand_rw().

u_int32_t mtd_info::oobblock

Definition at line 83 of file mtd.h.

Referenced by bootload(), create_bbt(), nand_command(), nand_command_lp(), nand_default_bbt(), nand_do_read_ecc(), nand_read_raw(), nand_scan(), nand_wait(), rflflash_init(), rflflash_nand_pagesize(), and search_bbt().

u_int32_t mtd_info::oobsize

Definition at line 84 of file mtd.h.

Referenced by bootload(), create_bbt(), nand_default_block_markbad(), nand_do_read_ecc(), nand_do_write_oob(), nand_do_write_ops(), nand_get_flash_type(), nand_read_oob(), nand_read_oob_std(), nand_read_oob_syndrome(), nand_read_page_hwecc(), nand_read_page_raw(), nand_read_page_syndrome(), nand_read_raw(), nand_scan(), nand_scan_bbt(), nand_scan_tail(), nand_update_bbt(), nand_wait(), nand_write_oob_std(), nand_write_oob_syndrome(), nand_write_page_raw(), nand_write_page_syndrome(), rflflash_dump_oob(), rflflash_init(), scan_block_fast(), scan_read_raw(), scan_write_bbt(), search_bbt(), and write_bbt().

u_int32_t mtd_info::ecctype

Definition at line 85 of file mtd.h.

Referenced by bootload().

u_int32_t mtd_info::eccsize

Definition at line 86 of file mtd.h.

Referenced by bootload().

char* mtd_info::name

Definition at line 100 of file mtd.h.

Referenced by bootload(), init_axis_flash(), nand_get_flash_type(), and nand_scan().

int mtd_info::index

Definition at line 101 of file mtd.h.

struct nand_oobinfo mtd_info::oobinfo

Definition at line 104 of file mtd.h.

Referenced by bootload(), nand_read(), and nand_read_ecc().

u_int32_t mtd_info::oobavail

Definition at line 105 of file mtd.h.

Referenced by nand_scan().

int mtd_info::numeraseregions

Definition at line 110 of file mtd.h.

struct mtd_erase_region_info* mtd_info::eraseregions

Definition at line 111 of file mtd.h.

u_int32_t mtd_info::bank_size

Definition at line 114 of file mtd.h.

int(* mtd_info::erase)(struct mtd_info *mtd, struct erase_info *instr)

Referenced by rflflash_nand_erase().

int(* mtd_info::point)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf)

void(* mtd_info::unpoint)(struct mtd_info *mtd, u_char *addr, loff_t from, size_t len)

int(* mtd_info::read)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

Referenced by init_axis_flash(), and read_bbt().

int(* mtd_info::write)(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)

int(* mtd_info::read_ecc)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf, u_char *eccbuf, struct nand_oobinfo *oobsel)

Referenced by nand_rw(), read_bbt(), and rflflash_nand_rw().

int(* mtd_info::write_ecc)(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf, u_char *eccbuf, struct nand_oobinfo *oobsel)

Referenced by nand_rw(), and rflflash_nand_rw().

int(* mtd_info::read_oob)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

Referenced by create_bbt(), rflflash_dump_oob(), scan_block_fast(), and scan_read_raw().

int(* mtd_info::write_oob)(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)

Referenced by rflflash_dump_oob(), and scan_write_bbt().

int(* mtd_info::get_fact_prot_info)(struct mtd_info *mtd, struct otp_info *buf, size_t len)

int(* mtd_info::read_fact_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

int(* mtd_info::get_user_prot_info)(struct mtd_info *mtd, struct otp_info *buf, size_t len)

int(* mtd_info::read_user_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

int(* mtd_info::write_user_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)

int(* mtd_info::lock_user_prot_reg)(struct mtd_info *mtd, loff_t from, size_t len)

int(* mtd_info::readv)(struct mtd_info *mtd, struct kvec *vecs, unsigned long count, loff_t from, size_t *retlen)

int(* mtd_info::readv_ecc)(struct mtd_info *mtd, struct kvec *vecs, unsigned long count, loff_t from, size_t *retlen, u_char *eccbuf, struct nand_oobinfo *oobsel)

int(* mtd_info::writev)(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen)

int(* mtd_info::writev_ecc)(struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen, u_char *eccbuf, struct nand_oobinfo *oobsel)

void(* mtd_info::sync)(struct mtd_info *mtd)

int(* mtd_info::lock)(struct mtd_info *mtd, loff_t ofs, size_t len)

int(* mtd_info::unlock)(struct mtd_info *mtd, loff_t ofs, size_t len)

int(* mtd_info::suspend)(struct mtd_info *mtd)

void(* mtd_info::resume)(struct mtd_info *mtd)

int(* mtd_info::block_isbad)(struct mtd_info *mtd, loff_t ofs)

Referenced by init_axis_flash(), nand_rw(), rflflash_dump(), rflflash_nand_erase(), and rflflash_nand_rw().

int(* mtd_info::block_markbad)(struct mtd_info *mtd, loff_t ofs)

Referenced by rflflash_mark_bad(), rflflash_nand_erase(), and rflflash_nand_rw().

struct notifier_block mtd_info::reboot_notifier

Definition at line 173 of file mtd.h.

void* mtd_info::priv

Definition at line 175 of file mtd.h.

Referenced by check_create(), create_bbt(), crisv32_hwcontrol(), get_platform_nandchip(), mark_bbt_region(), multi_erase_cmd(), nand_block_bad(), nand_block_checkbad(), nand_block_markbad(), nand_check_wp(), nand_command(), nand_command_lp(), nand_default_bbt(), nand_default_block_markbad(), nand_do_read_ecc(), nand_do_read_oob(), nand_do_read_ops(), nand_do_write_oob(), nand_do_write_ops(), nand_erase_nand(), nand_isbad_bbt(), nand_memory_bbt(), nand_read(), nand_read_buf(), nand_read_buf16(), nand_read_byte(), nand_read_byte16(), nand_read_oob(), nand_read_raw(), nand_read_word(), nand_release(), nand_release_device(), nand_resume(), nand_scan(), nand_scan_bbt(), nand_scan_ident(), nand_scan_tail(), nand_select_chip(), nand_suspend(), nand_sync(), nand_update_bbt(), nand_verify_buf(), nand_verify_buf16(), nand_wait_ready(), nand_write(), nand_write_buf(), nand_write_buf16(), nand_write_byte(), nand_write_byte16(), nand_write_oob(), nand_write_word(), read_abs_bbt(), read_abs_bbts(), read_bbt(), rflflash_dump_oob(), search_bbt(), single_erase_cmd(), and write_bbt().

struct module* mtd_info::owner

Definition at line 177 of file mtd.h.

Referenced by init_axis_flash(), and nand_scan().

int mtd_info::usecount

Definition at line 178 of file mtd.h.

unsigned mtd_info::ignore_bad

Definition at line 100 of file mtd.h.

Referenced by nand_block_bad(), rflflash_ignore_bad(), and rflflash_mark_bad().

char* mtd_info::name

Definition at line 114 of file mtd.h.

struct nand_oobinfo mtd_info::oobinfo

Definition at line 118 of file mtd.h.

struct mtd_erase_region_info* mtd_info::eraseregions

Definition at line 125 of file mtd.h.

void* mtd_info::priv

Definition at line 193 of file mtd.h.

struct module* mtd_info::owner

Definition at line 195 of file mtd.h.


The documentation for this struct was generated from the following files:
Generated on Fri Nov 28 00:08:48 2008 for elphel by  doxygen 1.5.1