Commit 5a5e045b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet

docs: isdn: convert to ReST and add to kAPI bookset

The ISDN documentation is a mix of admin guide, uAPI and kAPI.

Ideally, it should be split. Yet, not sure if it would worth
the troble. Anyway, we have the same kind of mix on several
drivers specific documentation. So, just like the others, keep
the directory at the root Documentation/ tree, just adding a
pointer to it at the kAPI section, as the documentation was
written with the Kernel developers in mind.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 32fc3cd8
...@@ -106,6 +106,7 @@ needed). ...@@ -106,6 +106,7 @@ needed).
hid/index hid/index
i2c/index i2c/index
iio/index iio/index
isdn/index
infiniband/index infiniband/index
leds/index leds/index
media/index media/index
......
Driver for active AVM Controller. ================================
Driver for active AVM Controller
================================
The driver provides a kernel capi2.0 Interface (kernelcapi) and The driver provides a kernel capi2.0 Interface (kernelcapi) and
on top of this a User-Level-CAPI2.0-interface (capi) on top of this a User-Level-CAPI2.0-interface (capi)
...@@ -11,25 +13,28 @@ The command avmcapictrl is part of the isdn4k-utils. ...@@ -11,25 +13,28 @@ The command avmcapictrl is part of the isdn4k-utils.
t4-files can be found at ftp://ftp.avm.de/cardware/b1/linux/firmware t4-files can be found at ftp://ftp.avm.de/cardware/b1/linux/firmware
Currently supported cards: Currently supported cards:
B1 ISA (all versions)
B1 PCI - B1 ISA (all versions)
T1/T1B (HEMA card) - B1 PCI
M1 - T1/T1B (HEMA card)
M2 - M1
B1 PCMCIA - M2
- B1 PCMCIA
Installing Installing
---------- ----------
You need at least /dev/capi20 to load the firmware. You need at least /dev/capi20 to load the firmware.
mknod /dev/capi20 c 68 0 ::
mknod /dev/capi20.00 c 68 1
mknod /dev/capi20.01 c 68 2 mknod /dev/capi20 c 68 0
. mknod /dev/capi20.00 c 68 1
. mknod /dev/capi20.01 c 68 2
. .
mknod /dev/capi20.19 c 68 20 .
.
mknod /dev/capi20.19 c 68 20
Running Running
------- -------
...@@ -38,45 +43,58 @@ To use the card you need the t4-files to download the firmware. ...@@ -38,45 +43,58 @@ To use the card you need the t4-files to download the firmware.
AVM GmbH provides several t4-files for the different D-channel AVM GmbH provides several t4-files for the different D-channel
protocols (b1.t4 for Euro-ISDN). Install these file in /lib/isdn. protocols (b1.t4 for Euro-ISDN). Install these file in /lib/isdn.
if you configure as modules load the modules this way: if you configure as modules load the modules this way::
insmod /lib/modules/current/misc/capiutil.o
insmod /lib/modules/current/misc/b1.o
insmod /lib/modules/current/misc/kernelcapi.o
insmod /lib/modules/current/misc/capidrv.o
insmod /lib/modules/current/misc/capi.o
insmod /lib/modules/current/misc/capiutil.o if you have an B1-PCI card load the module b1pci.o::
insmod /lib/modules/current/misc/b1.o
insmod /lib/modules/current/misc/kernelcapi.o
insmod /lib/modules/current/misc/capidrv.o
insmod /lib/modules/current/misc/capi.o
if you have an B1-PCI card load the module b1pci.o insmod /lib/modules/current/misc/b1pci.o
insmod /lib/modules/current/misc/b1pci.o
and load the firmware with and load the firmware with::
avmcapictrl load /lib/isdn/b1.t4 1
avmcapictrl load /lib/isdn/b1.t4 1
if you have an B1-ISA card load the module b1isa.o if you have an B1-ISA card load the module b1isa.o
and add the card by calling and add the card by calling::
avmcapictrl add 0x150 15
and load the firmware by calling avmcapictrl add 0x150 15
avmcapictrl load /lib/isdn/b1.t4 1
and load the firmware by calling::
avmcapictrl load /lib/isdn/b1.t4 1
if you have an T1-ISA card load the module t1isa.o if you have an T1-ISA card load the module t1isa.o
and add the card by calling and add the card by calling::
avmcapictrl add 0x450 15 T1 0
and load the firmware by calling avmcapictrl add 0x450 15 T1 0
avmcapictrl load /lib/isdn/t1.t4 1
and load the firmware by calling::
avmcapictrl load /lib/isdn/t1.t4 1
if you have an PCMCIA card (B1/M1/M2) load the module b1pcmcia.o if you have an PCMCIA card (B1/M1/M2) load the module b1pcmcia.o
before you insert the card. before you insert the card.
Leased Lines with B1 Leased Lines with B1
-------------------- --------------------
Init card and load firmware. Init card and load firmware.
For an D64S use "FV: 1" as phone number For an D64S use "FV: 1" as phone number
For an D64S2 use "FV: 1" and "FV: 2" for multilink For an D64S2 use "FV: 1" and "FV: 2" for multilink
or "FV: 1,2" to use CAPI channel bundling. or "FV: 1,2" to use CAPI channel bundling.
/proc-Interface /proc-Interface
----------------- -----------------
/proc/capi: /proc/capi::
dr-xr-xr-x 2 root root 0 Jul 1 14:03 . dr-xr-xr-x 2 root root 0 Jul 1 14:03 .
dr-xr-xr-x 82 root root 0 Jun 30 19:08 .. dr-xr-xr-x 82 root root 0 Jun 30 19:08 ..
-r--r--r-- 1 root root 0 Jul 1 14:03 applications -r--r--r-- 1 root root 0 Jul 1 14:03 applications
...@@ -91,84 +109,124 @@ or "FV: 1,2" to use CAPI channel bundling. ...@@ -91,84 +109,124 @@ or "FV: 1,2" to use CAPI channel bundling.
/proc/capi/applications: /proc/capi/applications:
applid level3cnt datablkcnt datablklen ncci-cnt recvqueuelen applid level3cnt datablkcnt datablklen ncci-cnt recvqueuelen
level3cnt: capi_register parameter level3cnt:
datablkcnt: capi_register parameter capi_register parameter
ncci-cnt: current number of nccis (connections) datablkcnt:
recvqueuelen: number of messages on receive queue capi_register parameter
for example: ncci-cnt:
1 -2 16 2048 1 0 current number of nccis (connections)
2 2 7 2048 1 0 recvqueuelen:
number of messages on receive queue
for example::
1 -2 16 2048 1 0
2 2 7 2048 1 0
/proc/capi/applstats: /proc/capi/applstats:
applid recvctlmsg nrecvdatamsg nsentctlmsg nsentdatamsg applid recvctlmsg nrecvdatamsg nsentctlmsg nsentdatamsg
recvctlmsg: capi messages received without DATA_B3_IND recvctlmsg:
recvdatamsg: capi DATA_B3_IND received capi messages received without DATA_B3_IND
sentctlmsg: capi messages sent without DATA_B3_REQ recvdatamsg:
sentdatamsg: capi DATA_B3_REQ sent capi DATA_B3_IND received
for example: sentctlmsg:
1 2057 1699 1721 1699 capi messages sent without DATA_B3_REQ
sentdatamsg:
capi DATA_B3_REQ sent
for example::
1 2057 1699 1721 1699
/proc/capi/capi20: statistics of capi.o (/dev/capi20) /proc/capi/capi20: statistics of capi.o (/dev/capi20)
minor nopen nrecvdropmsg nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg minor nopen nrecvdropmsg nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg
minor: minor device number of capi device minor:
nopen: number of calls to devices open minor device number of capi device
nrecvdropmsg: capi messages dropped (messages in recvqueue in close) nopen:
nrecvctlmsg: capi messages received without DATA_B3_IND number of calls to devices open
nrecvdatamsg: capi DATA_B3_IND received nrecvdropmsg:
nsentctlmsg: capi messages sent without DATA_B3_REQ capi messages dropped (messages in recvqueue in close)
nsentdatamsg: capi DATA_B3_REQ sent nrecvctlmsg:
capi messages received without DATA_B3_IND
for example: nrecvdatamsg:
1 2 18 0 16 2 capi DATA_B3_IND received
nsentctlmsg:
capi messages sent without DATA_B3_REQ
nsentdatamsg:
capi DATA_B3_REQ sent
for example::
1 2 18 0 16 2
/proc/capi/capidrv: statistics of capidrv.o (capi messages) /proc/capi/capidrv: statistics of capidrv.o (capi messages)
nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg
nrecvctlmsg: capi messages received without DATA_B3_IND nrecvctlmsg:
nrecvdatamsg: capi DATA_B3_IND received capi messages received without DATA_B3_IND
nsentctlmsg: capi messages sent without DATA_B3_REQ nrecvdatamsg:
nsentdatamsg: capi DATA_B3_REQ sent capi DATA_B3_IND received
nsentctlmsg:
capi messages sent without DATA_B3_REQ
nsentdatamsg:
capi DATA_B3_REQ sent
for example: for example:
2780 2226 2256 2226 2780 2226 2256 2226
/proc/capi/controller: /proc/capi/controller:
controller drivername state cardname controllerinfo controller drivername state cardname controllerinfo
for example:
1 b1pci running b1pci-e000 B1 3.07-01 0xe000 19 for example::
2 t1isa running t1isa-450 B1 3.07-01 0x450 11 0
3 b1pcmcia running m2-150 B1 3.07-01 0x150 5 1 b1pci running b1pci-e000 B1 3.07-01 0xe000 19
2 t1isa running t1isa-450 B1 3.07-01 0x450 11 0
3 b1pcmcia running m2-150 B1 3.07-01 0x150 5
/proc/capi/contrstats: /proc/capi/contrstats:
controller nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg controller nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg
nrecvctlmsg: capi messages received without DATA_B3_IND nrecvctlmsg:
nrecvdatamsg: capi DATA_B3_IND received capi messages received without DATA_B3_IND
nsentctlmsg: capi messages sent without DATA_B3_REQ nrecvdatamsg:
nsentdatamsg: capi DATA_B3_REQ sent capi DATA_B3_IND received
for example: nsentctlmsg:
1 2845 2272 2310 2274 capi messages sent without DATA_B3_REQ
2 2 0 2 0 nsentdatamsg:
3 2 0 2 0 capi DATA_B3_REQ sent
for example::
1 2845 2272 2310 2274
2 2 0 2 0
3 2 0 2 0
/proc/capi/driver: /proc/capi/driver:
drivername ncontroller drivername ncontroller
for example:
b1pci 1 for example::
t1isa 1
b1pcmcia 1 b1pci 1
b1isa 0 t1isa 1
b1pcmcia 1
b1isa 0
/proc/capi/ncci: /proc/capi/ncci:
apllid ncci winsize sendwindow apllid ncci winsize sendwindow
for example:
1 0x10101 8 0 for example::
1 0x10101 8 0
/proc/capi/users: kernelmodules that use the kernelcapi. /proc/capi/users: kernelmodules that use the kernelcapi.
name name
for example:
capidrv for example::
capi20
capidrv
capi20
Questions Questions
--------- ---------
Check out the FAQ (ftp.isdn4linux.de) or subscribe to the Check out the FAQ (ftp.isdn4linux.de) or subscribe to the
linux-avmb1@calle.in-berlin.de mailing list by sending linux-avmb1@calle.in-berlin.de mailing list by sending
a mail to majordomo@calle.in-berlin.de with a mail to majordomo@calle.in-berlin.de with
...@@ -180,6 +238,7 @@ ftp://ftp.avm.de/cardware/b1/linux/ ...@@ -180,6 +238,7 @@ ftp://ftp.avm.de/cardware/b1/linux/
Bugs Bugs
---- ----
If you find any please let me know. If you find any please let me know.
Enjoy, Enjoy,
......
=======
Credits
=======
I want to thank all who contributed to this project and especially to: I want to thank all who contributed to this project and especially to:
(in alphabetical order) (in alphabetical order)
...@@ -67,4 +71,3 @@ Gerhard 'Fido' Schneider (fido@wuff.mayn.de) ...@@ -67,4 +71,3 @@ Gerhard 'Fido' Schneider (fido@wuff.mayn.de)
Thomas Uhl (uhl@think.de) Thomas Uhl (uhl@think.de)
For distributing the cards. For distributing the cards.
For pushing me to work ;-) For pushing me to work ;-)
$Id: README.hysdn,v 1.3.6.1 2001/02/10 14:41:19 kai Exp $ ============
Hysdn Driver
============
The hysdn driver has been written by The hysdn driver has been written by
Werner Cornelius (werner@isdn4linux.de or werner@titro.de) Werner Cornelius (werner@isdn4linux.de or werner@titro.de)
for Hypercope GmbH Aachen Germany. Hypercope agreed to publish this driver for Hypercope GmbH Aachen Germany. Hypercope agreed to publish this driver
...@@ -22,23 +25,23 @@ for Hypercope GmbH Aachen, Germany. ...@@ -22,23 +25,23 @@ for Hypercope GmbH Aachen, Germany.
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Table of contents .. Table of contents
=================
1. About the driver 1. About the driver
2. Loading/Unloading the driver 2. Loading/Unloading the driver
3. Entries in the /proc filesystem 3. Entries in the /proc filesystem
4. The /proc/net/hysdn/cardconfX file 4. The /proc/net/hysdn/cardconfX file
5. The /proc/net/hysdn/cardlogX file 5. The /proc/net/hysdn/cardlogX file
6. Where to get additional info and help 6. Where to get additional info and help
1. About the driver 1. About the driver
===================
The drivers/isdn/hysdn subdir contains a driver for HYPERCOPEs active The drivers/isdn/hysdn subdir contains a driver for HYPERCOPEs active
PCI isdn cards Champ, Ergo and Metro. To enable support for this cards PCI isdn cards Champ, Ergo and Metro. To enable support for this cards
...@@ -60,6 +63,7 @@ Table of contents ...@@ -60,6 +63,7 @@ Table of contents
2. Loading/Unloading the driver 2. Loading/Unloading the driver
===============================
The module has no command line parameters and auto detects up to 10 cards The module has no command line parameters and auto detects up to 10 cards
in the id-range 0-9. in the id-range 0-9.
...@@ -76,6 +80,7 @@ Table of contents ...@@ -76,6 +80,7 @@ Table of contents
any avm-specific modules). any avm-specific modules).
3. Entries in the /proc filesystem 3. Entries in the /proc filesystem
==================================
When the module has been loaded it adds the directory hysdn in the When the module has been loaded it adds the directory hysdn in the
/proc/net tree. This directory contains exactly 2 file entries for each /proc/net tree. This directory contains exactly 2 file entries for each
...@@ -84,27 +89,30 @@ Table of contents ...@@ -84,27 +89,30 @@ Table of contents
The cards are numbered in the order found in the PCI config data. The cards are numbered in the order found in the PCI config data.
4. The /proc/net/hysdn/cardconfX file 4. The /proc/net/hysdn/cardconfX file
=====================================
This file may be read to get by everyone to get info about the cards type, This file may be read to get by everyone to get info about the cards type,
actual state, available features and used resources. actual state, available features and used resources.
The first 3 entries (id, bus and slot) are PCI info fields, the following The first 3 entries (id, bus and slot) are PCI info fields, the following
type field gives the information about the cards type: type field gives the information about the cards type:
4 -> Ergo card (server card with 2 b-chans) - 4 -> Ergo card (server card with 2 b-chans)
5 -> Metro card (server card with 4 or 8 b-chans) - 5 -> Metro card (server card with 4 or 8 b-chans)
6 -> Champ card (client card with 2 b-chans) - 6 -> Champ card (client card with 2 b-chans)
The following 3 fields show the hardware assignments for irq, iobase and the The following 3 fields show the hardware assignments for irq, iobase and the
dual ported memory (dp-mem). dual ported memory (dp-mem).
The fields b-chans and fax-chans announce the available card resources of The fields b-chans and fax-chans announce the available card resources of
this types for the user. this types for the user.
The state variable indicates the actual drivers state for this card with the The state variable indicates the actual drivers state for this card with the
following assignments. following assignments.
0 -> card has not been booted since driver load - 0 -> card has not been booted since driver load
1 -> card booting is actually in progess - 1 -> card booting is actually in progess
2 -> card is in an error state due to a previous boot failure - 2 -> card is in an error state due to a previous boot failure
3 -> card is booted and active - 3 -> card is booted and active
And the last field (device) shows the name of the ethernet device assigned And the last field (device) shows the name of the ethernet device assigned
to this card. Up to the first successful boot this field only shows a - to this card. Up to the first successful boot this field only shows a -
...@@ -122,6 +130,7 @@ Table of contents ...@@ -122,6 +130,7 @@ Table of contents
If an error occurs the return value given to the writing process has the If an error occurs the return value given to the writing process has the
following additional codes (decimal): following additional codes (decimal):
==== ============================================
1000 Another process is currently bootng the card 1000 Another process is currently bootng the card
1001 Invalid firmware header 1001 Invalid firmware header
1002 Boards dual-port RAM test failed 1002 Boards dual-port RAM test failed
...@@ -134,10 +143,12 @@ Table of contents ...@@ -134,10 +143,12 @@ Table of contents
1009 Config line too long 1009 Config line too long
1010 Invalid channel number 1010 Invalid channel number
1011 Timeout sending config data 1011 Timeout sending config data
==== ============================================
Additional info about error reasons may be fetched from the log output. Additional info about error reasons may be fetched from the log output.
5. The /proc/net/hysdn/cardlogX file 5. The /proc/net/hysdn/cardlogX file
====================================
The cardlogX file entry may be opened multiple for reading by everyone to The cardlogX file entry may be opened multiple for reading by everyone to
get the cards and drivers log data. Card messages always start with the get the cards and drivers log data. Card messages always start with the
...@@ -151,13 +162,16 @@ Table of contents ...@@ -151,13 +162,16 @@ Table of contents
written to the cardlog file independent of the following options only used written to the cardlog file independent of the following options only used
to check and debug the driver itself: to check and debug the driver itself:
For example: For example::
echo "0x34560078" > /proc/net/hysdn/cardlog0 echo "0x34560078" > /proc/net/hysdn/cardlog0
to output the hex log mask 34560078 for card 0. to output the hex log mask 34560078 for card 0.
The written value is regarded as an unsigned 32-Bit value, bit ored for The written value is regarded as an unsigned 32-Bit value, bit ored for
desired output. The following bits are already assigned: desired output. The following bits are already assigned:
========== ============================================================
0x80000000 All driver log data is alternatively via syslog 0x80000000 All driver log data is alternatively via syslog
0x00000001 Log memory allocation errors 0x00000001 Log memory allocation errors
0x00000010 Firmware load start and close are logged 0x00000010 Firmware load start and close are logged
...@@ -171,25 +185,12 @@ Table of contents ...@@ -171,25 +185,12 @@ Table of contents
0x00100000 Log all open and close actions to /proc/net/hysdn/card files 0x00100000 Log all open and close actions to /proc/net/hysdn/card files
0x00200000 Log all actions from /proc file entries 0x00200000 Log all actions from /proc file entries
0x00010000 Log network interface init and deinit 0x00010000 Log network interface init and deinit
========== ============================================================
6. Where to get additional info and help 6. Where to get additional info and help
========================================
If you have any problems concerning the driver or configuration contact If you have any problems concerning the driver or configuration contact
the Hypercope support team (support@hypercope.de) and or the authors the Hypercope support team (support@hypercope.de) and or the authors
Werner Cornelius (werner@isdn4linux or cornelius@titro.de) or Werner Cornelius (werner@isdn4linux or cornelius@titro.de) or
Ulrich Albrecht (ualbrecht@hypercope.de). Ulrich Albrecht (ualbrecht@hypercope.de).
.. SPDX-License-Identifier: GPL-2.0
====
ISDN
====
.. toctree::
:maxdepth: 2
interface_capi
avmb1
gigaset
hysdn
m_isdn
credits
.. only:: subproject and html
Indices
=======
* :ref:`genindex`
============
mISDN Driver
============
mISDN is a new modular ISDN driver, in the long term it should replace mISDN is a new modular ISDN driver, in the long term it should replace
the old I4L driver architecture for passiv ISDN cards. the old I4L driver architecture for passiv ISDN cards.
It was designed to allow a broad range of applications and interfaces It was designed to allow a broad range of applications and interfaces
but only have the basic function in kernel, the interface to the user but only have the basic function in kernel, the interface to the user
space is based on sockets with a own address family AF_ISDN. space is based on sockets with a own address family AF_ISDN.
...@@ -5,7 +5,7 @@ config HYSDN ...@@ -5,7 +5,7 @@ config HYSDN
help help
Say Y here if you have one of Hypercope's active PCI ISDN cards Say Y here if you have one of Hypercope's active PCI ISDN cards
Champ, Ergo and Metro. You will then get a module called hysdn. Champ, Ergo and Metro. You will then get a module called hysdn.
Please read the file <file:Documentation/isdn/README.hysdn> for more Please read the file <file:Documentation/isdn/hysdn.rst> for more
information. information.
config HYSDN_CAPI config HYSDN_CAPI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment