xref: /openbmc/u-boot/fs/ext4/crc16.h (revision fabbeb33)
1 /*
2  * crc16.h - CRC-16 routine
3  * Implements the standard CRC-16:
4  *  Width 16
5  *  Poly  0x8005 (x16 + x15 + x2 + 1)
6  *  Init  0
7  *
8  * Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com>
9  * This source code is licensed under the GNU General Public License,
10  * Version 2. See the file COPYING for more details.
11  */
12 #ifndef __CRC16_H
13 #define __CRC16_H
14 extern unsigned int ext2fs_crc16(unsigned int crc,
15 	const void *buffer, unsigned int len);
16 #endif
17