summaryrefslogtreecommitdiff
path: root/include/linux/gsmmux.h
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2010-03-26 14:32:54 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-21 20:34:29 +0400
commite1eaea46bb4020b38a141b84f88565d4603f8dd0 (patch)
treeade3efe84cf4aff3cb29ec2ea2be30c97b141ad7 /include/linux/gsmmux.h
parent1ff454ef9b1e852e8f4d295a68a715b1dddf233c (diff)
downloadlinux-e1eaea46bb4020b38a141b84f88565d4603f8dd0.tar.xz
tty: n_gsm line discipline
Add an implementation of GSM 0710 MUX. The implementation currently supports - Basic and advanced framing (as either end of the link) - UI or UIH data frames - Adaption layer 1-4 (1 and 2 via tty, 3 and 4 as skbuff lists) - Modem and control messages including the correct retry process - Flow control and exposes the MUX channels as a set of virtual tty devices including modem signals. This is an experimental driver. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/gsmmux.h')
-rw-r--r--include/linux/gsmmux.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/gsmmux.h b/include/linux/gsmmux.h
new file mode 100644
index 000000000000..378de4195caf
--- /dev/null
+++ b/include/linux/gsmmux.h
@@ -0,0 +1,25 @@
+#ifndef _LINUX_GSMMUX_H
+#define _LINUX_GSMMUX_H
+
+struct gsm_config
+{
+ unsigned int adaption;
+ unsigned int encapsulation;
+ unsigned int initiator;
+ unsigned int t1;
+ unsigned int t2;
+ unsigned int t3;
+ unsigned int n2;
+ unsigned int mru;
+ unsigned int mtu;
+ unsigned int k;
+ unsigned int i;
+ unsigned int unused[8]; /* Padding for expansion without
+ breaking stuff */
+};
+
+#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
+#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
+
+
+#endif