summaryrefslogtreecommitdiff
path: root/ubi-utils/src/bin2nand/nandecc.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/bin2nand/nandecc.h')
-rw-r--r--ubi-utils/src/bin2nand/nandecc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ubi-utils/src/bin2nand/nandecc.h b/ubi-utils/src/bin2nand/nandecc.h
new file mode 100644
index 0000000..8ae8a66
--- /dev/null
+++ b/ubi-utils/src/bin2nand/nandecc.h
@@ -0,0 +1,11 @@
+/*
+ * NAND ecc functions
+ */
+#ifndef _NAND_ECC_H
+#define _NAND_ECC_H
+
+#include <stdint.h>
+
+extern int nand_calculate_ecc(const uint8_t *dat, uint8_t *ecc_code);
+
+#endif