blob: c06742d528562e12761eda74f6b421e5fb370a39 [file] [log] [blame]
Alan Coxe1eaea42010-03-26 11:32:54 +00001#ifndef _LINUX_GSMMUX_H
2#define _LINUX_GSMMUX_H
3
Jiri Slaby1c4b1d72015-05-27 13:57:46 +02004#include <linux/if.h>
5#include <linux/ioctl.h>
6
Alan Coxe1eaea42010-03-26 11:32:54 +00007struct gsm_config
8{
9 unsigned int adaption;
10 unsigned int encapsulation;
11 unsigned int initiator;
12 unsigned int t1;
13 unsigned int t2;
14 unsigned int t3;
15 unsigned int n2;
16 unsigned int mru;
17 unsigned int mtu;
18 unsigned int k;
19 unsigned int i;
20 unsigned int unused[8]; /* Padding for expansion without
21 breaking stuff */
22};
23
24#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
25#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
26
Russ Gorbybcd5abe2011-06-16 14:20:12 -070027struct gsm_netconfig {
28 unsigned int adaption; /* Adaption to use in network mode */
29 unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */
30 unsigned short unused2;
31 char if_name[IFNAMSIZ]; /* interface name format string */
32 __u8 unused[28]; /* For future use */
33};
34
35#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
36#define GSMIOC_DISABLE_NET _IO('G', 3)
37
Alan Coxe1eaea42010-03-26 11:32:54 +000038
39#endif