shithub: riscv

ref: 5fc5c18208546c77f2c279f7f6acf6b01a2d2645
dir: /sys/src/9/port/nandecc.h/

View raw version
typedef enum NandEccError {
	NandEccErrorBad,
	NandEccErrorGood,
	NandEccErrorOneBit,
	NandEccErrorOneBitInEcc,
} NandEccError;

ulong nandecc(uchar buf[256]);
NandEccError nandecccorrect(uchar buf[256], ulong calcecc, ulong *storedecc,
	int reportbad);