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