blob: 101d3c469acb37161c2fe270fffcf9195d564cac [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Alan Coxe1eaea42010-03-26 11:32:54 +00002#ifndef _LINUX_GSMMUX_H
3#define _LINUX_GSMMUX_H
4
Jiri Slaby1c4b1d72015-05-27 13:57:46 +02005#include <linux/if.h>
6#include <linux/ioctl.h>
Jiri Slaby45c6df42015-06-23 19:09:59 +02007#include <linux/types.h>
Jiri Slaby1c4b1d72015-05-27 13:57:46 +02008
Alan Coxe1eaea42010-03-26 11:32:54 +00009struct 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]; /* Padding for expansion without
23 breaking stuff */
24};
25
26#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
27#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
28
Russ Gorbybcd5abe2011-06-16 14:20:12 -070029struct gsm_netconfig {
30 unsigned int adaption; /* Adaption to use in network mode */
31 unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */
32 unsigned short unused2;
33 char if_name[IFNAMSIZ]; /* interface name format string */
34 __u8 unused[28]; /* For future use */
35};
36
37#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
38#define GSMIOC_DISABLE_NET _IO('G', 3)
39
Alan Coxe1eaea42010-03-26 11:32:54 +000040
41#endif