Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
isdnif.h File Reference
#include <linux/skbuff.h>
#include <uapi/linux/isdnif.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  isdn_cmd_stat
 
struct  setup_parm
 
struct  aux_s
 
struct  capi_msg
 
struct  isdn_ctrl
 
struct  isdn_if
 

Macros

#define DSS1_CMD_INVOKE   ((0x00 << 8) | ISDN_PTYPE_EURO) /* invoke a supplementary service */
 
#define DSS1_CMD_INVOKE_ABORT   ((0x01 << 8) | ISDN_PTYPE_EURO) /* abort a invoke cmd */
 
#define DSS1_STAT_INVOKE_RES   ((0x80 << 8) | ISDN_PTYPE_EURO) /* Result for invocation */
 
#define DSS1_STAT_INVOKE_ERR   ((0x81 << 8) | ISDN_PTYPE_EURO) /* Error Return for invocation */
 
#define DSS1_STAT_INVOKE_BRD   ((0x82 << 8) | ISDN_PTYPE_EURO) /* Deliver invoke broadcast info */
 
#define NI1_CMD_INVOKE   ((0x00 << 8) | ISDN_PTYPE_NI1) /* invoke a supplementary service */
 
#define NI1_CMD_INVOKE_ABORT   ((0x01 << 8) | ISDN_PTYPE_NI1) /* abort a invoke cmd */
 
#define NI1_STAT_INVOKE_RES   ((0x80 << 8) | ISDN_PTYPE_NI1) /* Result for invocation */
 
#define NI1_STAT_INVOKE_ERR   ((0x81 << 8) | ISDN_PTYPE_NI1) /* Error Return for invocation */
 
#define NI1_STAT_INVOKE_BRD   ((0x82 << 8) | ISDN_PTYPE_NI1) /* Deliver invoke broadcast info */
 
#define ISDN_CMD_IOCTL   0 /* Perform ioctl */
 
#define ISDN_CMD_DIAL   1 /* Dial out */
 
#define ISDN_CMD_ACCEPTD   2 /* Accept an incoming call on D-Chan. */
 
#define ISDN_CMD_ACCEPTB   3 /* Request B-Channel connect. */
 
#define ISDN_CMD_HANGUP   4 /* Hangup */
 
#define ISDN_CMD_CLREAZ   5 /* Clear EAZ(s) of channel */
 
#define ISDN_CMD_SETEAZ   6 /* Set EAZ(s) of channel */
 
#define ISDN_CMD_GETEAZ   7 /* Get EAZ(s) of channel */
 
#define ISDN_CMD_SETSIL   8 /* Set Service-Indicator-List of channel */
 
#define ISDN_CMD_GETSIL   9 /* Get Service-Indicator-List of channel */
 
#define ISDN_CMD_SETL2   10 /* Set B-Chan. Layer2-Parameter */
 
#define ISDN_CMD_GETL2   11 /* Get B-Chan. Layer2-Parameter */
 
#define ISDN_CMD_SETL3   12 /* Set B-Chan. Layer3-Parameter */
 
#define ISDN_CMD_GETL3   13 /* Get B-Chan. Layer3-Parameter */
 
#define ISDN_CMD_SUSPEND   16 /* Suspend connection */
 
#define ISDN_CMD_RESUME   17 /* Resume connection */
 
#define ISDN_CMD_PROCEED   18 /* Proceed with call establishment */
 
#define ISDN_CMD_ALERT   19 /* Alert after Proceeding */
 
#define ISDN_CMD_REDIR   20 /* Redir a incoming call */
 
#define ISDN_CMD_PROT_IO   21 /* Protocol specific commands */
 
#define CAPI_PUT_MESSAGE   22 /* CAPI message send down or up */
 
#define ISDN_CMD_FAXCMD   23 /* FAX commands to HL-driver */
 
#define ISDN_CMD_AUDIO   24 /* DSP, DTMF, ... settings */
 
#define ISDN_STAT_STAVAIL   256 /* Raw status-data available */
 
#define ISDN_STAT_ICALL   257 /* Incoming call detected */
 
#define ISDN_STAT_RUN   258 /* Signal protocol-code is running */
 
#define ISDN_STAT_STOP   259 /* Signal halt of protocol-code */
 
