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