#include <linux/module.h>
#include <linux/init.h>
#include <linux/crc-ccitt.h>
#include <linux/isdn/hdlc.h>
#include <linux/bitrev.h>
Go to the source code of this file.
|
enum | {
HDLC_FAST_IDLE,
HDLC_GET_FLAG_B0,
HDLC_GETFLAG_B1A6,
HDLC_GETFLAG_B7,
HDLC_GET_DATA,
HDLC_FAST_FLAG
} |
|
enum | {
HDLC_SEND_DATA,
HDLC_SEND_CRC1,
HDLC_SEND_FAST_FLAG,
HDLC_SEND_FIRST_FLAG,
HDLC_SEND_CRC2,
HDLC_SEND_CLOSING_FLAG,
HDLC_SEND_IDLE1,
HDLC_SEND_FAST_IDLE,
HDLC_SENDFLAG_B0,
HDLC_SENDFLAG_B1A6,
HDLC_SENDFLAG_B7,
STOPPED,
HDLC_SENDFLAG_ONE
} |
|
|
| MODULE_AUTHOR ("Wolfgang Mües <[email protected]>, ""Frode Isaksen <[email protected]>, ""Kai Germaschewski <[email protected]>") |
|
| MODULE_DESCRIPTION ("General purpose ISDN HDLC decoder") |
|
| MODULE_LICENSE ("GPL") |
|
void | isdnhdlc_rcv_init (struct isdnhdlc_vars *hdlc, u32 features) |
|
| EXPORT_SYMBOL (isdnhdlc_out_init) |
|
void | isdnhdlc_out_init (struct isdnhdlc_vars *hdlc, u32 features) |
|
| EXPORT_SYMBOL (isdnhdlc_rcv_init) |
|
int | isdnhdlc_decode (struct isdnhdlc_vars *hdlc, const u8 *src, int slen, int *count, u8 *dst, int dsize) |
|
| EXPORT_SYMBOL (isdnhdlc_decode) |
|
int | isdnhdlc_encode (struct isdnhdlc_vars *hdlc, const u8 *src, u16 slen, int *count, u8 *dst, int dsize) |
|
| EXPORT_SYMBOL (isdnhdlc_encode) |
|
#define handle_abort |
( |
|
h | ) |
|
Value:do { \
h->shift_reg = fast_abort[
h->ffbit_shift - 1]; \
h->hdlc_bits1 =
h->ffbit_shift - 2; \
h->hdlc_bits1 = 0; \
h->data_bits =
h->ffbit_shift - 1; \
h->data_received = 0; \
} while (0)
#define handle_fast_flag |
( |
|
h | ) |
|
Value:do { \
if (
h->cbin == fast_flag[
h->bit_shift]) { \
h->ffvalue = fast_flag_value[
h->bit_shift]; \
h->ffbit_shift =
h->bit_shift; \
h->bit_shift = 1; \
} else { \
h->data_received = 0; \
} \
} while (0)
- Enumerator:
HDLC_FAST_IDLE |
|
HDLC_GET_FLAG_B0 |
|
HDLC_GETFLAG_B1A6 |
|
HDLC_GETFLAG_B7 |
|
HDLC_GET_DATA |
|
HDLC_FAST_FLAG |
|
Definition at line 41 of file isdnhdlc.c.
- Enumerator:
HDLC_SEND_DATA |
|
HDLC_SEND_CRC1 |
|
HDLC_SEND_FAST_FLAG |
|
HDLC_SEND_FIRST_FLAG |
|
HDLC_SEND_CRC2 |
|
HDLC_SEND_CLOSING_FLAG |
|
HDLC_SEND_IDLE1 |
|
HDLC_SEND_FAST_IDLE |
|
HDLC_SENDFLAG_B0 |
|
HDLC_SENDFLAG_B1A6 |
|
HDLC_SENDFLAG_B7 |
|
STOPPED |
|
HDLC_SENDFLAG_ONE |
|
Definition at line 46 of file isdnhdlc.c.
MODULE_AUTHOR |
( |
"Wolfgang Mües <[email protected]> |
, |
|
|
""Frode Isaksen< fisaksen @bewan.com > |
, |
|
|
""Kai Germaschewski< kai.germaschewski @gmx.de >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"General purpose ISDN HDLC decoder" |
| ) |
|