summaryrefslogtreecommitdiff
path: root/fs/ext4/crc16.h
diff options
context:
space:
mode:
authorUma Shankar <uma.shankar@samsung.com>2012-05-25 21:22:49 +0530
committerWolfgang Denk <wd@denx.de>2012-08-09 23:48:02 +0200
commited34f34dbaf206dfe223f4bc2147d600fe1b0f58 (patch)
tree5a0f1c40bb6598e0db9d2e1b0d1b85814348ad8b /fs/ext4/crc16.h
parenta1596438a68921d2c9b1fdec70a720d38c85ca7d (diff)
downloadu-boot-imx-ed34f34dbaf206dfe223f4bc2147d600fe1b0f58.zip
u-boot-imx-ed34f34dbaf206dfe223f4bc2147d600fe1b0f58.tar.gz
u-boot-imx-ed34f34dbaf206dfe223f4bc2147d600fe1b0f58.tar.bz2
ext4fs write support
Signed-off-by: Uma Shankar <uma.shankar@samsung.com> Signed-off-by: Manjunatha C Achar <a.manjunatha@samsung.com> Signed-off-by: Iqbal Shareef <iqbal.ams@samsung.com> Signed-off-by: Hakgoo Lee <goodguy.lee@samsung.com>
Diffstat (limited to 'fs/ext4/crc16.h')
-rw-r--r--fs/ext4/crc16.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/fs/ext4/crc16.h b/fs/ext4/crc16.h
new file mode 100644
index 0000000..5fd113a
--- /dev/null
+++ b/fs/ext4/crc16.h
@@ -0,0 +1,16 @@
+/*
+ * crc16.h - CRC-16 routine
+ * Implements the standard CRC-16:
+ * Width 16
+ * Poly 0x8005 (x16 + x15 + x2 + 1)
+ * Init 0
+ *
+ * Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com>
+ * This source code is licensed under the GNU General Public License,
+ * Version 2. See the file COPYING for more details.
+ */
+#ifndef __CRC16_H
+#define __CRC16_H
+extern unsigned int ext2fs_crc16(unsigned int crc,
+ const void *buffer, unsigned int len);
+#endif