ref: b638c7753d8498eaec90f06a7c140ffe0ed76cdb
dir: /sys/src/9/port/nandecc.h/
typedef enum NandEccError { NandEccErrorBad, NandEccErrorGood, NandEccErrorOneBit, NandEccErrorOneBitInEcc, } NandEccError; ulong nandecc(uchar buf[256]); NandEccError nandecccorrect(uchar buf[256], ulong calcecc, ulong *storedecc, int reportbad);