#define ISDN_STAT_DCONN   260 /* Signal D-Channel connect */
 
#define ISDN_STAT_BCONN   261 /* Signal B-Channel connect */
 
#define ISDN_STAT_DHUP   262 /* Signal D-Channel disconnect */
 
#define ISDN_STAT_BHUP   263 /* Signal B-Channel disconnect */
 
#define ISDN_STAT_CINF   264 /* Charge-Info */
 
#define ISDN_STAT_LOAD   265 /* Signal new lowlevel-driver is loaded */
 
#define ISDN_STAT_UNLOAD   266 /* Signal unload of lowlevel-driver */
 
#define ISDN_STAT_BSENT   267 /* Signal packet sent */
 
#define ISDN_STAT_NODCH   268 /* Signal no D-Channel */
 
#define ISDN_STAT_ADDCH   269 /* Add more Channels */
 
#define ISDN_STAT_CAUSE   270 /* Cause-Message */
 
#define ISDN_STAT_ICALLW   271 /* Incoming call without B-chan waiting */
 
#define ISDN_STAT_REDIR   272 /* Redir result */
 
#define ISDN_STAT_PROT   273 /* protocol IO specific callback */
 
#define ISDN_STAT_DISPLAY   274 /* deliver a received display message */
 
#define ISDN_STAT_L1ERR   275 /* Signal Layer-1 Error */
 
#define ISDN_STAT_FAXIND   276 /* FAX indications from HL-driver */
 
#define ISDN_STAT_AUDIO   277 /* DTMF, DSP indications */
 
#define ISDN_STAT_DISCH   278 /* Disable/Enable channel usage */
 
#define ISDN_AUDIO_SETDD   0 /* Set DTMF detection */
 
#define ISDN_AUDIO_DTMF   1 /* Rx/Tx DTMF */
 
#define ISDN_STAT_L1ERR_SEND   1
 
#define ISDN_STAT_L1ERR_RECV   2
 
#define ISDN_FEATURE_L2_X75I   (0x0001 << ISDN_PROTO_L2_X75I)
 
#define ISDN_FEATURE_L2_X75UI   (0x0001 << ISDN_PROTO_L2_X75UI)
 
#define ISDN_FEATURE_L2_X75BUI   (0x0001 << ISDN_PROTO_L2_X75BUI)
 
#define ISDN_FEATURE_L2_HDLC   (0x0001 << ISDN_PROTO_L2_HDLC)
 
#define ISDN_FEATURE_L2_TRANS   (0x0001 << ISDN_PROTO_L2_TRANS)
 
#define ISDN_FEATURE_L2_X25DTE   (0x0001 << ISDN_PROTO_L2_X25DTE)
 
#define ISDN_FEATURE_L2_X25DCE   (0x0001 << ISDN_PROTO_L2_X25DCE)
 
#define ISDN_FEATURE_L2_V11096   (0x0001 << ISDN_PROTO_L2_V11096)
 
#define ISDN_FEATURE_L2_V11019   (0x0001 << ISDN_PROTO_L2_V11019)
 
#define ISDN_FEATURE_L2_V11038   (0x0001 << ISDN_PROTO_L2_V11038)
 
#define ISDN_FEATURE_L2_MODEM   (0x0001 << ISDN_PROTO_L2_MODEM)
 
#define ISDN_FEATURE_L2_FAX   (0x0001 << ISDN_PROTO_L2_FAX)
 
#define ISDN_FEATURE_L2_HDLC_56K   (0x0001 << ISDN_PROTO_L2_HDLC_56K)
 
#define ISDN_FEATURE_L2_MASK   (0x0FFFF) /* Max. 16 protocols */
 
#define ISDN_FEATURE_L2_SHIFT   (0)
 
#define ISDN_FEATURE_L3_TRANS   (0x10000 << ISDN_PROTO_L3_TRANS)
 
#define ISDN_FEATURE_L3_TRANSDSP   (0x10000 << ISDN_PROTO_L3_TRANSDSP)
 
#define ISDN_FEATURE_L3_FCLASS2   (0x10000 << ISDN_PROTO_L3_FCLASS2)
 
#define ISDN_FEATURE_L3_FCLASS1   (0x10000 << ISDN_PROTO_L3_FCLASS1)
 
