Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 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 Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 7 | #ifndef _LINUX_GSMMUX_H |
| 8 | #define _LINUX_GSMMUX_H |
Christopher Ferris | 67d1e5e | 2023-10-31 13:36:37 -0700 | [diff] [blame] | 9 | #include <linux/const.h> |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 10 | #include <linux/if.h> |
| 11 | #include <linux/ioctl.h> |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 12 | #include <linux/types.h> |
Christopher Ferris | 67d1e5e | 2023-10-31 13:36:37 -0700 | [diff] [blame] | 13 | #define GSM_FL_RESTART _BITUL(0) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 14 | struct gsm_config { |
| 15 | unsigned int adaption; |
| 16 | unsigned int encapsulation; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 17 | unsigned int initiator; |
| 18 | unsigned int t1; |
| 19 | unsigned int t2; |
| 20 | unsigned int t3; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 21 | unsigned int n2; |
| 22 | unsigned int mru; |
| 23 | unsigned int mtu; |
| 24 | unsigned int k; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 25 | unsigned int i; |
| 26 | unsigned int unused[8]; |
| 27 | }; |
| 28 | #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 29 | #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) |
| 30 | struct gsm_netconfig { |
| 31 | unsigned int adaption; |
| 32 | unsigned short protocol; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 33 | unsigned short unused2; |
| 34 | char if_name[IFNAMSIZ]; |
| 35 | __u8 unused[28]; |
| 36 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 37 | #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig) |
| 38 | #define GSMIOC_DISABLE_NET _IO('G', 3) |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 39 | #define GSMIOC_GETFIRST _IOR('G', 4, __u32) |
Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame] | 40 | struct gsm_config_ext { |
| 41 | __u32 keep_alive; |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 42 | __u32 wait_config; |
Christopher Ferris | 67d1e5e | 2023-10-31 13:36:37 -0700 | [diff] [blame] | 43 | __u32 flags; |
| 44 | __u32 reserved[5]; |
Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame] | 45 | }; |
| 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 Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 48 | struct gsm_dlci_config { |
| 49 | __u32 channel; |
| 50 | __u32 adaption; |
| 51 | __u32 mtu; |
| 52 | __u32 priority; |
| 53 | __u32 i; |
| 54 | __u32 k; |
Christopher Ferris | 67d1e5e | 2023-10-31 13:36:37 -0700 | [diff] [blame] | 55 | __u32 flags; |
| 56 | __u32 reserved[7]; |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 57 | }; |
| 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 Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 60 | #endif |