ref: 3bc3af7088d6792ede592996cacbdd825c06e74c
dir: /include/nandecc.h/
#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);