#include <linux/module.h>
#include <linux/init.h>
-#include <linux/crc16.h>
+#include <linux/crc-ccitt.h>
#include "isdnhdlc.h"
/*-------------------------------------------------------------------*/
if(hdlc->data_bits==8){
hdlc->data_bits = 0;
hdlc->data_received = 1;
- hdlc->crc = crc16_byte(hdlc->crc, hdlc->shift_reg);
+ hdlc->crc = crc_ccitt_byte(hdlc->crc, hdlc->shift_reg);
// good byte received
if (dsize--) {
break;
}
if(hdlc->bit_shift==8){
- hdlc->crc = crc16_byte(hdlc->crc, hdlc->shift_reg);
+ hdlc->crc = crc_ccitt_byte(hdlc->crc, hdlc->shift_reg);
}
if(hdlc->shift_reg & 0x01){
hdlc->hdlc_bits1++;
*
*/
-#include <linux/crc16.h>
+#include <linux/crc-ccitt.h>
#include "st5481_hdlc.h"
if(hdlc->data_bits==8){
hdlc->data_bits = 0;
hdlc->data_received = 1;
- hdlc->crc = crc16_byte(hdlc->crc, hdlc->shift_reg);
+ hdlc->crc = crc_ccitt_byte(hdlc->crc, hdlc->shift_reg);
// good byte received
if (dsize--) {
break;
}
if(hdlc->bit_shift==8){
- hdlc->crc = crc16_byte(hdlc->crc, hdlc->shift_reg);
+ hdlc->crc = crc_ccitt_byte(hdlc->crc, hdlc->shift_reg);
}
if(hdlc->shift_reg & 0x01){
hdlc->hdlc_bits1++;
---------------------------------------------------------------------------*/
-#include <linux/crc16.h>
+#include <linux/crc-ccitt.h>
#include "tpam.h"
#define HDLC_CTRL_CHAR_CMPL_MASK 0x20 /* HDLC control character complement mask */
/*
* FCS calculation
*/
- fcs = crc16_byte(fcs, data);
+ fcs = crc_ccitt_byte(fcs, data);
ESCAPE_CHAR(p_data_out, data);
}
while (lng_in--) {
data = *buffer_in++;
/* calculate FCS */
- fcs = crc16_byte(fcs, data);
+ fcs = crc_ccitt_byte(fcs, data);
*p_data_out++ = data;
}
while (lng_in--) {
data = *buffer_in++;
/* calculate FCS */
- fcs = crc16_byte(fcs, data);
+ fcs = crc_ccitt_byte(fcs, data);
}
if (fcs == HDLC_FCS_OK)