Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: isdn.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/* $Id: isdn.h,v 1.125.2.3 2004/02/10 01:07:14 keil Exp $
[1] Fix | Delete
*
[2] Fix | Delete
* Main header for the Linux ISDN subsystem (linklevel).
[3] Fix | Delete
*
[4] Fix | Delete
* Copyright 1994,95,96 by Fritz Elfert (fritz@isdn4linux.de)
[5] Fix | Delete
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
[6] Fix | Delete
* Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
[7] Fix | Delete
*
[8] Fix | Delete
* This software may be used and distributed according to the terms
[9] Fix | Delete
* of the GNU General Public License, incorporated herein by reference.
[10] Fix | Delete
*
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
#ifndef __ISDN_H__
[14] Fix | Delete
#define __ISDN_H__
[15] Fix | Delete
[16] Fix | Delete
#include <linux/ioctl.h>
[17] Fix | Delete
#include <linux/tty.h>
[18] Fix | Delete
[19] Fix | Delete
#define ISDN_MAX_DRIVERS 32
[20] Fix | Delete
#define ISDN_MAX_CHANNELS 64
[21] Fix | Delete
[22] Fix | Delete
/* New ioctl-codes */
[23] Fix | Delete
#define IIOCNETAIF _IO('I',1)
[24] Fix | Delete
#define IIOCNETDIF _IO('I',2)
[25] Fix | Delete
#define IIOCNETSCF _IO('I',3)
[26] Fix | Delete
#define IIOCNETGCF _IO('I',4)
[27] Fix | Delete
#define IIOCNETANM _IO('I',5)
[28] Fix | Delete
#define IIOCNETDNM _IO('I',6)
[29] Fix | Delete
#define IIOCNETGNM _IO('I',7)
[30] Fix | Delete
#define IIOCGETSET _IO('I',8) /* no longer supported */
[31] Fix | Delete
#define IIOCSETSET _IO('I',9) /* no longer supported */
[32] Fix | Delete
#define IIOCSETVER _IO('I',10)
[33] Fix | Delete
#define IIOCNETHUP _IO('I',11)
[34] Fix | Delete
#define IIOCSETGST _IO('I',12)
[35] Fix | Delete
#define IIOCSETBRJ _IO('I',13)
[36] Fix | Delete
#define IIOCSIGPRF _IO('I',14)
[37] Fix | Delete
#define IIOCGETPRF _IO('I',15)
[38] Fix | Delete
#define IIOCSETPRF _IO('I',16)
[39] Fix | Delete
#define IIOCGETMAP _IO('I',17)
[40] Fix | Delete
#define IIOCSETMAP _IO('I',18)
[41] Fix | Delete
#define IIOCNETASL _IO('I',19)
[42] Fix | Delete
#define IIOCNETDIL _IO('I',20)
[43] Fix | Delete
#define IIOCGETCPS _IO('I',21)
[44] Fix | Delete
#define IIOCGETDVR _IO('I',22)
[45] Fix | Delete
#define IIOCNETLCR _IO('I',23) /* dwabc ioctl for LCR from isdnlog */
[46] Fix | Delete
#define IIOCNETDWRSET _IO('I',24) /* dwabc ioctl to reset abc-values to default on a net-interface */
[47] Fix | Delete
[48] Fix | Delete
#define IIOCNETALN _IO('I',32)
[49] Fix | Delete
#define IIOCNETDLN _IO('I',33)
[50] Fix | Delete
[51] Fix | Delete
#define IIOCNETGPN _IO('I',34)
[52] Fix | Delete
[53] Fix | Delete
#define IIOCDBGVAR _IO('I',127)
[54] Fix | Delete
[55] Fix | Delete
#define IIOCDRVCTL _IO('I',128)
[56] Fix | Delete
[57] Fix | Delete
/* cisco hdlck device private ioctls */
[58] Fix | Delete
#define SIOCGKEEPPERIOD (SIOCDEVPRIVATE + 0)
[59] Fix | Delete
#define SIOCSKEEPPERIOD (SIOCDEVPRIVATE + 1)
[60] Fix | Delete
#define SIOCGDEBSERINT (SIOCDEVPRIVATE + 2)
[61] Fix | Delete
#define SIOCSDEBSERINT (SIOCDEVPRIVATE + 3)
[62] Fix | Delete
[63] Fix | Delete
/* Packet encapsulations for net-interfaces */
[64] Fix | Delete
#define ISDN_NET_ENCAP_ETHER 0
[65] Fix | Delete
#define ISDN_NET_ENCAP_RAWIP 1
[66] Fix | Delete
#define ISDN_NET_ENCAP_IPTYP 2
[67] Fix | Delete
#define ISDN_NET_ENCAP_CISCOHDLC 3 /* Without SLARP and keepalive */
[68] Fix | Delete
#define ISDN_NET_ENCAP_SYNCPPP 4
[69] Fix | Delete
#define ISDN_NET_ENCAP_UIHDLC 5
[70] Fix | Delete
#define ISDN_NET_ENCAP_CISCOHDLCK 6 /* With SLARP and keepalive */
[71] Fix | Delete
#define ISDN_NET_ENCAP_X25IFACE 7 /* Documentation/networking/x25-iface.txt */
[72] Fix | Delete
#define ISDN_NET_ENCAP_MAX_ENCAP ISDN_NET_ENCAP_X25IFACE
[73] Fix | Delete
[74] Fix | Delete
/* Facility which currently uses an ISDN-channel */
[75] Fix | Delete
#define ISDN_USAGE_NONE 0
[76] Fix | Delete
#define ISDN_USAGE_RAW 1
[77] Fix | Delete
#define ISDN_USAGE_MODEM 2
[78] Fix | Delete
#define ISDN_USAGE_NET 3
[79] Fix | Delete
#define ISDN_USAGE_VOICE 4
[80] Fix | Delete
#define ISDN_USAGE_FAX 5
[81] Fix | Delete
#define ISDN_USAGE_MASK 7 /* Mask to get plain usage */
[82] Fix | Delete
#define ISDN_USAGE_DISABLED 32 /* This bit is set, if channel is disabled */
[83] Fix | Delete
#define ISDN_USAGE_EXCLUSIVE 64 /* This bit is set, if channel is exclusive */
[84] Fix | Delete
#define ISDN_USAGE_OUTGOING 128 /* This bit is set, if channel is outgoing */
[85] Fix | Delete
[86] Fix | Delete
#define ISDN_MODEM_NUMREG 24 /* Number of Modem-Registers */
[87] Fix | Delete
#define ISDN_LMSNLEN 255 /* Length of tty's Listen-MSN string */
[88] Fix | Delete
#define ISDN_CMSGLEN 50 /* Length of CONNECT-Message to add for Modem */
[89] Fix | Delete
[90] Fix | Delete
#define ISDN_MSNLEN 32
[91] Fix | Delete
#define NET_DV 0x06 /* Data version for isdn_net_ioctl_cfg */
[92] Fix | Delete
#define TTY_DV 0x06 /* Data version for iprofd etc. */
[93] Fix | Delete
[94] Fix | Delete
#define INF_DV 0x01 /* Data version for /dev/isdninfo */
[95] Fix | Delete
[96] Fix | Delete
typedef struct {
[97] Fix | Delete
char drvid[25];
[98] Fix | Delete
unsigned long arg;
[99] Fix | Delete
} isdn_ioctl_struct;
[100] Fix | Delete
[101] Fix | Delete
typedef struct {
[102] Fix | Delete
char name[10];
[103] Fix | Delete
char phone[ISDN_MSNLEN];
[104] Fix | Delete
int outgoing;
[105] Fix | Delete
} isdn_net_ioctl_phone;
[106] Fix | Delete
[107] Fix | Delete
typedef struct {
[108] Fix | Delete
char name[10]; /* Name of interface */
[109] Fix | Delete
char master[10]; /* Name of Master for Bundling */
[110] Fix | Delete
char slave[10]; /* Name of Slave for Bundling */
[111] Fix | Delete
char eaz[256]; /* EAZ/MSN */
[112] Fix | Delete
char drvid[25]; /* DriverId for Bindings */
[113] Fix | Delete
int onhtime; /* Hangup-Timeout */
[114] Fix | Delete
int charge; /* Charge-Units */
[115] Fix | Delete
int l2_proto; /* Layer-2 protocol */
[116] Fix | Delete
int l3_proto; /* Layer-3 protocol */
[117] Fix | Delete
int p_encap; /* Encapsulation */
[118] Fix | Delete
int exclusive; /* Channel, if bound exclusive */
[119] Fix | Delete
int dialmax; /* Dial Retry-Counter */
[120] Fix | Delete
int slavedelay; /* Delay until slave starts up */
[121] Fix | Delete
int cbdelay; /* Delay before Callback */
[122] Fix | Delete
int chargehup; /* Flag: Charge-Hangup */
[123] Fix | Delete
int ihup; /* Flag: Hangup-Timeout on incoming line */
[124] Fix | Delete
int secure; /* Flag: Secure */
[125] Fix | Delete
int callback; /* Flag: Callback */
[126] Fix | Delete
int cbhup; /* Flag: Reject Call before Callback */
[127] Fix | Delete
int pppbind; /* ippp device for bindings */
[128] Fix | Delete
int chargeint; /* Use fixed charge interval length */
[129] Fix | Delete
int triggercps; /* BogoCPS needed for triggering slave */
[130] Fix | Delete
int dialtimeout; /* Dial-Timeout */
[131] Fix | Delete
int dialwait; /* Time to wait after failed dial */
[132] Fix | Delete
int dialmode; /* Flag: off / on / auto */
[133] Fix | Delete
} isdn_net_ioctl_cfg;
[134] Fix | Delete
[135] Fix | Delete
#define ISDN_NET_DIALMODE_MASK 0xC0 /* bits for status */
[136] Fix | Delete
#define ISDN_NET_DM_OFF 0x00 /* this interface is stopped */
[137] Fix | Delete
#define ISDN_NET_DM_MANUAL 0x40 /* this interface is on (manual) */
[138] Fix | Delete
#define ISDN_NET_DM_AUTO 0x80 /* this interface is autodial */
[139] Fix | Delete
#define ISDN_NET_DIALMODE(x) ((&(x))->flags & ISDN_NET_DIALMODE_MASK)
[140] Fix | Delete
[141] Fix | Delete
[142] Fix | Delete
#endif /* __ISDN_H__ */
[143] Fix | Delete
[144] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function