nand_bbt_descr Struct Reference

#include <nand.h>


Data Fields

int options
int pages [NAND_MAX_CHIPS]
int offs
int veroffs
uint8_t version [NAND_MAX_CHIPS]
int len
int maxblocks
int reserved_block_code
uint8_t * pattern
uint8_t * pattern


Detailed Description

struct nand_bbt_descr - bad block table descriptor : options for this descriptor : the page(s) where we find the bbt, used with option BBT_ABSPAGE when bbt is searched, then we store the found bbts pages here. Its an array and supports up to 8 chips now : offset of the pattern in the oob area of the page : offset of the bbt version counter in the oob are of the page
Version:
: version read from the bbt page during scan : length of the pattern, if 0 no pattern check is performed : maximum number of blocks to search for a bbt. This number of blocks is reserved at the end of the device where the tables are written. : if non-0, this pattern denotes a reserved (rather than bad) block in the stored bbt : pattern to identify bad block table or factory marked good / bad blocks, can be NULL, if len = 0
Descriptor for the bad block table marker and the descriptor for the pattern which identifies good and bad blocks. The assumption is made that the pattern and the version count are always located in the oob area of the first block.

Definition at line 487 of file nand.h.


Field Documentation

int nand_bbt_descr::options

Definition at line 488 of file nand.h.

Referenced by check_create(), check_pattern(), create_bbt(), mark_bbt_region(), nand_erase_nand(), nand_memory_bbt(), nand_scan_bbt(), nand_update_bbt(), read_abs_bbt(), read_abs_bbts(), search_bbt(), and write_bbt().

int nand_bbt_descr::pages

Definition at line 489 of file nand.h.

Referenced by check_create(), mark_bbt_region(), nand_erase_nand(), read_abs_bbt(), read_abs_bbts(), search_bbt(), and write_bbt().

int nand_bbt_descr::offs

Definition at line 490 of file nand.h.

Referenced by check_pattern(), and check_short_pattern().

int nand_bbt_descr::veroffs

Definition at line 491 of file nand.h.

Referenced by read_abs_bbts(), and search_bbt().

uint8_t nand_bbt_descr::version

Definition at line 492 of file nand.h.

Referenced by check_create(), nand_update_bbt(), read_abs_bbts(), and search_bbt().

int nand_bbt_descr::len

Definition at line 493 of file nand.h.

Referenced by check_pattern(), check_short_pattern(), and create_bbt().

int nand_bbt_descr::maxblocks

Definition at line 494 of file nand.h.

Referenced by mark_bbt_region(), and search_bbt().

int nand_bbt_descr::reserved_block_code

Definition at line 495 of file nand.h.

Referenced by mark_bbt_region(), read_abs_bbt(), and write_bbt().

uint8_t* nand_bbt_descr::pattern

Definition at line 496 of file nand.h.

Referenced by check_pattern(), and check_short_pattern().

uint8_t* nand_bbt_descr::pattern

Definition at line 468 of file nand.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