105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris/**************************************************************************** 205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris **************************************************************************** 305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** This header was automatically generated from a Linux kernel header 505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** of the same name, to make information necessary for userspace to 605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** call into the kernel available to libc. It contains only constants, 705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** structures, and macros generated from the original header, and thus, 805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** contains no copyrightable information. 905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** To edit the content of this header, modify the corresponding 1105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** source file (e.g. under external/kernel-headers/original/) then 1205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** run bionic/libc/kernel/tools/update_all.py 1305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** Any manual change here will be lost the next time this script will 1505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** be run. You've been warned! 1605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris *** 1705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris **************************************************************************** 1805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris ****************************************************************************/ 1905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#ifndef _LINUX_GSMMUX_H 2005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define _LINUX_GSMMUX_H 2105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#include <linux/if.h> 2205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#include <linux/ioctl.h> 2305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#include <linux/types.h> 2405d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct gsm_config { 2505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int adaption; 2605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int encapsulation; 2705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int initiator; 2805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int t1; 2905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int t2; 3005d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int t3; 3105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int n2; 3205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int mru; 3305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int mtu; 3405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int k; 3505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int i; 3605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int unused[8]; 3705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 3805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) 3905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) 4005d08e9716b5974d6ed08973f44930804890b902Christopher Ferrisstruct gsm_netconfig { 4105d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned int adaption; 4205d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned short protocol; 4305d08e9716b5974d6ed08973f44930804890b902Christopher Ferris unsigned short unused2; 4405d08e9716b5974d6ed08973f44930804890b902Christopher Ferris char if_name[IFNAMSIZ]; 4505d08e9716b5974d6ed08973f44930804890b902Christopher Ferris __u8 unused[28]; 4605d08e9716b5974d6ed08973f44930804890b902Christopher Ferris}; 4705d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig) 4805d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#define GSMIOC_DISABLE_NET _IO('G', 3) 4905d08e9716b5974d6ed08973f44930804890b902Christopher Ferris#endif 50