1__NAND_CORRECT_DATA(9)     Public Functions Provided    __NAND_CORRECT_DATA(9)
2
3
4

NAME

6       __nand_correct_data - [NAND Interface] Detect and correct bit error(s)
7

SYNOPSIS

9       int __nand_correct_data(unsigned char * buf, unsigned char * read_ecc,
10                               unsigned char * calc_ecc,
11                               unsigned int eccsize);
12

ARGUMENTS

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

DESCRIPTION

27       Detect and correct a 1 bit error for eccsize byte block
28

AUTHOR

30       Thomas Gleixner <tglx@linutronix.de>
31           Author.
32
34Kernel Hackers Manual 2.6.       November 2011          __NAND_CORRECT_DATA(9)
Impressum