blob: d9392b62060e6e25dde5cd3f8da126a1a0c0bb0a [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
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070021#include <linux/const.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080022#include <linux/if.h>
23#include <linux/ioctl.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080024#include <linux/types.h>
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070025#define GSM_FL_RESTART _BITUL(0)
Christopher Ferris05d08e92016-02-04 13:16:38 -080026struct gsm_config {
27 unsigned int adaption;
28 unsigned int encapsulation;
Christopher Ferris05d08e92016-02-04 13:16:38 -080029 unsigned int initiator;
30 unsigned int t1;
31 unsigned int t2;
32 unsigned int t3;
Christopher Ferris05d08e92016-02-04 13:16:38 -080033 unsigned int n2;
34 unsigned int mru;
35 unsigned int mtu;
36 unsigned int k;
Christopher Ferris05d08e92016-02-04 13:16:38 -080037 unsigned int i;
38 unsigned int unused[8];
39};
40#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
Christopher Ferris05d08e92016-02-04 13:16:38 -080041#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
42struct gsm_netconfig {
43 unsigned int adaption;
44 unsigned short protocol;
Christopher Ferris05d08e92016-02-04 13:16:38 -080045 unsigned short unused2;
46 char if_name[IFNAMSIZ];
47 __u8 unused[28];
48};
Christopher Ferris05d08e92016-02-04 13:16:38 -080049#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
50#define GSMIOC_DISABLE_NET _IO('G', 3)
Christopher Ferris9584fa42019-12-09 15:36:13 -080051#define GSMIOC_GETFIRST _IOR('G', 4, __u32)
Christopher Ferrisb7cef6d2023-05-09 19:04:15 +000052struct gsm_config_ext {
53 __u32 keep_alive;
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070054 __u32 wait_config;
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070055 __u32 flags;
56 __u32 reserved[5];
Christopher Ferrisb7cef6d2023-05-09 19:04:15 +000057};
58#define GSMIOC_GETCONF_EXT _IOR('G', 5, struct gsm_config_ext)
59#define GSMIOC_SETCONF_EXT _IOW('G', 6, struct gsm_config_ext)
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070060struct gsm_dlci_config {
61 __u32 channel;
62 __u32 adaption;
63 __u32 mtu;
64 __u32 priority;
65 __u32 i;
66 __u32 k;
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070067 __u32 flags;
68 __u32 reserved[7];
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070069};
70#define GSMIOC_GETCONF_DLCI _IOWR('G', 7, struct gsm_dlci_config)
71#define GSMIOC_SETCONF_DLCI _IOW('G', 8, struct gsm_dlci_config)
Christopher Ferris05d08e92016-02-04 13:16:38 -080072#endif