#define ISDN_FEATURE_L3_MASK   (0x0FF0000) /* Max. 8 Protocols */
 
#define ISDN_FEATURE_L3_SHIFT   (16)
 
#define ISDN_FEATURE_P_UNKNOWN   (0x1000000 << ISDN_PTYPE_UNKNOWN)
 
#define ISDN_FEATURE_P_1TR6   (0x1000000 << ISDN_PTYPE_1TR6)
 
#define ISDN_FEATURE_P_EURO   (0x1000000 << ISDN_PTYPE_EURO)
 
#define ISDN_FEATURE_P_NI1   (0x1000000 << ISDN_PTYPE_NI1)
 
#define ISDN_FEATURE_P_MASK   (0x0FF000000) /* Max. 8 Protocols */
 
#define ISDN_FEATURE_P_SHIFT   (24)
 
#define ISDN_FAX_CLASS1_FAE   0
 
#define ISDN_FAX_CLASS1_FTS   1
 
#define ISDN_FAX_CLASS1_FRS   2
 
#define ISDN_FAX_CLASS1_FTM   3
 
#define ISDN_FAX_CLASS1_FRM   4
 
#define ISDN_FAX_CLASS1_FTH   5
 
#define ISDN_FAX_CLASS1_FRH   6
 
#define ISDN_FAX_CLASS1_CTRL   7
 
#define ISDN_FAX_CLASS1_OK   0
 
#define ISDN_FAX_CLASS1_CONNECT   1
 
#define ISDN_FAX_CLASS1_NOCARR   2
 
#define ISDN_FAX_CLASS1_ERROR   3
 
#define ISDN_FAX_CLASS1_FCERROR   4
 
#define ISDN_FAX_CLASS1_QUERY   5
 
#define AT_COMMAND   0
 
#define AT_EQ_VALUE   1
 
#define AT_QUERY   2
 
#define AT_EQ_QUERY   3
 
#define MAX_CAPI_PARA_LEN   50
 
#define dss1_io   isdn_io
 
#define ni1_io   isdn_io
 

Typedefs

typedef struct setup_parm setup_parm
 

Functions

int register_isdn (isdn_if *)
 

Macro Definition Documentation

#define AT_COMMAND   0

Definition at line 337 of file isdnif.h.

#define AT_EQ_QUERY   3

Definition at line 340 of file isdnif.h.

#define AT_EQ_VALUE   1

Definition at line 338 of file isdnif.h.

#define AT_QUERY   2

Definition at line 339 of file isdnif.h.

#define CAPI_PUT_MESSAGE   22 /* CAPI message send down or up */

Definition at line 144 of file isdnif.h.

#define DSS1_CMD_INVOKE   ((0x00 << 8) | ISDN_PTYPE_EURO) /* invoke a supplementary service */

Definition at line 46 of file isdnif.h.

#define DSS1_CMD_INVOKE_ABORT   ((0x01 << 8) | ISDN_PTYPE_EURO) /* abort a invoke cmd */

Definition at line 47 of file isdnif.h.

#define dss1_io   isdn_io

Definition at line 388 of file isdnif.h.

#define DSS1_STAT_INVOKE_BRD   ((0x82 << 8) | ISDN_PTYPE_EURO) /* Deliver invoke broadcast info */

Definition at line 54 of file isdnif.h.

#define DSS1_STAT_INVOKE_ERR   ((0x81 << 8) | ISDN_PTYPE_EURO) /* Error Return for invocation */

Definition at line 53 of file isdnif.h.

#define DSS1_STAT_INVOKE_RES   ((0x80 << 8) | ISDN_PTYPE_EURO) /* Result for invocation */

Definition at line 52 of file isdnif.h.

#define ISDN_AUDIO_DTMF   1 /* Rx/Tx DTMF */

Definition at line 181 of file isdnif.h.

#define ISDN_AUDIO_SETDD   0 /* Set DTMF detection */

Definition at line 180 of file isdnif.h.

#define ISDN_CMD_ACCEPTB   3 /* Request B-Channel connect. */

Definition at line 125 of file isdnif.h.

#define ISDN_CMD_ACCEPTD   2 /* Accept an incoming call on D-Chan. */

