Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 1 | /**************************************************************************** |
| 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 Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 23 | #include <linux/types.h> |
| 24 | struct gsm_config { |
| 25 | unsigned int adaption; |
| 26 | unsigned int encapsulation; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 27 | unsigned int initiator; |
| 28 | unsigned int t1; |
| 29 | unsigned int t2; |
| 30 | unsigned int t3; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 31 | unsigned int n2; |
| 32 | unsigned int mru; |
| 33 | unsigned int mtu; |
| 34 | unsigned int k; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 35 | unsigned int i; |
| 36 | unsigned int unused[8]; |
| 37 | }; |
| 38 | #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 39 | #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config) |
| 40 | struct gsm_netconfig { |
| 41 | unsigned int adaption; |
| 42 | unsigned short protocol; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 43 | unsigned short unused2; |
| 44 | char if_name[IFNAMSIZ]; |
| 45 | __u8 unused[28]; |
| 46 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 47 | #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig) |
| 48 | #define GSMIOC_DISABLE_NET _IO('G', 3) |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 49 | #define GSMIOC_GETFIRST _IOR('G', 4, __u32) |
Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame] | 50 | struct gsm_config_ext { |
| 51 | __u32 keep_alive; |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame^] | 52 | __u32 wait_config; |
| 53 | __u32 reserved[6]; |
Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame] | 54 | }; |
| 55 | #define GSMIOC_GETCONF_EXT _IOR('G', 5, struct gsm_config_ext) |
| 56 | #define GSMIOC_SETCONF_EXT _IOW('G', 6, struct gsm_config_ext) |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame^] | 57 | struct gsm_dlci_config { |
| 58 | __u32 channel; |
| 59 | __u32 adaption; |
| 60 | __u32 mtu; |
| 61 | __u32 priority; |
| 62 | __u32 i; |
| 63 | __u32 k; |
| 64 | __u32 reserved[8]; |
| 65 | }; |
| 66 | #define GSMIOC_GETCONF_DLCI _IOWR('G', 7, struct gsm_dlci_config) |
| 67 | #define GSMIOC_SETCONF_DLCI _IOW('G', 8, struct gsm_dlci_config) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 68 | #endif |