Go to the documentation of this file.
11 #ifndef __MTD_NAND_BCH_H__
12 #define __MTD_NAND_BCH_H__
17 #if defined(CONFIG_MTD_NAND_ECC_BCH)
19 static inline int mtd_nand_has_bch(
void) {
return 1; }
36 nand_bch_init(
struct mtd_info *mtd,
unsigned int eccsize,
45 static inline int mtd_nand_has_bch(
void) {
return 0; }
55 nand_bch_correct_data(
struct mtd_info *mtd,
unsigned char *
buf,
56 unsigned char *read_ecc,
unsigned char *calc_ecc)
62 nand_bch_init(
struct mtd_info *mtd,
unsigned int eccsize,