Commit df56a4e3 authored by Duncan Sands's avatar Duncan Sands Committed by Greg Kroah-Hartman

[PATCH] USB speedtouch: expose crc defs to speedtouch

Expose some CRC definitions in atmsar.h (for use by speedtouch.c).
parent d71ce8f0
......@@ -119,7 +119,6 @@
*/
#define CRC32_REMAINDER CBF43926
#define CRC32_INITIAL 0xffffffff
#define CRC32(c,crc) (crc32tab[((size_t)(crc>>24) ^ (c)) & 0xff] ^ (((crc) << 8)))
unsigned long crc32tab[256] = {
0x00000000L, 0x04C11DB7L, 0x09823B6EL, 0x0D4326D9L,
0x130476DCL, 0x17C56B6BL, 0x1A864DB2L, 0x1E475005L,
......@@ -214,8 +213,6 @@ unsigned long calc_crc (char *mem, int len, unsigned initial)
}
#endif
#define crc32( crc, mem, len) calc_crc(mem, len, crc);
/* initialization routines. not used at the moment
* I will avoid these as long as possible !!
*/
......
......@@ -50,6 +50,11 @@
#define ATMSAR_DEF_MTU_AAL34 0 /* not supported */
#define ATMSAR_DEF_MTU_AAL5 65535 /* max mtu .. */
#define CRC32(c,crc) (crc32tab[((size_t)(crc>>24) ^ (c)) & 0xff] ^ (((crc) << 8)))
#define crc32( crc, mem, len) calc_crc(mem, len, crc);
extern unsigned long crc32tab[256];
struct atmsar_vcc_data {
struct atmsar_vcc_data *next;
......@@ -92,4 +97,6 @@ struct sk_buff *atmsar_alloc_tx (struct atmsar_vcc_data *vcc, unsigned int size)
unsigned int atmsar_encode (struct atmsar_vcc_data *ctx, char *source, char *target, unsigned int pdu_length);
unsigned long calc_crc (char *mem, int len, unsigned initial);
#endif /* _ATMSAR_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment