patch-2.1.92 linux/drivers/isdn/hisax/rawhdlc.h

Next file: linux/drivers/isdn/hisax/sedlbauer.c
Previous file: linux/drivers/isdn/hisax/rawhdlc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.91/linux/drivers/isdn/hisax/rawhdlc.h linux/drivers/isdn/hisax/rawhdlc.h
@@ -0,0 +1,26 @@
+/* $Id: rawhdlc.h,v 1.2 1998/02/09 10:53:53 keil Exp $
+
+ * rawhdlc.h     support routines for cards that don't support HDLC
+ *
+ * Author     Brent Baccala <baccala@FreeSoft.org>
+ *
+ */
+
+#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

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov