URL
https://opencores.org/ocsvn/test_project/test_project/trunk
Subversion Repositories test_project
[/] [test_project/] [trunk/] [linux_sd_driver/] [Documentation/] [isdn/] [README.hysdn] - Rev 62
Compare with Previous | Blame | View Log
$Id: README.hysdn,v 1.3.6.1 2001/02/10 14:41:19 kai Exp $The hysdn driver has been written byWerner Cornelius (werner@isdn4linux.de or werner@titro.de)for Hypercope GmbH Aachen Germany. Hypercope agreed to publish this driverunder the GNU General Public License.The CAPI 2.0-support was added by Ulrich Albrecht (ualbrecht@hypercope.de)for Hypercope GmbH Aachen, Germany.This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.Table of contents=================1. About the driver2. Loading/Unloading the driver3. Entries in the /proc filesystem4. The /proc/net/hysdn/cardconfX file5. The /proc/net/hysdn/cardlogX file6. Where to get additional info and help1. About the driverThe drivers/isdn/hysdn subdir contains a driver for HYPERCOPEs activePCI isdn cards Champ, Ergo and Metro. To enable support for this cardsenable ISDN support in the kernel config and support for HYSDN cards inthe active cards submenu. The driver may only be compiled and used ifsupport for loadable modules and the process filesystem have been enabled.These cards provide two different interfaces to the kernel. Without theoptional CAPI 2.0 support, they register as ethernet card. IP-routingto a ISDN-destination is performed on the card itself. All necessaryhandlers for various protocols like ppp and others as well as config infoand firmware may be fetched from Hypercopes WWW-Site www.hypercope.de.With CAPI 2.0 support enabled, the card can also be used as a CAPI 2.0compliant devices with either CAPI 2.0 applications(check isdn4k-utils) or -using the capidrv module- as a regularisdn4linux device. This is done via the same mechanism as with theactive AVM cards and in fact uses the same module.2. Loading/Unloading the driverThe module has no command line parameters and auto detects up to 10 cardsin the id-range 0-9.If a loaded driver shall be unloaded all open files in the /proc/net/hysdnsubdir need to be closed and all ethernet interfaces allocated by thisdriver must be shut down. Otherwise the module counter will avoid a moduleunload.If you are using the CAPI 2.0-interface, make sure to load/modprobe thekernelcapi-module first.If you plan to use the capidrv-link to isdn4linux, make sure to loadcapidrv.o after all modules using this driver (i.e. after hysdn andany avm-specific modules).3. Entries in the /proc filesystemWhen the module has been loaded it adds the directory hysdn in the/proc/net tree. This directory contains exactly 2 file entries for eachcard. One is called cardconfX and the other cardlogX, where X is thecard id number from 0 to 9.The cards are numbered in the order found in the PCI config data.4. The /proc/net/hysdn/cardconfX fileThis file may be read to get by everyone to get info about the cards type,actual state, available features and used resources.The first 3 entries (id, bus and slot) are PCI info fields, the followingtype field gives the information about the cards type:4 -> Ergo card (server card with 2 b-chans)5 -> Metro card (server card with 4 or 8 b-chans)6 -> Champ card (client card with 2 b-chans)The following 3 fields show the hardware assignments for irq, iobase and thedual ported memory (dp-mem).The fields b-chans and fax-chans announce the available card resources ofthis types for the user.The state variable indicates the actual drivers state for this card with thefollowing assignments.0 -> card has not been booted since driver load1 -> card booting is actually in progess2 -> card is in an error state due to a previous boot failure3 -> card is booted and activeAnd the last field (device) shows the name of the ethernet device assignedto this card. Up to the first successful boot this field only shows a -to tell that no net device has been allocated up to now. Once a net devicehas been allocated it remains assigned to this card, even if a card isrebooted and an boot error occurs.Writing to the cardconfX file boots the card or transfers config lines tothe cards firmware. The type of data is automatically detected when thefirst data is written. Only root has write access to this file.The firmware boot files are normally called hyclient.pof for client cardsand hyserver.pof for server cards.After successfully writing the boot file, complete config files or singleconfig lines may be copied to this file.If an error occurs the return value given to the writing process has thefollowing additional codes (decimal):1000 Another process is currently bootng the card1001 Invalid firmware header1002 Boards dual-port RAM test failed1003 Internal firmware handler error1004 Boot image size invalid1005 First boot stage (bootstrap loader) failed1006 Second boot stage failure1007 Timeout waiting for card ready during boot1008 Operation only allowed in booted state1009 Config line too long1010 Invalid channel number1011 Timeout sending config dataAdditional info about error reasons may be fetched from the log output.5. The /proc/net/hysdn/cardlogX fileThe cardlogX file entry may be opened multiple for reading by everyone toget the cards and drivers log data. Card messages always start with thekeyword LOG. All other lines are output from the driver.The driver log data may be redirected to the syslog by selecting theappropriate bitmask. The cards log messages will always be send to thisinterface but never to the syslog.A root user may write a decimal or hex (with 0x) value t this file to selectdesired output options. As mentioned above the cards log dat is alwayswritten to the cardlog file independent of the following options only usedto check and debug the driver itself:For example:echo "0x34560078" > /proc/net/hysdn/cardlog0to output the hex log mask 34560078 for card 0.The written value is regarded as an unsigned 32-Bit value, bit ored fordesired output. The following bits are already assigned:0x80000000 All driver log data is alternatively via syslog0x00000001 Log memory allocation errors0x00000010 Firmware load start and close are logged0x00000020 Log firmware record parser0x00000040 Log every firmware write actions0x00000080 Log all card related boot messages0x00000100 Output all config data sent for debugging purposes0x00000200 Only non comment config lines are shown wth channel0x00000400 Additional conf log output0x00001000 Log the asynchronous scheduler actions (config and log)0x00100000 Log all open and close actions to /proc/net/hysdn/card files0x00200000 Log all actions from /proc file entries0x00010000 Log network interface init and deinit6. Where to get additional info and helpIf you have any problems concerning the driver or configuration contactthe Hypercope support team (support@hypercope.de) and or the authorsWerner Cornelius (werner@isdn4linux or cornelius@titro.de) orUlrich Albrecht (ualbrecht@hypercope.de).
