.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "NAND_CALCULATE_ECC" "9" "09 October 2005" "" "" .SH NAME nand_calculate_ecc \- [NAND Interface] Calculate 3 byte ECC code for 256 byte block .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int nand_calculate_ecc (struct mtd_info * \fImtd\fB, const u_char * \fIdat\fB, u_char * \fIecc_code\fB); \fR .SH "ARGUMENTS" .TP \fB\fImtd\fB\fR MTD block structure .TP \fB\fIdat\fB\fR raw data .TP \fB\fIecc_code\fB\fR buffer for ECC