X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcrc.h;h=111cb4adb74403118db4ef6ebf263d94925c30f6;hb=22802f4e3a0a8ead928a0af06b7719b604a98afb;hp=5085d4ed477919c0f01390742c7b5b23892e9894;hpb=c2120fbfbc4d1f6953228f86be8bdbf38bacfdab;p=u-boot diff --git a/include/crc.h b/include/crc.h index 5085d4ed47..111cb4adb7 100644 --- a/include/crc.h +++ b/include/crc.h @@ -36,34 +36,8 @@ # endif #endif -/* Compute a CRC, using the POSIX 1003 definition */ -extern uint32_t -cyg_posix_crc32(unsigned char *s, int len); +/* 16 bit CRC with polynomial x^16+x^12+x^5+1 (CRC-CCITT) */ -/* Gary S. Brown's 32 bit CRC */ - -extern uint32_t -cyg_crc32(unsigned char *s, int len); - -/* Gary S. Brown's 32 bit CRC, but accumulate the result from a */ -/* previous CRC calculation */ - -extern uint32_t -cyg_crc32_accumulate(uint32_t crc, unsigned char *s, int len); - -/* Ethernet FCS Algorithm */ - -extern uint32_t -cyg_ether_crc32(unsigned char *s, int len); - -/* Ethernet FCS algorithm, but accumulate the result from a previous */ -/* CRC calculation. */ - -extern uint32_t -cyg_ether_crc32_accumulate(uint32_t crc, unsigned char *s, int len); - -/* 16 bit CRC with polynomial x^16+x^12+x^5+1 */ - -extern uint16_t cyg_crc16(unsigned char *s, int len); +uint16_t crc16_ccitt(uint16_t crc_start, unsigned char *s, int len); #endif /* _SERVICES_CRC_CRC_H_ */