blob: 4908f3a8e1d6af9949125a85d72fdcd8dd4c8ca8 [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>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define ISDN_MAX_DRIVERS 32
25#define ISDN_MAX_CHANNELS 64
Tao Baod7db5942015-01-28 10:07:51 -080026#define IIOCNETAIF _IO('I', 1)
27#define IIOCNETDIF _IO('I', 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define IIOCNETSCF _IO('I', 3)
30#define IIOCNETGCF _IO('I', 4)
31#define IIOCNETANM _IO('I', 5)
32#define IIOCNETDNM _IO('I', 6)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034#define IIOCNETGNM _IO('I', 7)
35#define IIOCGETSET _IO('I', 8)
36#define IIOCSETSET _IO('I', 9)
37#define IIOCSETVER _IO('I', 10)
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039#define IIOCNETHUP _IO('I', 11)
40#define IIOCSETGST _IO('I', 12)
41#define IIOCSETBRJ _IO('I', 13)
42#define IIOCSIGPRF _IO('I', 14)
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044#define IIOCGETPRF _IO('I', 15)
45#define IIOCSETPRF _IO('I', 16)
46#define IIOCGETMAP _IO('I', 17)
47#define IIOCSETMAP _IO('I', 18)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049#define IIOCNETASL _IO('I', 19)
50#define IIOCNETDIL _IO('I', 20)
51#define IIOCGETCPS _IO('I', 21)
52#define IIOCGETDVR _IO('I', 22)
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054#define IIOCNETLCR _IO('I', 23)
55#define IIOCNETDWRSET _IO('I', 24)
56#define IIOCNETALN _IO('I', 32)
57#define IIOCNETDLN _IO('I', 33)
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059#define IIOCNETGPN _IO('I', 34)
60#define IIOCDBGVAR _IO('I', 127)
61#define IIOCDRVCTL _IO('I', 128)
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define SIOCGKEEPPERIOD (SIOCDEVPRIVATE + 0)
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define SIOCSKEEPPERIOD (SIOCDEVPRIVATE + 1)
65#define SIOCGDEBSERINT (SIOCDEVPRIVATE + 2)
66#define SIOCSDEBSERINT (SIOCDEVPRIVATE + 3)
67#define ISDN_NET_ENCAP_ETHER 0
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define ISDN_NET_ENCAP_RAWIP 1
70#define ISDN_NET_ENCAP_IPTYP 2
71#define ISDN_NET_ENCAP_CISCOHDLC 3
72#define ISDN_NET_ENCAP_SYNCPPP 4
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define ISDN_NET_ENCAP_UIHDLC 5
75#define ISDN_NET_ENCAP_CISCOHDLCK 6
76#define ISDN_NET_ENCAP_X25IFACE 7
77#define ISDN_NET_ENCAP_MAX_ENCAP ISDN_NET_ENCAP_X25IFACE
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define ISDN_USAGE_NONE 0
80#define ISDN_USAGE_RAW 1
81#define ISDN_USAGE_MODEM 2
82#define ISDN_USAGE_NET 3
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define ISDN_USAGE_VOICE 4
85#define ISDN_USAGE_FAX 5
86#define ISDN_USAGE_MASK 7
87#define ISDN_USAGE_DISABLED 32
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define ISDN_USAGE_EXCLUSIVE 64
90#define ISDN_USAGE_OUTGOING 128
91#define ISDN_MODEM_NUMREG 24
92#define ISDN_LMSNLEN 255
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define ISDN_CMSGLEN 50
95#define ISDN_MSNLEN 32
96#define NET_DV 0x06
97#define TTY_DV 0x06
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define INF_DV 0x01
100typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800101 char drvid[25];
102 unsigned long arg;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104} isdn_ioctl_struct;
105typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800106 char name[10];
107 char phone[ISDN_MSNLEN];
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 int outgoing;
Ben Cheng655a7c02013-10-16 16:09:24 -0700110} isdn_net_ioctl_phone;
111typedef struct {
Tao Baod7db5942015-01-28 10:07:51 -0800112 char name[10];
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 char master[10];
115 char slave[10];
116 char eaz[256];
117 char drvid[25];
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 int onhtime;
120 int charge;
121 int l2_proto;
122 int l3_proto;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 int p_encap;
125 int exclusive;
126 int dialmax;
127 int slavedelay;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 int cbdelay;
130 int chargehup;
131 int ihup;
132 int secure;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 int callback;
135 int cbhup;
136 int pppbind;
137 int chargeint;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 int triggercps;
140 int dialtimeout;
141 int dialwait;
142 int dialmode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144} isdn_net_ioctl_cfg;
145#define ISDN_NET_DIALMODE_MASK 0xC0
146#define ISDN_NET_DM_OFF 0x00
147#define ISDN_NET_DM_MANUAL 0x40
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149#define ISDN_NET_DM_AUTO 0x80
Tao Baod7db5942015-01-28 10:07:51 -0800150#define ISDN_NET_DIALMODE(x) ((& (x))->flags & ISDN_NET_DIALMODE_MASK)
Ben Cheng655a7c02013-10-16 16:09:24 -0700151#endif