Definition at line 124 of file isdnif.h.

#define ISDN_CMD_ALERT   19 /* Alert after Proceeding */

Definition at line 141 of file isdnif.h.

#define ISDN_CMD_AUDIO   24 /* DSP, DTMF, ... settings */

Definition at line 146 of file isdnif.h.

#define ISDN_CMD_CLREAZ   5 /* Clear EAZ(s) of channel */

Definition at line 127 of file isdnif.h.

#define ISDN_CMD_DIAL   1 /* Dial out */

Definition at line 123 of file isdnif.h.

#define ISDN_CMD_FAXCMD   23 /* FAX commands to HL-driver */

Definition at line 145 of file isdnif.h.

#define ISDN_CMD_GETEAZ   7 /* Get EAZ(s) of channel */

Definition at line 129 of file isdnif.h.

#define ISDN_CMD_GETL2   11 /* Get B-Chan. Layer2-Parameter */

Definition at line 133 of file isdnif.h.

#define ISDN_CMD_GETL3   13 /* Get B-Chan. Layer3-Parameter */

Definition at line 135 of file isdnif.h.

#define ISDN_CMD_GETSIL   9 /* Get Service-Indicator-List of channel */

Definition at line 131 of file isdnif.h.

#define ISDN_CMD_HANGUP   4 /* Hangup */

Definition at line 126 of file isdnif.h.

#define ISDN_CMD_IOCTL   0 /* Perform ioctl */

Definition at line 122 of file isdnif.h.

#define ISDN_CMD_PROCEED   18 /* Proceed with call establishment */

Definition at line 140 of file isdnif.h.

#define ISDN_CMD_PROT_IO   21 /* Protocol specific commands */

Definition at line 143 of file isdnif.h.

#define ISDN_CMD_REDIR   20 /* Redir a incoming call */

Definition at line 142 of file isdnif.h.

#define ISDN_CMD_RESUME   17 /* Resume connection */

Definition at line 139 of file isdnif.h.

#define ISDN_CMD_SETEAZ   6 /* Set EAZ(s) of channel */

Definition at line 128 of file isdnif.h.

#define ISDN_CMD_SETL2   10 /* Set B-Chan. Layer2-Parameter */

Definition at line 132 of file isdnif.h.

#define ISDN_CMD_SETL3   12 /* Set B-Chan. Layer3-Parameter */

Definition at line 134 of file isdnif.h.

#define ISDN_CMD_SETSIL   8 /* Set Service-Indicator-List of channel */

Definition at line 130 of file isdnif.h.

#define ISDN_CMD_SUSPEND   16 /* Suspend connection */

Definition at line 138 of file isdnif.h.

#define ISDN_FAX_CLASS1_CONNECT   1

Definition at line 325 of file isdnif.h.

#define ISDN_FAX_CLASS1_CTRL   7

Definition at line 322 of file isdnif.h.

#define ISDN_FAX_CLASS1_ERROR   3

Definition at line 327 of file isdnif.h.

#define ISDN_FAX_CLASS1_FAE   0

Definition at line 315 of file isdnif.h.

#define ISDN_FAX_CLASS1_FCERROR   4

Definition at line 328 of file isdnif.h.

#define ISDN_FAX_CLASS1_FRH   6

Definition at line 321 of file isdnif.h.

#define ISDN_FAX_CLASS1_FRM   4

Definition at line 319 of file isdnif.h.

#define ISDN_FAX_CLASS1_FRS   2

Definition at line 317 of file isdnif.h.

#define ISDN_FAX_CLASS1_FTH   5

Definition at line 320 of file isdnif.h.

#define ISDN_FAX_CLASS1_FTM   3

Definition at line 318 of file isdnif.h.

#define ISDN_FAX_CLASS1_FTS   1

Definition at line 316 of file isdnif.h.

#define ISDN_FAX_CLASS1_NOCARR   2

Definition at line 326 of file isdnif.h.

#define ISDN_FAX_CLASS1_OK   0

Definition at line 324 of file isdnif.h.

#define ISDN_FAX_CLASS1_QUERY   5

Definition at line 329 of file isdnif.h.

#define ISDN_FEATURE_L2_FAX   (0x0001 << ISDN_PROTO_L2_FAX)

Definition at line 204 of file isdnif.h.

