blob: e6fc6b531b3fb4854442fcd9021e89c1ef1bfc18 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris05d08e92016-02-04 13:16:38 -08007#ifndef _LINUX_GSMMUX_H
8#define _LINUX_GSMMUX_H
Christopher Ferris67d1e5e2023-10-31 13:36:37 -07009#include <linux/const.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080010#include <linux/if.h>
11#include <linux/ioctl.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080012#include <linux/types.h>
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070013#define GSM_FL_RESTART _BITUL(0)
Christopher Ferris05d08e92016-02-04 13:16:38 -080014struct gsm_config {
15 unsigned int adaption;
16 unsigned int encapsulation;
Christopher Ferris05d08e92016-02-04 13:16:38 -080017 unsigned int initiator;
18 unsigned int t1;
19 unsigned int t2;
20 unsigned int t3;
Christopher Ferris05d08e92016-02-04 13:16:38 -080021 unsigned int n2;
22 unsigned int mru;
23 unsigned int mtu;
24 unsigned int k;
Christopher Ferris05d08e92016-02-04 13:16:38 -080025 unsigned int i;
26 unsigned int unused[8];
27};
28#define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
Christopher Ferris05d08e92016-02-04 13:16:38 -080029#define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
30struct gsm_netconfig {
31 unsigned int adaption;
32 unsigned short protocol;
Christopher Ferris05d08e92016-02-04 13:16:38 -080033 unsigned short unused2;
34 char if_name[IFNAMSIZ];
35 __u8 unused[28];
36};
Christopher Ferris05d08e92016-02-04 13:16:38 -080037#define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
38#define GSMIOC_DISABLE_NET _IO('G', 3)
Christopher Ferris9584fa42019-12-09 15:36:13 -080039#define GSMIOC_GETFIRST _IOR('G', 4, __u32)
Christopher Ferrisb7cef6d2023-05-09 19:04:15 +000040struct gsm_config_ext {
41 __u32 keep_alive;
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070042 __u32 wait_config;
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070043 __u32 flags;
44 __u32 reserved[5];
Christopher Ferrisb7cef6d2023-05-09 19:04:15 +000045};
46#define GSMIOC_GETCONF_EXT _IOR('G', 5, struct gsm_config_ext)
47#define GSMIOC_SETCONF_EXT _IOW('G', 6, struct gsm_config_ext)
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070048struct gsm_dlci_config {
49 __u32 channel;
50 __u32 adaption;
51 __u32 mtu;
52 __u32 priority;
53 __u32 i;
54 __u32 k;
Christopher Ferris67d1e5e2023-10-31 13:36:37 -070055 __u32 flags;
56 __u32 reserved[7];
Christopher Ferris37c3f3c2023-07-10 10:59:05 -070057};
58#define GSMIOC_GETCONF_DLCI _IOWR('G', 7, struct gsm_dlci_config)
59#define GSMIOC_SETCONF_DLCI _IOW('G', 8, struct gsm_dlci_config)
Christopher Ferris05d08e92016-02-04 13:16:38 -080060#endif