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__ISDN_H__ 20#define _UAPI__ISDN_H__ 21#include <linux/ioctl.h> 22#include <linux/tty.h> 23#define ISDN_MAX_DRIVERS 32 24#define ISDN_MAX_CHANNELS 64 25#define IIOCNETAIF _IO('I', 1) 26#define IIOCNETDIF _IO('I', 2) 27#define IIOCNETSCF _IO('I', 3) 28#define IIOCNETGCF _IO('I', 4) 29#define IIOCNETANM _IO('I', 5) 30#define IIOCNETDNM _IO('I', 6) 31#define IIOCNETGNM _IO('I', 7) 32#define IIOCGETSET _IO('I', 8) 33#define IIOCSETSET _IO('I', 9) 34#define IIOCSETVER _IO('I', 10) 35#define IIOCNETHUP _IO('I', 11) 36#define IIOCSETGST _IO('I', 12) 37#define IIOCSETBRJ _IO('I', 13) 38#define IIOCSIGPRF _IO('I', 14) 39#define IIOCGETPRF _IO('I', 15) 40#define IIOCSETPRF _IO('I', 16) 41#define IIOCGETMAP _IO('I', 17) 42#define IIOCSETMAP _IO('I', 18) 43#define IIOCNETASL _IO('I', 19) 44#define IIOCNETDIL _IO('I', 20) 45#define IIOCGETCPS _IO('I', 21) 46#define IIOCGETDVR _IO('I', 22) 47#define IIOCNETLCR _IO('I', 23) 48#define IIOCNETDWRSET _IO('I', 24) 49#define IIOCNETALN _IO('I', 32) 50#define IIOCNETDLN _IO('I', 33) 51#define IIOCNETGPN _IO('I', 34) 52#define IIOCDBGVAR _IO('I', 127) 53#define IIOCDRVCTL _IO('I', 128) 54#define SIOCGKEEPPERIOD (SIOCDEVPRIVATE + 0) 55#define SIOCSKEEPPERIOD (SIOCDEVPRIVATE + 1) 56#define SIOCGDEBSERINT (SIOCDEVPRIVATE + 2) 57#define SIOCSDEBSERINT (SIOCDEVPRIVATE + 3) 58#define ISDN_NET_ENCAP_ETHER 0 59#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 63#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 67#define ISDN_USAGE_NONE 0 68#define ISDN_USAGE_RAW 1 69#define ISDN_USAGE_MODEM 2 70#define ISDN_USAGE_NET 3 71#define ISDN_USAGE_VOICE 4 72#define ISDN_USAGE_FAX 5 73#define ISDN_USAGE_MASK 7 74#define ISDN_USAGE_DISABLED 32 75#define ISDN_USAGE_EXCLUSIVE 64 76#define ISDN_USAGE_OUTGOING 128 77#define ISDN_MODEM_NUMREG 24 78#define ISDN_LMSNLEN 255 79#define ISDN_CMSGLEN 50 80#define ISDN_MSNLEN 32 81#define NET_DV 0x06 82#define TTY_DV 0x06 83#define INF_DV 0x01 84typedef struct { 85 char drvid[25]; 86 unsigned long arg; 87} isdn_ioctl_struct; 88typedef struct { 89 char name[10]; 90 char phone[ISDN_MSNLEN]; 91 int outgoing; 92} isdn_net_ioctl_phone; 93typedef struct { 94 char name[10]; 95 char master[10]; 96 char slave[10]; 97 char eaz[256]; 98 char drvid[25]; 99 int onhtime; 100 int charge; 101 int l2_proto; 102 int l3_proto; 103 int p_encap; 104 int exclusive; 105 int dialmax; 106 int slavedelay; 107 int cbdelay; 108 int chargehup; 109 int ihup; 110 int secure; 111 int callback; 112 int cbhup; 113 int pppbind; 114 int chargeint; 115 int triggercps; 116 int dialtimeout; 117 int dialwait; 118 int dialmode; 119} 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 123#define ISDN_NET_DM_AUTO 0x80 124#define ISDN_NET_DIALMODE(x) ((& (x))->flags & ISDN_NET_DIALMODE_MASK) 125#endif 126