Home | History | Annotate | Download | only in linux
      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 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define ISDN_MAX_DRIVERS 32
     25 #define ISDN_MAX_CHANNELS 64
     26 #define IIOCNETAIF _IO('I',1)
     27 #define IIOCNETDIF _IO('I',2)
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define IIOCNETSCF _IO('I',3)
     30 #define IIOCNETGCF _IO('I',4)
     31 #define IIOCNETANM _IO('I',5)
     32 #define IIOCNETDNM _IO('I',6)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define IIOCNETGNM _IO('I',7)
     35 #define IIOCGETSET _IO('I',8)
     36 #define IIOCSETSET _IO('I',9)
     37 #define IIOCSETVER _IO('I',10)
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define IIOCNETHUP _IO('I',11)
     40 #define IIOCSETGST _IO('I',12)
     41 #define IIOCSETBRJ _IO('I',13)
     42 #define IIOCSIGPRF _IO('I',14)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define IIOCGETPRF _IO('I',15)
     45 #define IIOCSETPRF _IO('I',16)
     46 #define IIOCGETMAP _IO('I',17)
     47 #define IIOCSETMAP _IO('I',18)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define IIOCNETASL _IO('I',19)
     50 #define IIOCNETDIL _IO('I',20)
     51 #define IIOCGETCPS _IO('I',21)
     52 #define IIOCGETDVR _IO('I',22)
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define IIOCNETLCR _IO('I',23)
     55 #define IIOCNETDWRSET _IO('I',24)
     56 #define IIOCNETALN _IO('I',32)
     57 #define IIOCNETDLN _IO('I',33)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define IIOCNETGPN _IO('I',34)
     60 #define IIOCDBGVAR _IO('I',127)
     61 #define IIOCDRVCTL _IO('I',128)
     62 #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
    100 typedef struct {
    101  char drvid[25];
    102  unsigned long arg;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 } isdn_ioctl_struct;
    105 typedef struct {
    106  char name[10];
    107  char phone[ISDN_MSNLEN];
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109  int outgoing;
    110 } isdn_net_ioctl_phone;
    111 typedef struct {
    112  char name[10];
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  char master[10];
    115  char slave[10];
    116  char eaz[256];
    117  char drvid[25];
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119  int onhtime;
    120  int charge;
    121  int l2_proto;
    122  int l3_proto;
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124  int p_encap;
    125  int exclusive;
    126  int dialmax;
    127  int slavedelay;
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129  int cbdelay;
    130  int chargehup;
    131  int ihup;
    132  int secure;
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134  int callback;
    135  int cbhup;
    136  int pppbind;
    137  int chargeint;
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139  int triggercps;
    140  int dialtimeout;
    141  int dialwait;
    142  int dialmode;
    143 /* 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
    150 #define ISDN_NET_DIALMODE(x) ((&(x))->flags & ISDN_NET_DIALMODE_MASK)
    151 #endif
    152