• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI__ISDN_H__
7 #define _UAPI__ISDN_H__
8 #include <linux/ioctl.h>
9 #include <linux/tty.h>
10 #define ISDN_MAX_DRIVERS    32
11 #define ISDN_MAX_CHANNELS   64
12 #define IIOCNETAIF  _IO('I',1)
13 #define IIOCNETDIF  _IO('I',2)
14 #define IIOCNETSCF  _IO('I',3)
15 #define IIOCNETGCF  _IO('I',4)
16 #define IIOCNETANM  _IO('I',5)
17 #define IIOCNETDNM  _IO('I',6)
18 #define IIOCNETGNM  _IO('I',7)
19 #define IIOCGETSET  _IO('I',8)
20 #define IIOCSETSET  _IO('I',9)
21 #define IIOCSETVER  _IO('I',10)
22 #define IIOCNETHUP  _IO('I',11)
23 #define IIOCSETGST  _IO('I',12)
24 #define IIOCSETBRJ  _IO('I',13)
25 #define IIOCSIGPRF  _IO('I',14)
26 #define IIOCGETPRF  _IO('I',15)
27 #define IIOCSETPRF  _IO('I',16)
28 #define IIOCGETMAP  _IO('I',17)
29 #define IIOCSETMAP  _IO('I',18)
30 #define IIOCNETASL  _IO('I',19)
31 #define IIOCNETDIL  _IO('I',20)
32 #define IIOCGETCPS  _IO('I',21)
33 #define IIOCGETDVR  _IO('I',22)
34 #define IIOCNETLCR  _IO('I',23)
35 #define IIOCNETDWRSET  _IO('I',24)
36 #define IIOCNETALN  _IO('I',32)
37 #define IIOCNETDLN  _IO('I',33)
38 #define IIOCNETGPN  _IO('I',34)
39 #define IIOCDBGVAR  _IO('I',127)
40 #define IIOCDRVCTL  _IO('I',128)
41 #define SIOCGKEEPPERIOD	(SIOCDEVPRIVATE + 0)
42 #define SIOCSKEEPPERIOD	(SIOCDEVPRIVATE + 1)
43 #define SIOCGDEBSERINT	(SIOCDEVPRIVATE + 2)
44 #define SIOCSDEBSERINT	(SIOCDEVPRIVATE + 3)
45 #define ISDN_NET_ENCAP_ETHER      0
46 #define ISDN_NET_ENCAP_RAWIP      1
47 #define ISDN_NET_ENCAP_IPTYP      2
48 #define ISDN_NET_ENCAP_CISCOHDLC  3
49 #define ISDN_NET_ENCAP_SYNCPPP    4
50 #define ISDN_NET_ENCAP_UIHDLC     5
51 #define ISDN_NET_ENCAP_CISCOHDLCK 6
52 #define ISDN_NET_ENCAP_X25IFACE   7
53 #define ISDN_NET_ENCAP_MAX_ENCAP  ISDN_NET_ENCAP_X25IFACE
54 #define ISDN_USAGE_NONE       0
55 #define ISDN_USAGE_RAW        1
56 #define ISDN_USAGE_MODEM      2
57 #define ISDN_USAGE_NET        3
58 #define ISDN_USAGE_VOICE      4
59 #define ISDN_USAGE_FAX        5
60 #define ISDN_USAGE_MASK       7
61 #define ISDN_USAGE_DISABLED  32
62 #define ISDN_USAGE_EXCLUSIVE 64
63 #define ISDN_USAGE_OUTGOING 128
64 #define ISDN_MODEM_NUMREG    24
65 #define ISDN_LMSNLEN         255
66 #define ISDN_CMSGLEN	     50
67 #define ISDN_MSNLEN          32
68 #define NET_DV 0x06
69 #define TTY_DV 0x06
70 #define INF_DV 0x01
71 typedef struct {
72   char drvid[25];
73   unsigned long arg;
74 } isdn_ioctl_struct;
75 typedef struct {
76   char name[10];
77   char phone[ISDN_MSNLEN];
78   int  outgoing;
79 } isdn_net_ioctl_phone;
80 typedef struct {
81   char name[10];
82   char master[10];
83   char slave[10];
84   char eaz[256];
85   char drvid[25];
86   int  onhtime;
87   int  charge;
88   int  l2_proto;
89   int  l3_proto;
90   int  p_encap;
91   int  exclusive;
92   int  dialmax;
93   int  slavedelay;
94   int  cbdelay;
95   int  chargehup;
96   int  ihup;
97   int  secure;
98   int  callback;
99   int  cbhup;
100   int  pppbind;
101   int  chargeint;
102   int  triggercps;
103   int  dialtimeout;
104   int  dialwait;
105   int  dialmode;
106 } isdn_net_ioctl_cfg;
107 #define ISDN_NET_DIALMODE_MASK  0xC0
108 #define ISDN_NET_DM_OFF	        0x00
109 #define ISDN_NET_DM_MANUAL	0x40
110 #define ISDN_NET_DM_AUTO	0x80
111 #define ISDN_NET_DIALMODE(x) ((&(x))->flags & ISDN_NET_DIALMODE_MASK)
112 #endif
113