summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/rawhdlc.h
blob: 1ba38a51f52733eb8b1fb8b8d922a039415293fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* $Id: rawhdlc.h,v 1.3.6.1 2001/02/16 16:43:29 kai Exp $
 *
 * rawhdlc.h     support routines for cards that don't support HDLC
 *
 * Author     Brent Baccala <baccala@FreeSoft.org>
 *
 * This file is (c) under GNU General Public License
 *
 */

#ifndef RAWHDLC_H
struct hdlc_state {
	char insane_mode;
	u_char state;
	u_char r_one;
	u_char r_val;
	u_int o_bitcnt;
	u_int i_bitcnt;
	u_int fcs;
};


int make_raw_hdlc_data(u_char *src, u_int slen, u_char *dst, u_int dsize);
void init_hdlc_state(struct hdlc_state *stateptr, int mode);
int read_raw_hdlc_data(struct hdlc_state *saved_state,
                       u_char *src, u_int slen, u_char *dst, u_int dsize);
#define RAWHDLC_H
#endif