2016-04-11 08:50:12 +00:00
|
|
|
#ifndef __INCLUDE_CRC_H
|
|
|
|
#define __INCLUDE_CRC_H
|
2006-03-30 11:40:55 +00:00
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2006-04-16 08:51:58 +00:00
|
|
|
/* 16 bit CRC with polynomial x^16+x^12+x^5+1 */
|
2015-06-04 08:50:24 +00:00
|
|
|
extern uint16_t cyg_crc16(const unsigned char *s, int len);
|
2006-03-30 11:40:55 +00:00
|
|
|
|
2016-04-11 08:50:12 +00:00
|
|
|
uint32_t crc32(uint32_t, const void *, unsigned int);
|
|
|
|
uint32_t crc32_no_comp(uint32_t, const void *, unsigned int);
|
|
|
|
int file_crc(char *filename, unsigned long start, unsigned long size,
|
|
|
|
unsigned long *crc, unsigned long *total);
|
|
|
|
|
|
|
|
#endif /* __INCLUDE_CRC_H */
|