Go to the documentation of this file.
28 #ifndef __LINUX_MTD_BBM_H
29 #define __LINUX_MTD_BBM_H
32 #define NAND_MAX_CHIPS 8
72 #define NAND_BBT_NRBITS_MSK 0x0000000F
73 #define NAND_BBT_1BIT 0x00000001
74 #define NAND_BBT_2BIT 0x00000002
75 #define NAND_BBT_4BIT 0x00000004
76 #define NAND_BBT_8BIT 0x00000008
78 #define NAND_BBT_LASTBLOCK 0x00000010
80 #define NAND_BBT_ABSPAGE 0x00000020
82 #define NAND_BBT_PERCHIP 0x00000080
84 #define NAND_BBT_VERSION 0x00000100
86 #define NAND_BBT_CREATE 0x00000200
93 #define NAND_BBT_CREATE_EMPTY 0x00000400
95 #define NAND_BBT_SCANALLPAGES 0x00000800
97 #define NAND_BBT_SCANEMPTY 0x00001000
99 #define NAND_BBT_WRITE 0x00002000
101 #define NAND_BBT_SAVECONTENT 0x00004000
103 #define NAND_BBT_SCAN2NDPAGE 0x00008000
105 #define NAND_BBT_SCANLASTPAGE 0x00010000
110 #define NAND_BBT_USE_FLASH 0x00020000
115 #define NAND_BBT_NO_OOB 0x00040000
120 #define NAND_BBT_NO_OOB_BBM 0x00080000
127 #define NAND_BBT_DYNAMICSTRUCT 0x80000000
130 #define NAND_BBT_SCAN_MAXBLOCKS 4
135 #define NAND_SMALL_BADBLOCK_POS 5
136 #define NAND_LARGE_BADBLOCK_POS 0
137 #define ONENAND_BADBLOCK_POS 0
142 #define ONENAND_BBT_READ_ERROR 1
143 #define ONENAND_BBT_READ_ECC_ERROR 2
144 #define ONENAND_BBT_READ_FATAL_ERROR 4