blob: b1ec37e8eeb4b7ddf4089a7cce5cd99b735a9cee [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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__ISDN_H__
20#define _UAPI__ISDN_H__
21#include <linux/ioctl.h>
22#include <linux/tty.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define ISDN_MAX_DRIVERS 32
24#define ISDN_MAX_CHANNELS 64
Tao Baod7db5942015-01-28 10:07:51 -080025#define IIOCNETAIF _IO('I', 1)
26#define IIOCNETDIF _IO('I', 2)
Tao Baod7db5942015-01-28 10:07:51 -080027#define IIOCNETSCF _IO('I', 3)
28#define IIOCNETGCF _IO('I', 4)
29#define IIOCNETANM _IO('I', 5)
30#define IIOCNETDNM _IO('I', 6)
Tao Baod7db5942015-01-28 10:07:51 -080031#define IIOCNETGNM _IO('I', 7)
32#define IIOCGETSET _IO('I', 8)
33#define IIOCSETSET _IO('I', 9)
34#define IIOCSETVER _IO('I', 10)
Tao Baod7db5942015-01-28 10:07:51 -080035#define IIOCNETHUP _IO('I', 11)
36#define IIOCSETGST _IO('I', 12)
37#define IIOCSETBRJ _IO('I', 13)
38#define IIOCSIGPRF _IO('I', 14)
Tao Baod7db5942015-01-28 10:07:51 -080039#define IIOCGETPRF _IO('I', 15)
40#define IIOCSETPRF _IO('I', 16)
41#define IIOCGETMAP _IO('I', 17)
42#define IIOCSETMAP _IO('I', 18)
Tao Baod7db5942015-01-28 10:07:51 -080043#define IIOCNETASL _IO('I', 19)
44#define IIOCNETDIL _IO('I', 20)
45#define IIOCGETCPS _IO('I', 21)
46#define IIOCGETDVR _IO('I', 22)
Tao Baod7db5942015-01-28 10:07:51 -080047#define IIOCNETLCR _IO('I', 23)
48#define IIOCNETDWRSET _IO('I', 24)
49#define IIOCNETALN _IO('I', 32)
50#define IIOCNETDLN _IO('I', 33)
Tao Baod7db5942015-01-28 10:07:51 -080051#define IIOCNETGPN _IO('I', 34)
52#define IIOCDBGVAR _IO('I', 127)
53#define IIOCDRVCTL _IO('I', 128)
Ben Cheng655a7c02013-10-16 16:09:24 -070054#define SIOCGKEEPPERIOD (SIOCDEVPRIVATE + 0)
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define SIOCSKEEPPERIOD (SIOCDEVPRIVATE + 1)
56#define SIOCGDEBSERINT (SIOCDEVPRIVATE + 2)
57#define SIOCSDEBSERINT (SIOCDEVPRIVATE + 3)
58#define ISDN_NET_ENCAP_ETHER 0
Ben Cheng655a7c02013-10-16 16:09:24 -070059#define ISDN_NET_ENCAP_RAWIP 1
60#define ISDN_NET_ENCAP_IPTYP 2
61#define ISDN_NET_ENCAP_CISCOHDLC 3
62#define ISDN_NET_ENCAP_SYNCPPP 4
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define ISDN_NET_ENCAP_UIHDLC 5
64#define ISDN_NET_ENCAP_CISCOHDLCK 6
65#define ISDN_NET_ENCAP_X25IFACE 7
66#define ISDN_NET_ENCAP_MAX_ENCAP ISDN_NET_ENCAP_X25IFACE
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define ISDN_USAGE_NONE 0
68#define ISDN_USAGE_RAW 1
69#define ISDN_USAGE_MODEM 2
70#define ISDN_USAGE_NET 3
Ben Cheng655a7c02013-10-16 16:09:24 -070071#define ISDN_USAGE_VOICE 4
72#define ISDN_USAGE_FAX 5
73#define ISDN_USAGE_MASK 7
74#define ISDN_USAGE_DISABLED 32
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define ISDN_USAGE_EXCLUSIVE 64
76#define ISDN_USAGE_OUTGOING 128
77#define ISDN_MODEM_NUMREG 24
78#define ISDN_LMSNLEN 255
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define ISDN_CMSGLEN 50
80#define ISDN_MSNLEN 32
81#define NET_DV 0x06
82#define TTY_DV 0x06
Ben Cheng655a7c02013-10-16 16:09:24 -070083#define INF_DV 0x01
84typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -080085 char drvid[25];
86 unsigned long arg;
Ben Cheng655a7c02013-10-16 16:09:24 -070087} isdn_ioctl_struct;
88typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -080089 char name[10];
90 char phone[ISDN_MSNLEN];
Tao Baod7db5942015-01-28 10:07:51 -080091 int outgoing;
Ben Cheng655a7c02013-10-16 16:09:24 -070092} isdn_net_ioctl_phone;
93typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -080094 char name[10];
Tao Baod7db5942015-01-28 10:07:51 -080095 char master[10];
96 char slave[10];
97 char eaz[256];
98 char drvid[25];
Tao Baod7db5942015-01-28 10:07:51 -080099 int onhtime;
100 int charge;
101 int l2_proto;
102 int l3_proto;
Tao Baod7db5942015-01-28 10:07:51 -0800103 int p_encap;
104 int exclusive;
105 int dialmax;
106 int slavedelay;
Tao Baod7db5942015-01-28 10:07:51 -0800107 int cbdelay;
108 int chargehup;
109 int ihup;
110 int secure;
Tao Baod7db5942015-01-28 10:07:51 -0800111 int callback;
112 int cbhup;
113 int pppbind;
114 int chargeint;
Tao Baod7db5942015-01-28 10:07:51 -0800115 int triggercps;
116 int dialtimeout;
117 int dialwait;
118 int dialmode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700119} isdn_net_ioctl_cfg;
120#define ISDN_NET_DIALMODE_MASK 0xC0
121#define ISDN_NET_DM_OFF 0x00
122#define ISDN_NET_DM_MANUAL 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -0700123#define ISDN_NET_DM_AUTO 0x80
Tao Baod7db5942015-01-28 10:07:51 -0800124#define ISDN_NET_DIALMODE(x) ((& (x))->flags & ISDN_NET_DIALMODE_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -0700125#endif