home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / docs / kernel-2.0 / networki / z8530drv.txt < prev   
Encoding:
Text File  |  1996-07-11  |  23.0 KB  |  792 lines

  1. This is a subset of the documentation. To use this driver you MUST have the
  2. full package from:
  3.  
  4. Internet:
  5. =========
  6.  
  7. ftp.ucsd.edu:/hamradio/packet/tcpip/incoming/z8530drv-2.0.dl1bke.real.tar.gz
  8.  
  9. [
  10.   if you can't find it there, try:
  11.   .../tcpip/linux/z8530drv-2.0.dl1bke.tar.gz
  12.  
  13. ]
  14.  
  15. and various mirrors (i.e. nic.switch.ch)
  16.  
  17. ---------------------------------------------------------------------------
  18.  
  19.  
  20.      SCC.C - Linux driver for Z8530 based HDLC cards for AX.25      
  21.  
  22.    ********************************************************************
  23.  
  24.         (c) 1993,1995 by Joerg Reuter DL1BKE
  25.  
  26.         portions (c) 1993 Guido ten Dolle PE1NNZ
  27.  
  28.         for the complete copyright notice see >> Copying.Z8530DRV <<
  29.  
  30.    ******************************************************************** 
  31.  
  32.  
  33. 1. Initialization of the driver
  34. ===============================
  35.  
  36. To use the driver, 3 steps must be performed:
  37.  
  38.      1. if compiled as module: loading the module
  39.      2. Setup of hardware, MODEM and KISS parameters with sccinit
  40.      3. Attachment of each channel in the packet software
  41.  
  42.  
  43. 1.1 Loading the module
  44. ======================
  45.  
  46. (If you're going to compile the driver as a part of the kernel image,
  47.  skip this chapter and continue with 1.2)
  48.  
  49. Before you can use a module, you'll have to load it with
  50.  
  51.     insmod scc.o
  52.  
  53. please read 'man insmod' that comes with modutils.
  54.  
  55. You should include the insmod in one of the /etc/rc.d/rc.* files,
  56. and don't forget to insert a call of sccinit after that. It
  57. will read  your
  58.  
  59.  
  60. 1.2. /etc/z8530drv.rc
  61. =====================
  62.  
  63. To setup all parameters you must run /sbin/sccinit from one
  64. of your rc.*-files. This has to be done BEFORE the start of
  65. NET or axattach. Sccinit reads the file /etc/z8530drv.rc
  66. and sets the hardware, MODEM and KISS parameters. A sample file is
  67. delivered with this package. Change it to your needs.
  68.  
  69. The file itself consists of two main sections.
  70.  
  71. 1.2.1 configuration of hardware parameters
  72. ==========================================
  73.  
  74. The hardware setup section defines the following parameters for each
  75. Z8530:
  76.  
  77. chip    1
  78. data_a  0x300                   # data port A
  79. ctrl_a  0x304                   # control port A
  80. data_b  0x301                   # data port B
  81. ctrl_b  0x305                   # control port B
  82. irq     5                       # IRQ No. 5
  83. pclock  4915200                 # clock
  84. board   BAYCOM                  # hardware type
  85. escc    no                      # enhanced SCC chip? (8580/85180/85280)
  86. vector  0                       # latch for interrupt vector
  87. special no                      # address of special function register
  88. option  0                       # option to set via sfr
  89.  
  90.  
  91. chip    - this is just a delimiter to make sccinit a bit simpler to
  92.       program. A parameter has no effect.
  93.  
  94. data_a  - the address of the data port A of this Z8530 (needed)
  95. ctrl_a  - the address of the control port A (needed)
  96. data_b  - the address of the data port B (needed)
  97. ctrl_b  - the address of the control port B (needed)
  98.  
  99. irq     - the used IRQ for this chip. Different chips can use different
  100.           IRQs or the same. If they share an interrupt, it needs to be
  101.       specified within one chip-definition only.
  102.  
  103. pclock  - the clock at the PCLK pin of the Z8530 (option, 4915200 is
  104.           default), measured in Hertz
  105.  
  106. board   - the "type" of the board:
  107.  
  108.        SCC type                 value
  109.        ---------------------------------
  110.        PA0HZP SCC card          PA0HZP
  111.        EAGLE card               EAGLE
  112.        PC100 card               PC100
  113.        PRIMUS-PC (DG9BL) card   PRIMUS
  114.        BayCom (U)SCC card       BAYCOM
  115.  
  116. escc    - if you want support for ESCC chips (8580, 85180, 85280), set
  117.           this to "yes" (option, defaults to "no")
  118.  
  119. vector  - address of the vector latch (aka "intack port") for PA0HZP
  120.           cards. There can be only one vector latch for all chips!
  121.       (option, defaults to 0)
  122.  
  123. special - address of the special function register on several cards.
  124.           (option, defaults to 0)
  125.  
  126. option  - The value you write into that register (option, default is 0)
  127.  
  128. You can specify up to four chips (8 channels). If this is not enough,
  129. just change
  130.  
  131.     #define MAXSCC 4
  132.  
  133. to a higher value.
  134.  
  135. Example for the BayCom USCC:
  136. ----------------------------
  137.  
  138. chip    1
  139. data_a  0x300                   # data port A
  140. ctrl_a  0x304                   # control port A
  141. data_b  0x301                   # data port B
  142. ctrl_b  0x305                   # control port B
  143. irq     5                       # IRQ No. 5 (#)
  144. board   BAYCOM                  # hardware type (*)
  145. #
  146. # SCC chip 2
  147. #
  148. chip    2
  149. data_a  0x302
  150. ctrl_a  0x306
  151. data_b  0x303
  152. ctrl_b  0x307
  153. board   BAYCOM
  154.  
  155. An example for a PA0HZP card:
  156. -----------------------------
  157.  
  158. chip 1
  159. data_a 0x153
  160. data_b 0x151
  161. ctrl_a 0x152
  162. ctrl_b 0x150
  163. irq 9
  164. pclock 4915200
  165. board PA0HZP
  166. vector 0x168
  167. escc no
  168. #
  169. #
  170. #
  171. chip 2
  172. data_a 0x157
  173. data_b 0x155
  174. ctrl_a 0x156
  175. ctrl_b 0x154
  176. irq 9
  177. pclock 4915200
  178. board PA0HZP
  179. vector 0x168
  180. escc no
  181.  
  182. A DRSI would should probably work with this:
  183. --------------------------------------------
  184. (actually: two DRSI cards...)
  185.  
  186. chip 1
  187. data_a 0x303
  188. data_b 0x301
  189. ctrl_a 0x302
  190. ctrl_b 0x300
  191. irq 7
  192. pclock 4915200
  193. board DRSI
  194. escc no
  195. #
  196. #
  197. #
  198. chip 2
  199. data_a 0x313
  200. data_b 0x311
  201. ctrl_a 0x312
  202. ctrl_b 0x310
  203. irq 7
  204. pclock 4915200
  205. board DRSI
  206. escc no
  207.  
  208. Note that you cannot use the on-board baudrate generator off DRSI
  209. cards. Use "mode dpll" for clock source (see below).
  210.  
  211. This is based on information provided by Mike Bilow (and verified
  212. by Paul Helay)
  213.  
  214. The utility "gencfg"
  215. --------------------
  216.  
  217. If you only know the parameters for the PE1CHL driver for DOS,
  218. run gencfg. It will generate the correct port addresses (I hope).
  219. Its parameters are exactly the same as the ones you use with
  220. the "attach scc" command in net, except that the string "init" must 
  221. not appear. Example:
  222.  
  223. gencfg 2 0x150 4 2 0 1 0x168 9 4915200 
  224.  
  225. will print a skeleton z8530drv.rc for the OptoSCC to stdout.
  226.  
  227. gencfg 2 0x300 2 4 5 -4 0 7 4915200 0x10
  228.  
  229. does the same for the BayCom USCC card. I my opinion it is much easier
  230. to edit scc_config.h... 
  231.  
  232.  
  233. 1.2.2 channel configuration
  234. ===========================
  235.  
  236. The channel definition is divided into three sub sections for each
  237. channel:
  238.  
  239. An example for /dev/scc0:
  240.  
  241. # DEVICE
  242.  
  243. device /dev/scc0    # the device for the following params
  244.  
  245. # MODEM / BUFFERS
  246.  
  247. speed 1200        # the default baudrate
  248. clock dpll        # clock source: 
  249.             #     dpll     = normal halfduplex operation
  250.             #     external = MODEM provides own Rx/Tx clock
  251.             #    divider  = use fullduplex divider if
  252.             #           installed (1)
  253. mode nrzi        # HDLC encoding mode
  254.             #    nrzi = 1k2 MODEM, G3RUH 9k6 MODEM
  255.             #    nrz  = DF9IC 9k6 MODEM
  256.             #
  257. rxbuffers 8        # number of rx buffers allocated
  258.             #         (option, default is 4)
  259. txbuffers 16        # number of tx buffers allocated
  260.             #        (option, default is 16)
  261. bufsize    384        # size of buffers. Note that this must include
  262.             # the AX.25 header, not only the data field!
  263.             # (optional, defaults to 384)
  264.  
  265. # KISS (Layer 1)
  266.  
  267. txdelay 36              # (see chapter 1.4)
  268. persist 64
  269. slot    8
  270. tail    8
  271. fulldup 0
  272. wait    12
  273. min     3
  274. maxkey  7
  275. idle    3
  276. maxdef  120
  277. group   0
  278. txoff   off
  279. softdcd on                   
  280. slip    off
  281.  
  282. The order WITHIN these sections is unimportant. The order OF these
  283. sections IS important. The MODEM parameters are set with the first
  284. recognized KISS parameter...
  285.  
  286. Please note that you can initialize the board only once after boot. 
  287. You can change all parameters but "mode" and "clock" later with the
  288. Sccparam program or through KISS. Just to avoid security holes... 
  289.  
  290. (1) this divider is usually mounted on the SCC-PBC (PA0HZP) or not
  291.     present at all (BayCom). It feeds back the output of the DPLL 
  292.     (digital pll) as transmit clock. Using this mode without a divider 
  293.     installed will normally result in keying the transceiver until 
  294.     maxkey expires --- of course without sending anything (useful).
  295.  
  296.  
  297. 2. Attachment of a channel by your AX.25 software
  298. =================================================
  299.  
  300. 2.1 KA9Q NOS derivates
  301. ======================
  302.  
  303. When the linux has startup, the SCC driver has been initialized,
  304. you can attach the channels in your packet software. This is done
  305. by open the scc devices by using the attach asy command.
  306. The SCC-drivers emulates the scc devices as serial asy ports,
  307. this means e.g. that the baudrate can be set in the attach command.
  308.  
  309.  
  310. Example Wampes:
  311.  
  312. #############################################################################################
  313. # Wampes device attach
  314. # NOTE: Interfacename and the device must be the same!!
  315. # Usage: attach asy 0 0 slip|vjslip|ax25ui|ax25i|nrs|kissui <label> 0 <mtu> <speed> [ip_addr]
  316. #
  317. attach asy 0 0 kissi  scc0 256 256 1200   # Attach SCC channel 1 in 1200 baud
  318. attach asy 0 0 kissi  scc1 256 256 1200   # Attach SCC channel 2 in 1200 baud
  319. attach asy 0 0 kissui scc2 256 256 38400  # Attach SCC channel 3 in 38400 baud
  320. attach asy 0 0 kissui scc3 256 256 9600   # Attach SCC channel 4 in 9600 baud
  321. #              ^^^^
  322. #              for WAMPES 921229 use here: ax25
  323. #
  324.  
  325. Example JNOS:
  326.  
  327. ############################################
  328. # JNOS device attach
  329. #
  330. attach asy scc0 0 ax25 scc0 256 256 1200
  331. attach asy scc1 0 ax25 scc1 256 256 1200
  332. attach asy scc2 0 ax25 scc2 256 256 300
  333. attach asy scc3 0 ax25 scc3 256 256 4800
  334. #
  335. #
  336.  
  337.  
  338. It allows AX.25 communication without a TNC.  Only a MODEM is
  339. needed. The parameters have the same meaning as in KISS mode.
  340. In fact, the AX.25 mode is emulating an extended KISS TNC, so
  341. the same commands can be used to set the parameters of the
  342. interface (see below).
  343.  
  344. To be able to run fullduplex using an SCC in AX.25 mode, an 
  345. external divider must be available, that divides the baudrate 
  346. generator clock available on the TRxC pin by 32, and puts the 
  347. resulting signal on the RTxC pint of the same channel of the SCC.  
  348. Such a divider is not necessary for normal CSMA packet radio 
  349. operation, but interrupt overhead is slightly reduced if you 
  350. still install it.  
  351.  
  352. 2.2 Kernel AX.25
  353. ================
  354.  
  355. Well, as said before: The driver emulates a KISS TNC, so you
  356. can simply run
  357.  
  358.     axattach -s 1200 /dev/scc0 DL1BKE
  359.  
  360. to establish the link between kernel AX.25 and z8530drv.
  361.  
  362.  
  363. 3. Adjustment and Display of parameters
  364. =======================================
  365.  
  366. 3.1 Displaying SCC Parameters:
  367. ==============================
  368.  
  369. Once a SCC channel has been attached, the parameter settings and 
  370. some statistic information can be shown using the param program:
  371.  
  372. dl1bke-u:~$ sccstat /dev/scc0
  373.  
  374. Parameters:
  375.  
  376. speed       : 1200 baud
  377. txdelay     : 36
  378. persist     : 255
  379. slottime    : 0
  380. txtail      : 8
  381. fulldup     : 1
  382. waittime    : 12
  383. mintime     : 3 sec
  384. maxkeyup    : 7 sec
  385. idletime    : 3 sec
  386. maxdefer    : 120 sec
  387. group       : 0x00
  388. txoff       : off
  389. softdcd     : on
  390. SLIP        : off
  391.  
  392. Status:
  393.  
  394. HDLC                  Z8530           Interrupts         Queues
  395. -----------------------------------------------------------------------
  396. Sent       :     273  RxOver :     0  RxInts :   125074  RxQueue :    0
  397. Received   :    1095  TxUnder:     0  TxInts :     4684  TxQueue :    0
  398. RxErrors   :    1591                  ExInts :    11776  NoSpace :    0
  399. KissErrors :       0                  SpInts :     1503
  400. Tx State   :    idle
  401.  
  402. Memory allocated:
  403.  
  404. Buffer size:     384
  405. rx buffers :       4
  406. tx buffers :       8
  407.  
  408.  
  409. The status info shown is:
  410.  
  411. Sent        - number of frames transmitted
  412. Received    - number of frames received
  413. RxErrors    - number of receive errors (CRC, ABORT)
  414. KissErrors    - number of KISS errors (should be zero...)
  415. Tx State    - status of the Tx interrupt handler: idle/busy/active/tail (2)
  416. RxOver        - number of receiver overruns
  417. TxUnder        - number of transmitter underruns     
  418. RxInts        - number of receiver interrupts
  419. TxInts        - number of transmitter interrupts
  420. EpInts        - number of receiver special condition interrupts
  421. SpInts        - number of external/status interrupts
  422. RxQueue        - number of received packets enqueued for this channel
  423. TxQueue        - number of packets enqueued for Tx
  424. NoSpace        - number of times the receiver buffer pool was found empty
  425.  
  426.  
  427. An overrun is abnormal. If lots of these occur, the product of
  428. baudrate and number of interfaces is too high for the processing
  429. power of you computer. If "Space" errors occur, specify a higher
  430. number of buffers in the "scc.h" file.
  431.  
  432.  
  433. 3.2 Setting Parameters
  434. ======================
  435.  
  436.  
  437. The setting of parameters of the emulated KISS TNC is done in the 
  438. same way in the SCC driver. You can change parameters by using
  439. the command param in NET or NOS
  440.  
  441.      param <iface> <paramname> <value>
  442.  
  443. or use the program "sccparam":
  444.  
  445.      sccparam <device> <paramname> <decimal-|hexadecimal value>
  446.  
  447. You can change the following parameters:
  448.  
  449. param        : value
  450. ------------------------
  451. speed       : 1200
  452. txdelay     : 36
  453. persist     : 255
  454. slottime    : 0
  455. txtail      : 8
  456. fulldup     : 1
  457. waittime    : 12
  458. mintime     : 3
  459. maxkeyup    : 7
  460. idletime    : 3
  461. maxdefer    : 120
  462. group       : 0x00
  463. txoff       : off
  464. softdcd     : on
  465. SLIP        : off
  466.  
  467.  
  468. The parameters have the following meaning:
  469.  
  470. speed:
  471.      The baudrate on this channel in bits/sec
  472.  
  473.      Example: sccparam /dev/scc3 speed 9600
  474.  
  475. txdelay:
  476.      The delay (in units of 10ms) after keying of the 
  477.      transmitter, until the first byte is sent. This is usually 
  478.      called "TXDELAY" in a TNC.  When 0 is specified, the driver 
  479.      will just wait until the CTS signal is asserted. This 
  480.      assumes the presence of a timer or other circuitry in the 
  481.      MODEM and/or transmitter, that asserts CTS when the 
  482.      transmitter is ready for data.
  483.      A normal value of this parameter is 30-36.
  484.  
  485.      Example: sccparam /dev/scc0 txd 20
  486.  
  487. persist:
  488.      This is the probability that the transmitter will be keyed 
  489.      when the channel is found to be free.  It is a value from 0 
  490.      to 255, and the probability is (value+1)/256.  The value 
  491.      should be somewhere near 50-60, and should be lowered when 
  492.      the channel is used more heavily.
  493.  
  494.      Example: sccparam /dev/scc2 persist 20
  495.  
  496. slottime:
  497.      This is the time between samples of the channel. It is 
  498.      expressed in units of 10ms.  About 200-300 ms (value 20-30) 
  499.      seems to be a good value.
  500.  
  501.      Example: sccparam /dev/scc0 slot 20
  502.  
  503. tail:
  504.      The time the transmitter will remain keyed after the last 
  505.      byte of a packet has been transferred to the SCC. This is 
  506.      necessary because the CRC and a flag still have to leave the 
  507.      SCC before the transmitter is keyed down. The value depends 
  508.      on the baudrate selected.  A few character times should be 
  509.      sufficient, e.g. 40ms at 1200 baud. (value 4)
  510.      The value of this parameter is in 10ms units.
  511.  
  512.      Example: sccparam /dev/scc2 4
  513.  
  514. full:
  515.      The full-duplex mode switch. This can be one of the following 
  516.      values:
  517.  
  518.      0:   The interface will operate in CSMA mode (the normal 
  519.           half-duplex packet radio operation)
  520.      1:   Fullduplex mode, i.e. the transmitter will be keyed at 
  521.           any time, without checking the received carrier.  It 
  522.           will be unkeyed when there are no packets to be sent.
  523.      2:   Like 1, but the transmitter will remain keyed, also 
  524.           when there are no packets to be sent.  Flags will be 
  525.           sent in that case, until a timeout (parameter 10) 
  526.           occurs.
  527.  
  528.      Example: sccparam /dev/scc0 fulldup off
  529.  
  530. wait:
  531.      The initial waittime before any transmit attempt, after the 
  532.      frame has been queue for transmit.  This is the length of 
  533.      the first slot in CSMA mode.  In fullduplex modes it is
  534.      set to 0 for maximum performance.
  535.      The value of this parameter is in 10ms units. 
  536.  
  537.      Example: sccparam /dev/scc1 wait 4
  538.  
  539. maxkey:
  540.      The maximal time the transmitter will be keyed to send 
  541.      packets, in seconds.  This can be useful on busy CSMA 
  542.      channels, to avoid "getting a bad reputation" when you are 
  543.      generating a lot of traffic.  After the specified time has 
  544.      elapsed, no new frame will be started. Instead, the trans-
  545.      mitter will be switched off for a specified time (parameter 
  546.      min), and then the selected algorithm for keyup will be 
  547.      started again.
  548.      The value 0 as well as "off" will disable this feature, 
  549.      and allow infinite transmission time. 
  550.  
  551.      Example: sccparam /dev/scc0 maxk 20
  552.  
  553. min:
  554.      This is the time the transmitter will be switched off when 
  555.      the maximum transmission time is exceeded.
  556.  
  557.      Example: sccparam /dev/scc3 min 10
  558.  
  559. idle
  560.      This parameter specifies the maximum idle time in fullduplex 
  561.      2 mode, in seconds.  When no frames have been sent for this 
  562.      time, the transmitter will be keyed down.  A value of 0 is
  563.      has same result as the fullduplex mode 1. This parameter
  564.      can be disabled.
  565.  
  566.      Example: sccparam /dev/scc2 idle off    # transmit forever
  567.  
  568. maxdefer
  569.      This is the maximum time (in seconds) to wait for a free channel
  570.      to send. When this timer expires the transmitter will be keyed 
  571.      IMMEDIATELY. If you love to get trouble with other users you
  572.      should set this to a very low value ;-)
  573.  
  574.      Example: sccparam /dev/scc0 maxdefer 240    # 2 minutes
  575.  
  576.  
  577. txoff:
  578.      When this parameter has the value 0, the transmission of packets
  579.      is enable. Otherwise it is disabled.
  580.  
  581.      Example: sccparam /dev/scc2 txoff on
  582.  
  583. group:
  584.      It is possible to build special radio equipment to use more than 
  585.      one frequency on the same bad, e.g. using several receivers and 
  586.      only one transmitter that can be switched between frequencies.
  587.      Also, you can connect several radios that are active on the same 
  588.      band.  In these cases, it is not possible, or not a good idea, to 
  589.      transmit on more than one frequency.  The SCC driver provides a 
  590.      method to lock transmitters on different interfaces, using the 
  591.      "param <interface> group <x>" command.  This will only work when 
  592.      you are using CSMA mode (parameter full = 0).
  593.      The number <x> must be 0 if you want no group restrictions, and 
  594.      can be computed as follows to create restricted groups:
  595.      <x> is the sum of some OCTAL numbers:
  596.  
  597.      200  This transmitter will only be keyed when all other 
  598.           transmitters in the group are off.
  599.      100  This transmitter will only be keyed when the carrier 
  600.           detect of all other interfaces in the group is off.
  601.      0xx  A byte that can be used to define different groups.  
  602.           Interfaces are in the same group, when the logical AND 
  603.           between their xx values is nonzero.
  604.  
  605.      Examples:
  606.      When 2 interfaces use group 201, their transmitters will never be 
  607.      keyed at the same time.
  608.      When 2 interfaces use group 101, the transmitters will only key 
  609.      when both channels are clear at the same time.  When group 301, 
  610.      the transmitters will not be keyed at the same time.
  611.  
  612.      Don't forget to convert the octal numbers into decimal before
  613.      you set the parameter.
  614.  
  615.      Example: (to be written)
  616.  
  617. softdcd:
  618.      use a software dcd instead of the real one... Useful for a very
  619.      slow squelch.
  620.  
  621.      Example: sccparam /dev/scc0 soft on
  622.  
  623.  
  624. slip:
  625.      use slip encoding instead of kiss
  626.  
  627.      Example: sccparam /dev/scc1 slip on
  628.  
  629.  
  630.  
  631. 4. Problems 
  632. ===========
  633.  
  634. If you have tx-problems with your BayCom USCC card please check
  635. the manufacturer of the 8530. SGS chips have a slightly
  636. different timing. Try Zilog... I have no information if this
  637. driver works with baudrates higher than 1200 baud. A solution is
  638. to write to register 8 instead to the data port, but this won't
  639. work with the ESCC chips *SIGH!*
  640.  
  641. I got reports that the driver has problems on some 386-based systems.
  642. (i.e. Amstrad) Those systems have a bogus AT bus timing which will
  643. lead to delayed answers on interrupts. You can recognize these
  644. problems by looking at the output of Sccstat for the suspected
  645. port. See if it shows under- and overruns you own such a system.
  646. Perhaps it will help if you simplify the scc_isr() function a bit.
  647. You'll find a slightly faster version in the files scc_isr_intack
  648. or scc_isr_novec.
  649.  
  650.  
  651. Delayed processing of received data: This depends on
  652.  
  653. - the kernel version
  654.  
  655. - kernel profiling compiled or not
  656.  
  657. - the rather slow receiver in tty_io.c
  658.  
  659. - a high interrupt load
  660.  
  661. - a high load of the machine --- running X, Xmorph, XV and Povray,
  662.   while compiling the kernel... hmm ... even with 32 MB RAM ...  ;-)
  663.  
  664. - NET's speed itself.
  665.  
  666.  
  667. Kernel panics: please read to /linux/README and find out if it
  668. really occurred within the scc driver.
  669.  
  670. If you can't solve a problem, send me
  671.  
  672. - a description of the problem,
  673. - information on your hardware (computer system, scc board, modem)
  674. - your kernel version
  675. - the output of sccstat /dev/scc# ("#" is the No. of the channel)
  676. - the settings of "speed", "clock" and "mode" for that channel
  677.   in /etc/z8530drv.rc
  678. - your scc_config.h
  679.  
  680.  
  681. And always remember: 
  682. The 1.1.* kernel series is for alpha tests -- use at your own risk ;-)
  683. The 1.2.* series should run reliable. This driver perhaps NOT!
  684. The 1.3.* kernel series is for alpha tests again... you get the idea!
  685.  
  686.  
  687. 3. DRSI Boards
  688. ==============
  689.  
  690. I still can't test the DRSI board, but this configuration derived from
  691. the PE1CHL SCC driver configuration should work:
  692.  
  693. An example of scc_config.h for 
  694.  
  695. One DRSI board installed:
  696. =========================
  697.  
  698. /* gencfg 1 0x300 0x10 2 0 1 0 7 4915200 */
  699.  
  700. /* file generated by $Id: gencfg.c,v 1.2 1994/11/29 21:42:24 JReuter Exp JReuter $ */
  701.  
  702. #include <linux/scc.h>
  703.  
  704. int     Nchips         = 1;
  705. io_port Vector_Latch = 0x0;
  706. int     Ivec         = 7;
  707. long    Clock         = 4915200;
  708. char    Board         = PA0HZP;
  709. int    Option         = 0;
  710. io_port Special_Port = 0x0;
  711.  
  712. io_port SCC_ctrl[MAXSCC * 2] =
  713. {0x302, 0x300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
  714.  
  715. io_port SCC_data[MAXSCC * 2] =
  716. {0x303, 0x301, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
  717.  
  718. /* set to '1' if you have and want ESCC chip (8580/85180/85280) support */
  719.  
  720. /*                          Chip    */
  721. /*                            ========       */
  722. int SCC_Enhanced[MAXSCC] =    {0,    /* ...one...    */
  723.                  0,      /* ...two...    */
  724.                  0,      /* ...three...    */
  725.                  0};    /* ...four...    */
  726.  
  727. #define VERBOSE_BOOTMSG 1
  728. #undef  SCC_DELAY        /* perhaps a 486DX2 is a *bit* too fast */
  729. #undef  SCC_LDELAY        /* slow it even a bit more down */
  730. #undef  DONT_CHECK        /* don't look if the SCCs you specified are available */
  731.  
  732.  
  733.  
  734. Two boards installed:
  735. =====================
  736.  
  737. /* file generated by $Id: gencfg.c,v 1.2 1994/11/29 21:42:24 JReuter Exp JReuter $ */
  738.  
  739. #include <linux/scc.h>
  740.  
  741. int     Nchips         = 2;
  742. io_port Vector_Latch = 0x0;
  743. int     Ivec         = 7;
  744. long    Clock         = 4915200;
  745. char    Board         = PA0HZP;
  746. int    Option         = 0;
  747. io_port Special_Port = 0x0;
  748.  
  749. io_port SCC_ctrl[MAXSCC * 2] =
  750. {0x302, 0x300, 0x312, 0x310, 0x0, 0x0, 0x0, 0x0};
  751.  
  752. io_port SCC_data[MAXSCC * 2] =
  753. {0x303, 0x301, 0x313, 0x311, 0x0, 0x0, 0x0, 0x0};
  754.  
  755. /* set to '1' if you have and want ESCC chip (8580/85180/85280) support */
  756.  
  757. /*                          Chip    */
  758. /*                            ========       */
  759. int SCC_Enhanced[MAXSCC] =    {0,    /* ...one...    */
  760.                  0,      /* ...two...    */
  761.                  0,      /* ...three...    */
  762.                  0};    /* ...four...    */
  763.  
  764. #define VERBOSE_BOOTMSG 1
  765. #undef  SCC_DELAY        /* perhaps a 486DX2 is a *bit* too fast */
  766. #undef  SCC_LDELAY        /* slow it even a bit more down */
  767. #undef  DONT_CHECK        /* don't look if the SCCs you specified are available */
  768.  
  769.  
  770. *****************
  771.  
  772. You  m u s t  use "clock dpll" in /etc/z8530drv.rc for operation, 
  773. the on-board baudrate generator is not supported.
  774.  
  775. *****************
  776. (mni tnx to Mike Bilow)
  777.  
  778.  
  779. 4. Thor RLC100
  780. ==============
  781.  
  782. Mysteriously this board seems not to work with the driver. Anyone
  783. got it up-and-running?
  784.  
  785.  
  786. Many thanks to Linus Torvalds and Alan Cox for including the driver
  787. in the Linux standard distribution and their support.
  788.  
  789. Joerg Reuter    ampr-net: dl1bke@db0pra.ampr.org
  790.         AX-25   : DL1BKE @ DB0ACH.#NRW.DEU.EU
  791.         Internet: jreuter@lykos.tng.oche.de
  792.