0001
0002 #ifndef _LINUX_GSMMUX_H
0003 #define _LINUX_GSMMUX_H
0004
0005 #include <linux/if.h>
0006 #include <linux/ioctl.h>
0007 #include <linux/types.h>
0008
0009 struct gsm_config
0010 {
0011 unsigned int adaption;
0012 unsigned int encapsulation;
0013 unsigned int initiator;
0014 unsigned int t1;
0015 unsigned int t2;
0016 unsigned int t3;
0017 unsigned int n2;
0018 unsigned int mru;
0019 unsigned int mtu;
0020 unsigned int k;
0021 unsigned int i;
0022 unsigned int unused[8];
0023
0024 };
0025
0026 #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
0027 #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
0028
0029 struct gsm_netconfig {
0030 unsigned int adaption;
0031 unsigned short protocol;
0032 unsigned short unused2;
0033 char if_name[IFNAMSIZ];
0034 __u8 unused[28];
0035 };
0036
0037 #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
0038 #define GSMIOC_DISABLE_NET _IO('G', 3)
0039
0040
0041 #define GSMIOC_GETFIRST _IOR('G', 4, __u32)
0042
0043 #endif