Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [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 _UAPI_LINUX_ISDN_PPP_H |
| 20 | #define _UAPI_LINUX_ISDN_PPP_H |
| 21 | #define CALLTYPE_INCOMING 0x1 |
| 22 | #define CALLTYPE_OUTGOING 0x2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define CALLTYPE_CALLBACK 0x4 |
| 24 | #define IPPP_VERSION "2.2.0" |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | struct pppcallinfo { |
| 26 | int calltype; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | unsigned char local_num[64]; |
| 28 | unsigned char remote_num[64]; |
| 29 | int charge_units; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | #define PPPIOCGCALLINFO _IOWR('t', 128, struct pppcallinfo) |
| 32 | #define PPPIOCBUNDLE _IOW('t', 129, int) |
| 33 | #define PPPIOCGMPFLAGS _IOR('t', 130, int) |
| 34 | #define PPPIOCSMPFLAGS _IOW('t', 131, int) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | #define PPPIOCSMPMTU _IOW('t', 132, int) |
| 36 | #define PPPIOCSMPMRU _IOW('t', 133, int) |
| 37 | #define PPPIOCGCOMPRESSORS _IOR('t', 134, unsigned long[8]) |
| 38 | #define PPPIOCSCOMPRESSOR _IOW('t', 135, int) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | #define PPPIOCGIFNAME _IOR('t', 136, char[IFNAMSIZ]) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | #define SC_MP_PROT 0x00000200 |
| 41 | #define SC_REJ_MP_PROT 0x00000400 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | #define SC_OUT_SHORT_SEQ 0x00000800 |
| 43 | #define SC_IN_SHORT_SEQ 0x00004000 |
| 44 | #define SC_DECOMP_ON 0x01 |
| 45 | #define SC_COMP_ON 0x02 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | #define SC_DECOMP_DISCARD 0x04 |
| 47 | #define SC_COMP_DISCARD 0x08 |
| 48 | #define SC_LINK_DECOMP_ON 0x10 |
| 49 | #define SC_LINK_COMP_ON 0x20 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 50 | #define SC_LINK_DECOMP_DISCARD 0x40 |
| 51 | #define SC_LINK_COMP_DISCARD 0x80 |
| 52 | #define ISDN_PPP_COMP_MAX_OPTIONS 16 |
| 53 | #define IPPP_COMP_FLAG_XMIT 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | #define IPPP_COMP_FLAG_LINK 0x2 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | struct isdn_ppp_comp_data { |
| 56 | int num; |
| 57 | unsigned char options[ISDN_PPP_COMP_MAX_OPTIONS]; |
| 58 | int optlen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | int flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | }; |
| 61 | #endif |