Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
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];     /* Padding for expansion without
0023                        breaking stuff */
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;  /* Adaption to use in network mode */
0031     unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */
0032     unsigned short unused2;
0033     char if_name[IFNAMSIZ]; /* interface name format string */
0034     __u8 unused[28];        /* For future use */
0035 };
0036 
0037 #define GSMIOC_ENABLE_NET      _IOW('G', 2, struct gsm_netconfig)
0038 #define GSMIOC_DISABLE_NET     _IO('G', 3)
0039 
0040 /* get the base tty number for a configured gsmmux tty */
0041 #define GSMIOC_GETFIRST     _IOR('G', 4, __u32)
0042 
0043 #endif