#define ISDN_FEATURE_L2_HDLC   (0x0001 << ISDN_PROTO_L2_HDLC)

Definition at line 196 of file isdnif.h.

#define ISDN_FEATURE_L2_HDLC_56K   (0x0001 << ISDN_PROTO_L2_HDLC_56K)

Definition at line 205 of file isdnif.h.

#define ISDN_FEATURE_L2_MASK   (0x0FFFF) /* Max. 16 protocols */

Definition at line 207 of file isdnif.h.

#define ISDN_FEATURE_L2_MODEM   (0x0001 << ISDN_PROTO_L2_MODEM)

Definition at line 203 of file isdnif.h.

#define ISDN_FEATURE_L2_SHIFT   (0)

Definition at line 208 of file isdnif.h.

#define ISDN_FEATURE_L2_TRANS   (0x0001 << ISDN_PROTO_L2_TRANS)

Definition at line 197 of file isdnif.h.

#define ISDN_FEATURE_L2_V11019   (0x0001 << ISDN_PROTO_L2_V11019)

Definition at line 201 of file isdnif.h.

#define ISDN_FEATURE_L2_V11038   (0x0001 << ISDN_PROTO_L2_V11038)

Definition at line 202 of file isdnif.h.

#define ISDN_FEATURE_L2_V11096   (0x0001 << ISDN_PROTO_L2_V11096)

Definition at line 200 of file isdnif.h.

#define ISDN_FEATURE_L2_X25DCE   (0x0001 << ISDN_PROTO_L2_X25DCE)

Definition at line 199 of file isdnif.h.

#define ISDN_FEATURE_L2_X25DTE   (0x0001 << ISDN_PROTO_L2_X25DTE)

Definition at line 198 of file isdnif.h.

#define ISDN_FEATURE_L2_X75BUI   (0x0001 << ISDN_PROTO_L2_X75BUI)

Definition at line 195 of file isdnif.h.

#define ISDN_FEATURE_L2_X75I   (0x0001 << ISDN_PROTO_L2_X75I)

Definition at line 193 of file isdnif.h.

#define ISDN_FEATURE_L2_X75UI   (0x0001 << ISDN_PROTO_L2_X75UI)

Definition at line 194 of file isdnif.h.

#define ISDN_FEATURE_L3_FCLASS1   (0x10000 << ISDN_PROTO_L3_FCLASS1)

Definition at line 214 of file isdnif.h.

#define ISDN_FEATURE_L3_FCLASS2   (0x10000 << ISDN_PROTO_L3_FCLASS2)

Definition at line 213 of file isdnif.h.

#define ISDN_FEATURE_L3_MASK   (0x0FF0000) /* Max. 8 Protocols */

Definition at line 216 of file isdnif.h.

#define ISDN_FEATURE_L3_SHIFT   (16)

Definition at line 217 of file isdnif.h.

#define ISDN_FEATURE_L3_TRANS   (0x10000 << ISDN_PROTO_L3_TRANS)

Definition at line 211 of file isdnif.h.

#define ISDN_FEATURE_L3_TRANSDSP   (0x10000 << ISDN_PROTO_L3_TRANSDSP)

Definition at line 212 of file isdnif.h.

#define ISDN_FEATURE_P_1TR6   (0x1000000 << ISDN_PTYPE_1TR6)

Definition at line 221 of file isdnif.h.

#define ISDN_FEATURE_P_EURO   (0x1000000 << ISDN_PTYPE_EURO)

Definition at line 222 of file isdnif.h.

#define ISDN_FEATURE_P_MASK   (0x0FF000000) /* Max. 8 Protocols */

Definition at line 225 of file isdnif.h.

#define ISDN_FEATURE_P_NI1   (0x1000000 << ISDN_PTYPE_NI1)

Definition at line 223 of file isdnif.h.

#define ISDN_FEATURE_P_SHIFT   (24)

Definition at line 226 of file isdnif.h.

#define ISDN_FEATURE_P_UNKNOWN   (0x1000000 << ISDN_PTYPE_UNKNOWN)

Definition at line 220 of file isdnif.h.

#define ISDN_STAT_ADDCH   269 /* Add more Channels */

Definition at line 166 of file isdnif.h.

