#------------------------------------------------------------------------------ # /etc/rc.d/rc220.i4l - load isdn drivers # # Creation: 29.03.2000 fm # Last Update: $Id$ #------------------------------------------------------------------------------ add_option () { case x$1 in x) ;; *) options="$options $2=$1" ;; esac } load_capi () { do_modprobe capifs do_modprobe capidrv do_modprobe capi mkdir /dev/capi mount -t capifs -omode=0666 capifs /dev/capi } case $OPT_ISDN in yes) begin_script I4L "configuring isdn ..." > /etc/ppp/ioptions do_modprobe ppp_generic if [ "$OPT_ISDN_COMP" = yes ] then do_modprobe isdn_bsdcomp do_modprobe isdn_lzscomp comp="$ISDN_LZS_COMP" \ debug="$ISDN_LZS_DEBUG" \ tweak="$ISDN_LZS_TWEAK" fi case "$ISDN_TYPE" in "0") # no isdn card ;; # do nothing 10) # ELSA PCMCIA ISDN do_modprobe elsa_cs /sbin/hisaxctrl HiSax 1 $ISDN_DEBUG_LEVEL # debug-level 31 ;; 22) # Sedlbauer SpeedStar do_modprobe sedlbauer_cs /sbin/hisaxctrl HiSax 1 $ISDN_DEBUG_LEVEL # debug-level 31 ;; 26) # AVM Fritz!Card PCMCIA do_modprobe avma1_cs /sbin/hisaxctrl HiSax 1 $ISDN_DEBUG_LEVEL # debug-level 31 ;; 201) # ICN 2B do_modprobe icn portbase=$ISDN_IO membase=$ISDN_MEM icn_id=icn /sbin/icnctrl -d icn load /usr/lib/isdn/loadpg.bin \ /usr/lib/isdn/pc_eu_ca.bin ;; 1[0-9][0-9]) # 100-199: CAPI drivers modules= options= loadfile= load_capi case $ISDN_TYPE in 101) modules="b1pci" # AVM B1-PCI loadfile="b1.t4" options="reset";; 102) modules="b1isa" # AVM B1-ISA loadfile="b1.t4" options="addcard b1isa $ISDN_IO $ISDN_IRQ";; 103) modules="avm_cs" # AVM B1-PCMCIA loadfile="b1.t4";; 104) modules="fcdsl" # AVM DSL loadfile="$kernel_major/fdslbase.bin";; 105) modules="fcpci";; # AVM PCI 106) modules="fcpnp";; # AVM PNP 107) modules="fcclassic" # AVM CLASSIC options="addcard fcclassic $ISDN_IO $ISDN_IRQ";; 108) modules="fcdsl2" # AVM DSLv2 loadfile="$kernel_major/fds2base.bin";; 109) modules="fcusb2" # AVM USBv2 if [ "`grep "Vendor=057c" /proc/bus/usb/devices|grep "ProdID=1000"`" = "" ] then loadfile="$kernel_major/fus3base.frm" else loadfile="$kernel_major/fus2base.frm" fi;; 110) modules="fcdslusb" # AVM DSL USB loadfile="$kernel_major/fdsubase.frm";; 111) modules="fcusb";; # AVM USB 112) modules="fxusb";; # AVM X USB 113) modules="fcdslusb2" # AVM DSL USBv2 loadfile="$kernel_major/fds2base.frm";; 15[0-9]) if [ -f /etc/rc.d/hstsaphir-helper ] then . /etc/rc.d/hstsaphir-helper fi;; # HST Saphir Cards esac for i in $modules do do_modprobe $i done if [ "$options" ] then sleep 2; /sbin/avmcapictrl $options; sleep 2 fi if [ "$loadfile" ] then sleep 2; /sbin/avmcapictrl load /usr/lib/isdn/$loadfile; sleep 2 fi ;; 3[0-9][0-9]) # 300-399 misdn drivers modules= options="debug=1" loadfile= load_capi do_modprobe misdn_dsp case $ISDN_TYPE in 301) modules="hfcmulti";; # PCI HFC E1, 4S, 8S 302) modules="hfcpci";; # PCI HFC-PCI 303) modules="hfcsusb";; # USB HFCS-USB 304) modules="avmfritz";; # PCI AVM Fritz!Card 305) modules="misdninfineon";; # PCI Infineon-Chip-Based 306) modules="netjet";; # PCI NetJet TJ300/320 307) modules="speedfax";; # PCI Sedlbauer Speedfax+ 308) modules="w6692";; # PCI Winbond 6692 esac for i in $modules do do_modprobe $i $options done ;; *) # HISAX ... options= add_option "$ISDN_IO" io add_option "$ISDN_IO0" io0 add_option "$ISDN_IO1" io1 add_option "$ISDN_MEM" mem add_option "$ISDN_IRQ" irq case "$ISDN_TYPE" in [89][0-9]) ;; # sub drivers *) add_option "$ISDN_TYPE" type esac prefix=hisax_ case "$ISDN_TYPE" in 1) family=16_0;; # Teles 16.0 2) family=16_0;; # Teles 8.0 3) family=16_3;; # Teles 16.3 (non PnP) 4) family=16_3;; # Creatix/Teles PnP 5) family=avm_a1;; # AVM A1 (Fritz) 6) family=elsa;; # ELSA PCC/PCF cards 7) family=elsa;; # ELSA Quickstep 1000 8) family=16_3;; # Teles 16.3 PCMCIA 9) family=ix1micror2;; # ITK ix1-micro Rev.2 10) family=elsa;; # ELSA PCMCIA 11) family=diehldiva;; # Eicon.Diehl Diva ISA PnP / Diva PCI 12) family=asuscom;; # ASUS COM ISDNLink 13) family=teleint;; # TeleInt 14) family=hfcs;; # HFC-2BS0 based cards: Teles 16.3c PnP 15) family=sedlbauer;; # Sedlbauer PC/104 / Speed Card / Speed PCI 16) family=sportster;; # USR Sportster internal 17) family=mic;; # MIC card 18) family=elsa;; # ELSA Quickstep 1000PCI 19) family=16_3;; # Compaq ISDN S0 ISA card 20) family=netjet;; # NETjet PCI card 21) family=telespci;; # Teles PCI 22) family=sedlbauer;; # Sedlbauer Speed Star (PCMCIA) 24) family=niccy;; # Dr. Neuhaus Niccy PCI / Niccy PnP 25) family=s0box;; # Teles S0Box 26) family=avm_a1_pcmcia;; # AVM A1 PCMCIA (Fritz!) 27) family=fritzpci;; # AVM PCI (Fritz!PCI) / PnP (Fritz!PnP) 28) family=sedlbauer;; # Sedlbauer Speed Fax+ 29) family=isurf;; # Siemens I-Surf 1.0 30) family=hfcs;; # ACER P10 31) family=hstsaphir;; # HST Saphir 32) family=bkm_a4t;; # Telekom A4T 33) family=sct_quadro;; # Scitel Quadro 34) family=gazel;; # Gazel ISDN cards (ISA) / (PCI) 35) family=hfc_pci;; # HFC 2BDS0 PCI 36) family=w6692;; # W6692 based PCI cards 37) family=hfc_sx;; # HFC 2BDS0 S+, SP 38) family=netjet_u;; # NETspider U PCI card 39) family=hfc_sx;; # HFC 2BDS0 SP/PCMCIA 41) family=enternow_pci;; # Formula-n enter:now PCI 81) family=st5481;; # BeWan Gazel 128 USB 82) family=hfc_usb ; prefix= ;; # HFC USB based adapters 83) family=hfc4s8s_l1 ; prefix= ;; # HFC-4s/8s based cards 84) family=fcpcipnp;; # AVM Fritz!Card PCI/PCIv2/PnP esac do_modprobe ${prefix}${family} $options # Extra Support for teles_cs ISDN Card case "$ISDN_TYPE" in 4) if [ "$OPT_PCMCIA" = "yes" ]; then do_modprobe teles_cs fi ;; esac /sbin/hisaxctrl HiSax 1 $ISDN_DEBUG_LEVEL # debug-level 31 case $ISDN_TYPE in 28|29) hisaxctrl HiSax 9 /usr/lib/isdn/isar.bin # Sedlbauer Fax+, Siemens-Surf ;; esac #/sbin/hisaxctrl HiSax 1 0x3ff # full debugging ;; esac # Global isdn parameters: log isdnctrl verbose $ISDN_VERBOSE_LEVEL end_script ;; *) ISDN_TYPE='' ISDN_CIRCUIT_N='0' ;; esac