Logo Search packages:      
Sourcecode: linux version File versions

nand_chip Struct Reference

#include <nand.h>

List of all members.


Detailed Description

struct nand_chip - NAND Private Flash Chip Data : [BOARDSPECIFIC] address to read the 8 I/O lines of the flash device : [BOARDSPECIFIC] address to write the 8 I/O lines of the flash device : [REPLACEABLE] read one byte from the chip : [REPLACEABLE] read one word from the chip : [REPLACEABLE] write data from the buffer to the chip : [REPLACEABLE] read data from the chip into the buffer : [REPLACEABLE] verify buffer contents against the chip data : [REPLACEABLE] select chip nr : [REPLACEABLE] check, if the block is bad : [REPLACEABLE] mark the block bad : [BOARDSPECIFIC] hardwarespecific funtion for controlling ALE/CLE/nCE. Also used to write command and address : [BOARDSPECIFIC] hardwarespecific function for accesing device ready/busy line If set to NULL no access to ready/busy is available and the ready/busy information is read from the chip status register : [REPLACEABLE] hardwarespecific function for writing commands to the chip : [REPLACEABLE] hardwarespecific function for wait on ready : [BOARDSPECIFIC] ecc control ctructure : buffer structure for read/write : platform-specific hardware control structure : oob operation operands : [INTERN] erase command write function, selectable due to AND support : [REPLACEABLE] function to scan bad block table : [BOARDSPECIFIC] chip dependent delay for transfering data from array to read regs (tR) : [INTERN] wait queue to sleep on if a NAND operation is in progress : [INTERN] the current state of the NAND device : poison value buffer : [INTERN] number of address bits in a page (column address bits) : [INTERN] number of address bits in a physical eraseblock : [INTERN] number of address bits in a bbt entry : [INTERN] number of address bits in one chip : [INTERN] internal buffer for one page + oob : [INTERN] oob buffer for one eraseblock : [INTERN] indicates that oob_buf must be reinitialized : [INTERN] pointer to a data buffer : [BOARDSPECIFIC] various chip options. They can partly be set to inform nand_scan about special functionality. See the defines for further explanation : [INTERN] position of the bad block marker in the oob area : [INTERN] MLC/multichip data from chip ident : [INTERN] number of physical chips : [INTERN] the size of one chip for multichip arrays : [INTERN] page number mask = number of (pages / chip) - 1 : [INTERN] holds the pagenumber which is currently in data_buf : [INTERN] holds the subpagesize : [REPLACEABLE] the default ecc placement scheme : [INTERN] bad block table pointer : [REPLACEABLE] bad block table descriptor for flash lookup : [REPLACEABLE] bad block table mirror descriptor : [REPLACEABLE] bad block scan pattern used for initial bad block scan : [REPLACEABLE] a pointer to a hardware controller structure which is shared among multiple independend devices : [OPTIONAL] pointer to private chip date : [OPTIONAL] hardware specific function to perform additional error status checks (determine if errors are correctable) : [REPLACEABLE] High-level page write function

Definition at line 370 of file nand.h.


Public Attributes

struct nand_bbt_descrbadblock_pattern
int badblockpos
uint8_t * bbt
int bbt_erase_shift
struct nand_bbt_descrbbt_md
struct nand_bbt_descrbbt_td
int(* block_bad )(struct mtd_info *mtd, loff_t ofs, int getchip)
int(* block_markbad )(struct mtd_info *mtd, loff_t ofs)
struct nand_buffersbuffers
uint8_t cellinfo
int chip_delay
int chip_shift
unsigned long chipsize
void(* cmd_ctrl )(struct mtd_info *mtd, int dat, unsigned int ctrl)
void(* cmdfunc )(struct mtd_info *mtd, unsigned command, int column, int page_addr)
struct nand_hw_controlcontroller
int(* dev_ready )(struct mtd_info *mtd)
struct nand_ecc_ctrl ecc
struct nand_ecclayout * ecclayout
void(* erase_cmd )(struct mtd_info *mtd, int page)
int(* errstat )(struct mtd_info *mtd, struct nand_chip *this, int state, int status, int page)
struct nand_hw_control hwcontrol
void __iomem * IO_ADDR_R
void __iomem * IO_ADDR_W
int numchips
uint8_t * oob_poi
struct mtd_oob_ops ops
unsigned int options
int page_shift
int pagebuf
int pagemask
int phys_erase_shift
void * priv
void(* read_buf )(struct mtd_info *mtd, uint8_t *buf, int len)
uint8_t(* read_byte )(struct mtd_info *mtd)
u16(* read_word )(struct mtd_info *mtd)
int(* scan_bbt )(struct mtd_info *mtd)
void(* select_chip )(struct mtd_info *mtd, int chip)
nand_state_t state
int subpagesize
int(* verify_buf )(struct mtd_info *mtd, const uint8_t *buf, int len)
int(* waitfunc )(struct mtd_info *mtd, struct nand_chip *this)
void(* write_buf )(struct mtd_info *mtd, const uint8_t *buf, int len)
int(* write_page )(struct mtd_info *mtd, struct nand_chip *chip, const uint8_t *buf, int page, int cached, int raw)

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index