#include <linux/types.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/fcntl.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/ctype.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/bitops.h>
#include <linux/file.h>
#include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/timer.h>
#include <linux/tty_flip.h>
#include <linux/tty_driver.h>
#include <linux/serial.h>
#include <linux/kfifo.h>
#include <linux/skbuff.h>
#include <net/arp.h>
#include <linux/ip.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/gsmmux.h>
Go to the source code of this file.
#define DLCI_CLOSING 3 /* Sending DISC not seen UA/DM */ |
#define DLCI_OPENING 1 /* Sending SABM not seen UA */ |
#define GSM1_ESCAPE_BITS 0x20 |
#define GSM_NET_TX_TIMEOUT (HZ*10) |
#define MAX_MUX 4 /* 256 minors */ |
#define N2 3 /* Retry 3 times */ |
#define T1 10 /* 100mS */ |
#define T2 34 /* 333mS */ |
#define TX_THRESH_HI 8192 |
#define TX_THRESH_LO 2048 |
gsm_activate_mux - generic GSM setup : our mux
Set up the bits of the mux which are the same for all framing protocols. Add the mux to the mux table so it can be opened and finally kick off connecting to DLCI 0 on the modem.
Definition at line 2069 of file n_gsm.c.
gsm_alloc_mux - allocate a mux
Creates a new mux ready for activation.
Definition at line 2149 of file n_gsm.c.
gsm_cleanup_mux - generic GSM protocol cleanup : our mux
Clean up the bits of the mux which are the same for all framing protocols. Remove the mux from the mux table, stop all the timers and then shut down each device hanging up the channels as we go.
Definition at line 2015 of file n_gsm.c.
gsm_free_mux - free up a mux : mux to free
Dispose of allocated resources for a dead mux
Definition at line 2113 of file n_gsm.c.
Initial value:= {
.name = "n_gsm",
.open = gsmld_open,
.close = gsmld_close,
.flush_buffer = gsmld_flush_buffer,
.chars_in_buffer = gsmld_chars_in_buffer,
.read = gsmld_read,
.write = gsmld_write,
.ioctl = gsmld_ioctl,
.poll = gsmld_poll,
.receive_buf = gsmld_receive_buf,
.write_wakeup = gsmld_write_wakeup
}
Definition at line 2807 of file n_gsm.c.