summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrey Panin <pazke@donpac.ru>2004-06-26 20:59:49 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-26 20:59:49 -0700
commitb71671f826afa30232097800c2da7ffe3c52062f (patch)
tree8c284d575eb23d6c529a77f992d12b749f4f91c5 /include/linux
parent153a716d3b79ab3486fa4f48559eb398aa82082c (diff)
[PATCH] crc: use it in async PPP driver
This patch makes async PPP driver use common crc16 code. Signed-off-by: Andrey Panin <pazke@donpac.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ppp_defs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/ppp_defs.h b/include/linux/ppp_defs.h
index fde9fa21107b..58c71466a726 100644
--- a/include/linux/ppp_defs.h
+++ b/include/linux/ppp_defs.h
@@ -42,6 +42,8 @@
#ifndef _PPP_DEFS_H_
#define _PPP_DEFS_H_
+#include <linux/crc16.h>
+
/*
* The basic PPP frame.
*/
@@ -95,7 +97,7 @@
#define PPP_INITFCS 0xffff /* Initial FCS value */
#define PPP_GOODFCS 0xf0b8 /* Good final FCS value */
-#define PPP_FCS(fcs, c) (((fcs) >> 8) ^ fcstab[((fcs) ^ (c)) & 0xff])
+#define PPP_FCS(fcs, c) crc16_byte(fcs, c)
/*
* Extended asyncmap - allows any character to be escaped.