Alan Cox | e1eaea4 | 2010-03-26 11:32:54 +0000 | [diff] [blame] | 1 | #ifndef _LINUX_GSMMUX_H |
| 2 | #define _LINUX_GSMMUX_H |
| 3 | |
Jiri Slaby | 1c4b1d7 | 2015-05-27 13:57:46 +0200 | [diff] [blame] | 4 | #include <linux/if.h> |
| 5 | #include <linux/ioctl.h> |
Jiri Slaby | 45c6df4 | 2015-06-23 19:09:59 +0200 | [diff] [blame] | 6 | #include <linux/types.h> |
Jiri Slaby | 1c4b1d7 | 2015-05-27 13:57:46 +0200 | [diff] [blame] | 7 | |
Alan Cox | e1eaea4 | 2010-03-26 11:32:54 +0000 | [diff] [blame] | 8 | struct gsm_config |
| 9 | { |
| 10 | unsigned int adaption; |
| 11 | unsigned int encapsulation; |
| 12 | unsigned int initiator; |
| 13 | unsigned int t1; |
| 14 | unsigned int t2; |
| 15 | unsigned int t3; |
| 16 | unsigned int n2; |
| 17 | unsigned int mru; |
| 18 | unsigned int mtu; |
| 19 | unsigned int k; |
| 20 | unsigned int i; |
| 21 | unsigned int unused[8]; /* Padding for expansion without |
| 22 | breaking stuff */ |
| 23 | }; |
| 24 | |
| 25 | #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) |
| 26 | #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) |
| 27 | |
Russ Gorby | bcd5abe | 2011-06-16 14:20:12 -0700 | [diff] [blame] | 28 | struct gsm_netconfig { |
| 29 | unsigned int adaption; /* Adaption to use in network mode */ |
| 30 | unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */ |
| 31 | unsigned short unused2; |
| 32 | char if_name[IFNAMSIZ]; /* interface name format string */ |
| 33 | __u8 unused[28]; /* For future use */ |
| 34 | }; |
| 35 | |
| 36 | #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig) |
| 37 | #define GSMIOC_DISABLE_NET _IO('G', 3) |
| 38 | |
Alan Cox | e1eaea4 | 2010-03-26 11:32:54 +0000 | [diff] [blame] | 39 | |
| 40 | #endif |