1NAND_READ_PAGE_HWECC(9) Internal Functions Provided NAND_READ_PAGE_HWECC(9)
2
3
4
6 nand_read_page_hwecc_oob_first - [REPLACABLE] hw ecc, read oob first
7
9 int nand_read_page_hwecc_oob_first(struct mtd_info * mtd,
10 struct nand_chip * chip,
11 uint8_t * buf, int page);
12
14 mtd
15 mtd info structure
16
17 chip
18 nand chip info structure
19
20 buf
21 buffer to store read data
22
23 page
24 page number to read
25
27 Hardware ECC for large page chips, require OOB to be read first. For
28 this ECC mode, the write_page method is re-used from ECC_HW. These
29 methods read/write ECC from the OOB area, unlike the ECC_HW_SYNDROME
30 support with multiple ECC steps, follows the “infix ECC” scheme and
31 reads/writes ECC from the data area, by overwriting the NAND
32 manufacturer bad block markings.
33
35 Thomas Gleixner <tglx@linutronix.de>
36 Author.
37
39Kernel Hackers Manual 2.6. November 2011 NAND_READ_PAGE_HWECC(9)