Merge with Linux 2.4.0-test6-pre9.
[linux-2.6/linux-mips.git] / drivers / isdn / hisax / rawhdlc.h
blob12ca6ab8c2cb201cc80b50ceb44dd8b895799d2e
1 /* $Id: rawhdlc.h,v 1.3 2000/06/26 08:59:14 keil Exp $
3 * rawhdlc.h support routines for cards that don't support HDLC
5 * Author Brent Baccala <baccala@FreeSoft.org>
7 * This file is (c) under GNU PUBLIC LICENSE
9 */
11 #ifndef RAWHDLC_H
12 struct hdlc_state {
13 char insane_mode;
14 u_char state;
15 u_char r_one;
16 u_char r_val;
17 u_int o_bitcnt;
18 u_int i_bitcnt;
19 u_int fcs;
23 int make_raw_hdlc_data(u_char *src, u_int slen, u_char *dst, u_int dsize);
24 void init_hdlc_state(struct hdlc_state *stateptr, int mode);
25 int read_raw_hdlc_data(struct hdlc_state *saved_state,
26 u_char *src, u_int slen, u_char *dst, u_int dsize);
27 #define RAWHDLC_H
28 #endif