code: 9ferno

ref: e81c54ba2ecc673a4d5f8aed0e9b52841fe07b0d
dir: /include/nandecc.h/

View raw version
#pragma src "/usr/inferno/libnandfs"

typedef enum NandEccError {
	NandEccErrorBad,
	NandEccErrorGood,
	NandEccErrorOneBit,
	NandEccErrorOneBitInEcc,
} NandEccError;

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