112e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#ifndef _LINUX_GSMMUX_H 212e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#define _LINUX_GSMMUX_H 312e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 412e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#include <linux/if.h> 512e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#include <linux/ioctl.h> 612e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#include <linux/types.h> 712e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 812e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferrisstruct gsm_config 912e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris{ 1012e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int adaption; 1112e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int encapsulation; 1212e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int initiator; 1312e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int t1; 1412e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int t2; 1512e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int t3; 1612e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int n2; 1712e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int mru; 1812e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int mtu; 1912e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int k; 2012e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int i; 2112e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int unused[8]; /* Padding for expansion without 2212e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris breaking stuff */ 2312e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris}; 2412e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 2512e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) 2612e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) 2712e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 2812e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferrisstruct gsm_netconfig { 2912e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned int adaption; /* Adaption to use in network mode */ 3012e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */ 3112e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris unsigned short unused2; 3212e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris char if_name[IFNAMSIZ]; /* interface name format string */ 3312e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris __u8 unused[28]; /* For future use */ 3412e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris}; 3512e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 3612e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig) 3712e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#define GSMIOC_DISABLE_NET _IO('G', 3) 3812e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 3912e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris 4012e1f28cce28271eb109a5bae818a804f0c3bb27Christopher Ferris#endif 41