Lines Matching +full:protocol +full:- +full:id
1 $Id: INTERFACE,v 1.15.8.2 2001/03/13 16:17:07 kai Exp $
10 An HL-driver can register itself at LL by calling the function
14 the function-pointers defined in isdn_if.
46 This field has to be set by the HL-driver to the number of channels
48 the LL puts an id there, which has to be used by the HL-driver when
55 Also to be preset by the HL-driver. With this value the HL-driver
56 tells the LL the maximum size of a data-packet it will accept.
60 To be preset by the HL-driver. Using this field, the HL-driver
62 report the supported layer2 and layer3-protocols. For setting this
72 To be preset by the HL-driver, if it supports sk_buff's. The driver
81 This field will be set by LL. The HL-driver delivers received data-
82 packets by calling this function. Upon calling, the HL-driver must
86 int driver-Id
87 int Channel-number locally to the driver. (starting with 0)
93 HL-driver for signaling status-changes or other events to the LL.
102 driver = driver Id.
103 command = event-type. (one of the constants ISDN_STAT_...)
104 arg = depends on event-type.
105 num = depends on event-type.
108 0 on success, else -1
112 This field has to be preset by the HL-driver. It points to a function,
113 to be called by LL to perform functions like dialing, B-channel
119 driver = driver-Id
125 >=0 on success, else error-code (-ENODEV etc.)
132 This field has to be preset by the HL-driver. The given function will
133 be called by the LL for delivering data to be send via B-Channel.
137 int driver-Id ***CHANGE0.7.4: New parameter.
138 int channel-number locally to the HL-driver. (starts with 0)
144 B-channel.
147 Length of data accepted on success, else error-code (-EINVAL on
152 This field has to be preset by the HL-driver. The given function will be
153 called to perform write-requests on /dev/isdnctrl (i.e. sending commands
154 to the card) The data-format is hardware-specific. This function is
156 and never will be called by the tty-emulation- or network-code. If
162 int flag: 0 = call from within kernel-space. (HL-driver must use
164 1 = call from user-space. (HL-driver must use
166 int driver-Id.
167 int channel-number locally to the HL-driver. (starts with 0)
169 ***CHANGEI1.14: The driver-Id and channel-number are new since this revision.
172 Length of data accepted on success, else error-code (-EINVAL etc.)
176 This field has to be preset by the HL-driver. The given function will be
177 called to perform read-requests on /dev/isdnctrl (i.e. reading replies
178 from the card) The data-format is hardware-specific. This function is
180 and never will be called by the tty-emulation- or network-code. If
186 int flag: 0 = call from within kernel-space. (HL-driver must use
188 1 = call from user-space. (HL-driver must use
190 int driver-Id.
191 int channel-number locally to the HL-driver. (starts with 0)
193 ***CHANGEI1.14: The driver-Id and channel-number are new since this revision.
196 Length of data on success, else error-code (-EINVAL etc.)
198 char id[20];
201 This string has to be preset by the HL-driver. Its purpose is for
203 status-info of /dev/isdninfo. Furthermore it is used as Id for binding
204 net-interfaces to a specific channel. If a string of length zero is
207 module-load-time. (copy a global variable to this string.) For doing that,
210 2. Description of the commands, a HL-driver has to support:
213 above from within the LL. The field command of the struct-parameter will
215 appropriate driver-Id.
225 This command is intended for performing ioctl-calls for configuring
226 hardware or similar purposes (setting port-addresses, loading firmware
227 etc.) For this purpose, in the LL all ioctl-calls with an argument
231 If a userlevel-program calls ioctl(0x101,...) the function gets
235 driver = driver-Id.
237 arg = Original ioctl-cmd - IIOCDRVCTL
246 This command is used to tell the HL-driver it should dial a given
250 driver = driver-Id.
252 arg = channel-number locally to the driver. (starting with 0)
254 parm.setup.phone = An ASCII-String containing the number to dial.
255 parm.setup.eazmsn = An ASCII-Sting containing the own EAZ or MSN.
256 parm.setup.si1 = The Service-Indicator.
257 parm.setup.si2 = Additional Service-Indicator.
260 feature, meaning semi-leased-line) the phone has to
268 With this command, the HL-driver is told to accept a D-Channel-setup.
272 driver = driver-Id.
274 arg = channel-number locally to the driver. (starting with 0)
279 With this command, the HL-driver is told to perform a B-Channel-setup.
280 (after establishing D-Channel-Connection)
283 driver = driver-Id.
285 arg = channel-number locally to the driver. (starting with 0)
290 With this command, the HL-driver is told to hangup (B-Channel if
291 established first, then D-Channel). This command is also used for
295 driver = driver-Id.
297 arg = channel-number locally to the driver. (starting with 0)
302 With this command, the HL-driver is told not to signal incoming
306 driver = driver-Id.
308 arg = channel-number locally to the driver. (starting with 0)
313 With this command, the HL-driver is told to signal incoming calls for
317 driver = driver-Id.
319 arg = channel-number locally to the driver. (starting with 0)
320 parm.num = ASCII-String, containing the desired EAZ's/MSN's
321 (comma-separated). If an empty String is given, the
322 HL-driver should respond to ALL incoming calls,
323 regardless of the destination-address.
324 ***CHANGE0.6: New since this version the "empty-string"-feature.
328 With this command, the HL-driver is told to report the current setting
332 driver = driver-Id.
334 arg = channel-number locally to the driver. (starting with 0)
335 parm.num = ASCII-String, containing the current EAZ's/MSN's
339 With this command, the HL-driver is told to signal only incoming
340 calls with the given Service-Indicators.
343 driver = driver-Id.
345 arg = channel-number locally to the driver. (starting with 0)
346 parm.num = ASCII-String, containing the desired Service-Indicators.
350 With this command, the HL-driver is told to return the current
351 Service-Indicators it will respond to.
354 driver = driver-Id.
356 arg = channel-number locally to the driver. (starting with 0)
357 parm.num = ASCII-String, containing the current Service-Indicators.
361 With this command, the HL-driver is told to select the given Layer-2-
362 protocol. This command is issued by the LL prior to ISDN_CMD_DIAL or
367 driver = driver-Id.
369 arg = channel-number locally to the driver. (starting with 0)
370 logical or'ed with (protocol-Id << 8)
371 protocol-Id is one of the constants ISDN_PROTO_L2...
376 With this command, the HL-driver is told to return the current
377 setting of the Layer-2-protocol.
380 driver = driver-Id.
382 arg = channel-number locally to the driver. (starting with 0)
385 current protocol-Id (one of the constants ISDN_L2_PROTO)
389 With this command, the HL-driver is told to select the given Layer-3-
390 protocol. This command is issued by the LL prior to ISDN_CMD_DIAL or
395 driver = driver-Id.
397 arg = channel-number locally to the driver. (starting with 0)
398 logical or'ed with (protocol-Id << 8)
399 protocol-Id is one of the constants ISDN_PROTO_L3...
404 With this command, the HL-driver is told to return the current
405 setting of the Layer-3-protocol.
408 driver = driver-Id.
410 arg = channel-number locally to the driver. (starting with 0)
413 current protocol-Id (one of the constants ISDN_L3_PROTO)
417 With this command, the HL-driver is told to proceed with a incoming call.
420 driver = driver-Id.
422 arg = channel-number locally to the driver. (starting with 0)
428 With this command, the HL-driver is told to alert a proceeding call.
431 driver = driver-Id.
433 arg = channel-number locally to the driver. (starting with 0)
439 With this command, the HL-driver is told to redirect a call in proceeding
443 driver = driver-Id.
445 arg = channel-number locally to the driver. (starting with 0)
446 setup.eazmsn= empty string or string send as uus1 in DSS1 protocol
452 With this call, the LL-driver invokes protocol specific features through
457 driver = driver-Id
459 arg = The lower 8 Bits define the addressed protocol as defined
461 the protocol specific CMD.
463 para = protocol and function specific. See isdnif.h for detail.
468 With this command the HL-driver receives a fax sub-command.
472 driver = driver-Id.
474 arg = channel-number locally to the driver. (starting with 0)
478 3. Description of the events to be signaled by the HL-driver to the LL.
480 All status-changes are signaled via calling the previously described
482 to be set by the HL-driver with the appropriate Status-Id (event-number).
483 The field arg has to be set to the channel-number (locally to the driver,
484 starting with 0) to which this event applies. (Exception: STAVAIL-event)
486 Until now, the following Status-Ids are defined:
490 With this call, the HL-driver signals the availability of new data
491 for readstat(). Used only for debugging-purposes, see description
495 driver = driver-Id
503 With this call, the HL-driver signals an incoming call to the LL.
505 a available B-chan.
508 driver = driver-Id
510 arg = channel-number, locally to the driver. (starting with 0)
521 HL-driver may send ALERTING on the D-channel in this case.
532 Only available in DSS1/EURO protocol
536 -1 = An error happened. (Invalid parameters for example.)
542 With this call, the HL-driver signals availability of the ISDN-card.
546 driver = driver-Id
553 With this call, the HL-driver signals unavailability of the ISDN-card.
557 driver = driver-Id
564 With this call, the HL-driver signals the successful establishment of
565 a D-Channel-connection. (Response to ISDN_CMD_ACCEPTD or ISDN_CMD_DIAL)
568 driver = driver-Id
570 arg = channel-number, locally to the driver. (starting with 0)
575 With this call, the HL-driver signals the successful establishment of
576 a B-Channel-connection. (Response to ISDN_CMD_ACCEPTB or because the
577 remote-station has initiated establishment)
579 The HL driver should call this when the logical l2/l3 protocol
580 connection on top of the physical B-channel is established.
583 driver = driver-Id
585 arg = channel-number, locally to the driver. (starting with 0)
586 parm.num = ASCII-String, containing type of connection (for analog
592 With this call, the HL-driver signals the shutdown of a
593 D-Channel-connection. This could be a response to a prior ISDN_CMD_HANGUP,
594 or caused by a remote-hangup or if the remote-station has actively
598 driver = driver-Id
600 arg = channel-number, locally to the driver. (starting with 0)
605 With this call, the HL-driver signals the shutdown of a
606 B-Channel-connection. This could be a response to a prior ISDN_CMD_HANGUP,
607 or caused by a remote-hangup.
609 The HL driver should call this as soon as the logical l2/l3 protocol
610 connection on top of the physical B-channel is released.
613 driver = driver-Id
615 arg = channel-number, locally to the driver. (starting with 0)
620 With this call, the HL-driver delivers charge-unit information to the
624 driver = driver-Id
626 arg = channel-number, locally to the driver. (starting with 0)
627 parm.num = ASCII string containing charge-units (digits only).
633 With this call, the HL-driver signals that it will be unloaded now. This
634 tells the LL to release all corresponding data-structures.
637 driver = driver-Id
644 With this call the HL-driver signals the delivery of a data-packet.
645 This callback is used by the network-interfaces only, tty-Emulation
649 driver = driver-Id
651 arg = channel-number, locally to the driver. (starting with 0)
659 no D-Channel is available.
662 driver = driver-Id
664 arg = channel-number, locally to the driver. (starting with 0)
669 This call is for HL-drivers, which are unable to check card-type
671 using ioctl. Those HL-driver simply set the channel-parameter to a
672 minimum channel-number when registering, and later if they know
676 driver = driver-Id
683 With this call, the HL-driver delivers CAUSE-messages to the LL.
685 logged via kernel-messages. Therefore, currently the format of the
689 driver = driver-Id
691 arg = channel-number, locally to the driver. (starting with 0)
692 parm.num = ASCII string containing CAUSE-message.
696 With this call, the HL-driver delivers DISPLAY-messages to the LL.
700 driver = driver-Id
702 arg = channel-number, locally to the driver. (starting with 0)
703 para.display= string containing DISPLAY-message.
707 With this call, the HL-driver delivers protocol specific infos to the LL.
711 driver = driver-Id
713 arg = The lower 8 Bits define the addressed protocol as defined
715 the protocol specific STAT.
717 para = protocol and function specific. See isdnif.h for detail.
721 With this call, the HL-driver signals the LL to disable or enable the
723 The call may be used to reduce the available number of B-channels after
731 driver = driver-Id
733 arg = channel-number, locally to the driver. (starting with 0)
739 A signal can be sent to the linklevel if an Layer1-error results in
740 packet-loss on receive or send. The field errcode of the cmd.parm
744 driver = driver-Id
746 arg = channel-number, locally to the driver. (starting with 0)
751 With this call the HL-driver signals a fax sub-command to the LL.
755 driver = driver-Id.
757 arg = channel-number, locally to the driver. (starting with 0)