#define ISDN_STAT_AUDIO   277 /* DTMF, DSP indications */

Definition at line 174 of file isdnif.h.

#define ISDN_STAT_BCONN   261 /* Signal B-Channel connect */

Definition at line 158 of file isdnif.h.

#define ISDN_STAT_BHUP   263 /* Signal B-Channel disconnect */

Definition at line 160 of file isdnif.h.

#define ISDN_STAT_BSENT   267 /* Signal packet sent */

Definition at line 164 of file isdnif.h.

#define ISDN_STAT_CAUSE   270 /* Cause-Message */

Definition at line 167 of file isdnif.h.

#define ISDN_STAT_CINF   264 /* Charge-Info */

Definition at line 161 of file isdnif.h.

#define ISDN_STAT_DCONN   260 /* Signal D-Channel connect */

Definition at line 157 of file isdnif.h.

#define ISDN_STAT_DHUP   262 /* Signal D-Channel disconnect */

Definition at line 159 of file isdnif.h.

#define ISDN_STAT_DISCH   278 /* Disable/Enable channel usage */

Definition at line 175 of file isdnif.h.

#define ISDN_STAT_DISPLAY   274 /* deliver a received display message */

Definition at line 171 of file isdnif.h.

#define ISDN_STAT_FAXIND   276 /* FAX indications from HL-driver */

Definition at line 173 of file isdnif.h.

#define ISDN_STAT_ICALL   257 /* Incoming call detected */

Definition at line 154 of file isdnif.h.

#define ISDN_STAT_ICALLW   271 /* Incoming call without B-chan waiting */

Definition at line 168 of file isdnif.h.

#define ISDN_STAT_L1ERR   275 /* Signal Layer-1 Error */

Definition at line 172 of file isdnif.h.

#define ISDN_STAT_L1ERR_RECV   2

Definition at line 187 of file isdnif.h.

#define ISDN_STAT_L1ERR_SEND   1

Definition at line 186 of file isdnif.h.

#define ISDN_STAT_LOAD   265 /* Signal new lowlevel-driver is loaded */

Definition at line 162 of file isdnif.h.

#define ISDN_STAT_NODCH   268 /* Signal no D-Channel */

Definition at line 165 of file isdnif.h.

#define ISDN_STAT_PROT   273 /* protocol IO specific callback */

Definition at line 170 of file isdnif.h.

#define ISDN_STAT_REDIR   272 /* Redir result */

Definition at line 169 of file isdnif.h.

#define ISDN_STAT_RUN   258 /* Signal protocol-code is running */

Definition at line 155 of file isdnif.h.

#define ISDN_STAT_STAVAIL   256 /* Raw status-data available */

Definition at line 153 of file isdnif.h.

#define ISDN_STAT_STOP   259 /* Signal halt of protocol-code */

Definition at line 156 of file isdnif.h.

#define ISDN_STAT_UNLOAD   266 /* Signal unload of lowlevel-driver */

Definition at line 163 of file isdnif.h.

#define MAX_CAPI_PARA_LEN   50

Definition at line 345 of file isdnif.h.

#define NI1_CMD_INVOKE   ((0x00 << 8) | ISDN_PTYPE_NI1) /* invoke a supplementary service */

Definition at line 91 of file isdnif.h.

#define NI1_CMD_INVOKE_ABORT   ((0x01 << 8) | ISDN_PTYPE_NI1) /* abort a invoke cmd */

Definition at line 92 of file isdnif.h.

#define ni1_io   isdn_io

Definition at line 389 of file isdnif.h.

#define NI1_STAT_INVOKE_BRD   ((0x82 << 8) | ISDN_PTYPE_NI1) /* Deliver invoke broadcast info */

Definition at line 99 of file isdnif.h.

#define NI1_STAT_INVOKE_ERR   ((0x81 << 8) | ISDN_PTYPE_NI1) /* Error Return for invocation */

Definition at line 98 of file isdnif.h.

#define NI1_STAT_INVOKE_RES   ((0x80 << 8) | ISDN_PTYPE_NI1) /* Result for invocation */

Definition at line 97 of file isdnif.h.

Typedef Documentation

Function Documentation

int register_isdn ( isdn_if )

Definition at line 2223 of file isdn_common.c.