nand_calculate_ecc — [NAND Interface] Calculate 3-byte ECC for 256-byte block
int nand_calculate_ecc (struct mtd_info * mtd, const u_char * dat, u_char * ecc_code);
int nand_calculate_ecc
MTD block structure
raw data
buffer for ECC