1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _LINUX_GSMMUX_H
8 #define _LINUX_GSMMUX_H
9 #include <linux/const.h>
10 #include <linux/if.h>
11 #include <linux/ioctl.h>
12 #include <linux/types.h>
13 #define GSM_FL_RESTART _BITUL(0)
14 struct gsm_config {
15   unsigned int adaption;
16   unsigned int encapsulation;
17   unsigned int initiator;
18   unsigned int t1;
19   unsigned int t2;
20   unsigned int t3;
21   unsigned int n2;
22   unsigned int mru;
23   unsigned int mtu;
24   unsigned int k;
25   unsigned int i;
26   unsigned int unused[8];
27 };
28 #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
29 #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
30 struct gsm_netconfig {
31   unsigned int adaption;
32   unsigned short protocol;
33   unsigned short unused2;
34   char if_name[IFNAMSIZ];
35   __u8 unused[28];
36 };
37 #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
38 #define GSMIOC_DISABLE_NET _IO('G', 3)
39 #define GSMIOC_GETFIRST _IOR('G', 4, __u32)
40 struct gsm_config_ext {
41   __u32 keep_alive;
42   __u32 wait_config;
43   __u32 flags;
44   __u32 reserved[5];
45 };
46 #define GSMIOC_GETCONF_EXT _IOR('G', 5, struct gsm_config_ext)
47 #define GSMIOC_SETCONF_EXT _IOW('G', 6, struct gsm_config_ext)
48 struct gsm_dlci_config {
49   __u32 channel;
50   __u32 adaption;
51   __u32 mtu;
52   __u32 priority;
53   __u32 i;
54   __u32 k;
55   __u32 flags;
56   __u32 reserved[7];
57 };
58 #define GSMIOC_GETCONF_DLCI _IOWR('G', 7, struct gsm_dlci_config)
59 #define GSMIOC_SETCONF_DLCI _IOW('G', 8, struct gsm_dlci_config)
60 #endif
61