Linux Kernel
3.7.1
|
#include <bbm.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 |
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
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.
int pages[NAND_MAX_CHIPS] |
uint8_t version[NAND_MAX_CHIPS] |