1__NAND_CORRECT_DATA(9) Public Functions Provided __NAND_CORRECT_DATA(9)
2
3
4
6 __nand_correct_data - [NAND Interface] Detect and correct bit error(s)
7
9 int __nand_correct_data(unsigned char * buf, unsigned char * read_ecc,
10 unsigned char * calc_ecc,
11 unsigned int eccsize);
12
14 buf
15 raw data read from the chip
16
17 read_ecc
18 ECC from the chip
19
20 calc_ecc
21 the ECC calculated from raw data
22
23 eccsize
24 data bytes per ecc step (256 or 512)
25
27 Detect and correct a 1 bit error for eccsize byte block
28
30 Thomas Gleixner <tglx@linutronix.de>
31 Author.
32
34Kernel Hackers Manual 2.6. November 2011 __NAND_CORRECT_DATA(9)