ref: c116550e6a41572796e4db65e4f6acbcb3d9d6f8
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);