blob: 4e6920a289a9b03ef0c8ea00d4866ad7a0c1eaba [file] [log] [blame]
Christopher Ferris05d08e92016-02-04 13:16:38 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_GSMMUX_H
20#define _LINUX_GSMMUX_H
21#include <linux/if.h>
22#include <linux/ioctl.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080023#include <linux/types.h>
24struct gsm_config {
25 unsigned int adaption;
26 unsigned int encapsulation;
Christopher Ferris05d08e92016-02-04 13:16:38 -080027 unsigned int initiator;
28 unsigned int t1;
29 unsigned int t2;
30 unsigned int t3;
Christopher Ferris05d08e92016-02-04 13:16:38 -080031 unsigned int n2;
32 unsigned int mru;
33 unsigned int mtu;
34 unsigned int k;
Christopher Ferris05d08e92016-02-04 13:16:38 -080035 unsigned int i;
36 unsigned int unused[8];
37};
38#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
Christopher Ferris05d08e92016-02-04 13:16:38 -080039#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
40struct gsm_netconfig {
41 unsigned int adaption;
42 unsigned short protocol;
Christopher Ferris05d08e92016-02-04 13:16:38 -080043 unsigned short unused2;
44 char if_name[IFNAMSIZ];
45 __u8 unused[28];
46};
Christopher Ferris05d08e92016-02-04 13:16:38 -080047#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
48#define GSMIOC_DISABLE_NET _IO('G', 3)
Christopher Ferris9584fa42019-12-09 15:36:13 -080049#define GSMIOC_GETFIRST _IOR('G', 4, __u32)
Christopher Ferris05d08e92016-02-04 13:16:38 -080050#endif