1
2 #ifndef _LINUX_GSMMUX_H
3 #define _LINUX_GSMMUX_H
4
5 #include <linux/if.h>
6 #include <linux/ioctl.h>
7 #include <linux/types.h>
8
9 struct gsm_config
10 {
11 unsigned int adaption;
12 unsigned int encapsulation;
13 unsigned int initiator;
14 unsigned int t1;
15 unsigned int t2;
16 unsigned int t3;
17 unsigned int n2;
18 unsigned int mru;
19 unsigned int mtu;
20 unsigned int k;
21 unsigned int i;
22 unsigned int unused[8];
23
24 };
25
26 #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
27 #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
28
29 struct gsm_netconfig {
30 unsigned int adaption;
31 unsigned short protocol;
32 unsigned short unused2;
33 char if_name[IFNAMSIZ];
34 __u8 unused[28];
35 };
36
37 #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
38 #define GSMIOC_DISABLE_NET _IO('G', 3)
39
40
41 #define GSMIOC_GETFIRST _IOR('G', 4, __u32)
42
43 #endif