home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume32 / ecu / part31 < prev    next >
Encoding:
Text File  |  1992-09-13  |  57.0 KB  |  1,355 lines

  1. Newsgroups: comp.sources.misc
  2. From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  3. Subject:  v32i066:  ecu - ECU Asynchronous Communications v3.20, Part31/40
  4. Message-ID: <1992Sep14.145112.22535@sparky.imd.sterling.com>
  5. X-Md4-Signature: 599cd78cb690e2022337adb7557a5a71
  6. Date: Mon, 14 Sep 1992 14:51:12 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  10. Posting-number: Volume 32, Issue 66
  11. Archive-name: ecu/part31
  12. Environment: SCO,XENIX,ISC,SUNOS,SYSVR4,HDB,Curses
  13. Supersedes: ecu: Volume 21, Issue 53-89
  14.  
  15. ---- Cut Here and feed the following to sh ----
  16. #!/bin/sh
  17. # this is ecu320.31 (part 31 of ecu320)
  18. # do not concatenate these parts, unpack them in order with /bin/sh
  19. # file fasi/Makefile continued
  20. #
  21. if test ! -r _shar_seq_.tmp; then
  22.     echo 'Please unpack part 1 first!'
  23.     exit 1
  24. fi
  25. (read Scheck
  26.  if test "$Scheck" != 31; then
  27.     echo Please unpack part "$Scheck" next!
  28.     exit 1
  29.  else
  30.     exit 0
  31.  fi
  32. ) < _shar_seq_.tmp || exit 1
  33. if test ! -f _shar_wnt_.tmp; then
  34.     echo 'x - still skipping fasi/Makefile'
  35. else
  36. echo 'x - continuing file fasi/Makefile'
  37. sed 's/^X//' << 'SHAR_EOF' >> 'fasi/Makefile' &&
  38. X    -mkdir $(INCLLOC) >/dev/null 2>&1
  39. X    cp digi-pc8.h $(INCLLOC)/digi-pc8.h
  40. X
  41. Xclean:
  42. X    rm -f fas.o Driver.o
  43. X
  44. Xclobber: clean
  45. X
  46. SHAR_EOF
  47. echo 'File fasi/Makefile is complete' &&
  48. chmod 0644 fasi/Makefile ||
  49. echo 'restore of fasi/Makefile failed'
  50. Wc_c="`wc -c < 'fasi/Makefile'`"
  51. test 1378 -eq "$Wc_c" ||
  52.     echo 'fasi/Makefile: original size 1378, current size' "$Wc_c"
  53. rm -f _shar_wnt_.tmp
  54. fi
  55. # ============= fasi/Master ==============
  56. if test -f 'fasi/Master' -a X"$1" != X"-c"; then
  57.     echo 'x - skipping fasi/Master (File already exists)'
  58.     rm -f _shar_wnt_.tmp
  59. else
  60. > _shar_wnt_.tmp
  61. echo 'x - extracting fasi/Master (Text)'
  62. sed 's/^X//' << 'SHAR_EOF' > 'fasi/Master' &&
  63. Xfas    Iocrwi    iHct    fas    0    0    1    16    -1
  64. SHAR_EOF
  65. chmod 0644 fasi/Master ||
  66. echo 'restore of fasi/Master failed'
  67. Wc_c="`wc -c < 'fasi/Master'`"
  68. test 32 -eq "$Wc_c" ||
  69.     echo 'fasi/Master: original size 32, current size' "$Wc_c"
  70. rm -f _shar_wnt_.tmp
  71. fi
  72. # ============= fasi/Node ==============
  73. if test -f 'fasi/Node' -a X"$1" != X"-c"; then
  74.     echo 'x - skipping fasi/Node (File already exists)'
  75.     rm -f _shar_wnt_.tmp
  76. else
  77. > _shar_wnt_.tmp
  78. echo 'x - extracting fasi/Node (Text)'
  79. sed 's/^X//' << 'SHAR_EOF' > 'fasi/Node' &&
  80. Xfas    tty1a    c    80
  81. Xfas    tty1A    c    208
  82. Xfas    tty2a    c    81
  83. Xfas    tty2b    c    82
  84. Xfas    tty2c    c    83
  85. Xfas    tty2d    c    84
  86. Xfas    tty2e    c    85
  87. Xfas    tty2f    c    86
  88. Xfas    tty2g    c    87
  89. Xfas    tty2h    c    88
  90. Xfas    tty2A    c    209
  91. Xfas    tty2B    c    210
  92. Xfas    tty2C    c    211
  93. Xfas    tty2D    c    212
  94. Xfas    tty2E    c    213
  95. Xfas    tty2F    c    214
  96. Xfas    tty2G    c    215
  97. Xfas    tty2H    c    216
  98. SHAR_EOF
  99. chmod 0644 fasi/Node ||
  100. echo 'restore of fasi/Node failed'
  101. Wc_c="`wc -c < 'fasi/Node'`"
  102. test 279 -eq "$Wc_c" ||
  103.     echo 'fasi/Node: original size 279, current size' "$Wc_c"
  104. rm -f _shar_wnt_.tmp
  105. fi
  106. # ============= fasi/PATCHLEVEL ==============
  107. if test -f 'fasi/PATCHLEVEL' -a X"$1" != X"-c"; then
  108.     echo 'x - skipping fasi/PATCHLEVEL (File already exists)'
  109.     rm -f _shar_wnt_.tmp
  110. else
  111. > _shar_wnt_.tmp
  112. echo 'x - extracting fasi/PATCHLEVEL (Text)'
  113. sed 's/^X//' << 'SHAR_EOF' > 'fasi/PATCHLEVEL' &&
  114. Xrelease 2.08 patchlevel b2 fasi x1.03
  115. SHAR_EOF
  116. chmod 0644 fasi/PATCHLEVEL ||
  117. echo 'restore of fasi/PATCHLEVEL failed'
  118. Wc_c="`wc -c < 'fasi/PATCHLEVEL'`"
  119. test 38 -eq "$Wc_c" ||
  120.     echo 'fasi/PATCHLEVEL: original size 38, current size' "$Wc_c"
  121. rm -f _shar_wnt_.tmp
  122. fi
  123. # ============= fasi/README ==============
  124. if test -f 'fasi/README' -a X"$1" != X"-c"; then
  125.     echo 'x - skipping fasi/README (File already exists)'
  126.     rm -f _shar_wnt_.tmp
  127. else
  128. > _shar_wnt_.tmp
  129. echo 'x - extracting fasi/README (Text)'
  130. sed 's/^X//' << 'SHAR_EOF' > 'fasi/README' &&
  131. XThis is the original README from FAS 2.08 for reference only.
  132. XRead README.FASI. DO NOT CONTACT UWE DOERING REGARDING THIS HACKED VERSION
  133. X                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  134. X
  135. XREADME file for the FAS Final Async Solution driver
  136. X---------------------------------------------------
  137. X
  138. XWhat is this package:
  139. X
  140. X     This is an async driver for 286/386 based unix systems that adds
  141. X     several features that are not supported by vendors drivers.
  142. X     It supports
  143. X
  144. X        1.  the NS16550A and i82510 UART chips in full FIFO mode.
  145. X        2.  modem sharing for input and output.
  146. X        3.  shared interrupts.
  147. X        4.  multiplexed UART registers (HUB-6 card etc.).
  148. X        5.  full and half duplex hardware flow control.
  149. X        6.  VP/ix, the ISC DOS emulator.
  150. X
  151. X
  152. X     FAS was successfully tested under the following operating systems:
  153. X
  154. X     Microport UNIX SYSV 3.0
  155. X     ISC 386/ix 2.0.2 & 2.2
  156. X     ESIX Rev. C & D
  157. X     Bell Tech/Intel UNIX 3.2
  158. X     SCO UNIX 386
  159. X     SCO XENIX 386 2.3.2
  160. X     SCO XENIX 286 2.3.2
  161. X
  162. X     This driver should work with most of the UNIX SYS V/386 3.X ports
  163. X     currently available. You can have both this and the original
  164. X     vendor driver in the same kernel (if you really like to, but I
  165. X     wouldn't know why). Each driver controls its own separate set of
  166. X     serial ports. The only restriction here is that any int vector must
  167. X     not be used by more than one of the drivers. The kernel config
  168. X     program will complain otherwise.
  169. X
  170. X------------------------------------------------------------------------
  171. X     
  172. XHow it works:
  173. X
  174. X     DIALIN/DIALOUT ON THE SAME PORT
  175. X     -------------------------------
  176. X
  177. X     This driver supports shared line usage by having two logical
  178. X     devices sharing one physical line. Each logical device has its
  179. X     own name. For example for the first line the names are ttyF00
  180. X     (minor device 0) and ttyFM00 (minor device 192). The ttyF00
  181. X     is used for cu, kermit, and other programs that want to dial
  182. X     out. It ignores the modem signals and just goes to it. The
  183. X     ttyFM00 line is strictly for getty. When getty calls open on
  184. X     ttyFM00 the driver hangs the open until the modem asserts the
  185. X     carrier detect signal and then lets the open complete. If cu
  186. X     opens ttyF00 while getty is waiting for the open to complete
  187. X     the device is given to cu and the getty open must wait for cu
  188. X     to finish and then will again wait for the carrier. If cu
  189. X     tries to open the ttyF00 line while getty has ttyFM00 open cu
  190. X     will get an error. If getty tries to open ttyFM00 while cu has
  191. X     ttyF00 open the getty open will just hang and wait for cu to
  192. X     close the line and then wait for the carrier. To put it simply
  193. X     you should put up a getty on ttyFM00 with a -t 60 and use ttyF00
  194. X     for cu and uucico.
  195. X
  196. X     In the example above ttyF00 had a minor device number of 0 and
  197. X     ttyFM00 one of 192. But there are several other possible minor
  198. X     device numbers for each port.
  199. X
  200. X     The higher bits of the minor device number control the operating
  201. X     mode of the device. The port can't be opened by two or more
  202. X     different minor devices at the same time.
  203. X
  204. X     Minor device numbers are built according to the following
  205. X     description:
  206. X
  207. X        Bitmap:   m m f f x x x x
  208. X
  209. X           `m m' are the mode bits as follows:
  210. X
  211. X            0 0   The carrier signal is totally ignored. With carrier high->low
  212. X                  *no* SIGHUP signal is generated. The device does *not* block
  213. X                  on open if there is no carrier.
  214. X            0 1   After an initial open, the carrier signal is ignored.
  215. X                  Although, carrier high->low generates a SIGHUP signal. From
  216. X                  thereon the device is carrier controlled until the last
  217. X                  process has closed the device. An ioctl call with a TCSETA*
  218. X                  command resets the device to ignore carrier again until the
  219. X                  next carrier high->low. The device does *not* block on open
  220. X                  if there is no carrier.
  221. X            1 0   The device is carrier controlled. It blocks on open if
  222. X                  there is no carrier.
  223. X            1 1   Same as mode `1 0', but a parallel non-blocking open
  224. X                  is possible while waiting for carrier.
  225. X
  226. X           `f f' are the hardware flow control bits as follows:
  227. X
  228. X            0 0   The RTSFLOW/CTSFLOW termio(7) flags (if available) enable
  229. X                  half duplex hardware flow control (for output direction,
  230. X                  only) according to SCO's specifications. If these flags
  231. X                  are not available no hardware flow control is used by
  232. X                  this device.
  233. X            0 1   The device uses full duplex hardware flow control (for
  234. X                  input and output direction).
  235. X            1 0   The device uses half duplex hardware flow control (for
  236. X                  output direction, only).
  237. X            1 1   Same as mode `1 0', but additionally the output buffer
  238. X                  state is signaled to the connected device.
  239. X
  240. X                  Refer to the `space.c' file to determine which port
  241. X                  signals are actually used for that purpose.
  242. X
  243. X           `x x x x'
  244. X                  This is the physical port number. This driver supports
  245. X                  up to 16 ports. If you need more, you should use an
  246. X                  intelligent serial card because more than 16 devices
  247. X                  will eat up to much CPU time with this dumb-port approach.
  248. X
  249. X     - Note: If a device is carrier controlled, this implies the generation
  250. X             of a SIGHUP signal with every carrier high->low. This is of
  251. X             course only true if the CLOCAL flag is *not* set.
  252. X
  253. X             On my own system I prefer a minor device number of `0101xxxx'
  254. X             (80 + device #) for the non-blocking tty node and `1101xxxx'
  255. X             (208 + device #) for the blocking tty node. This gives me
  256. X             the SIGHUP signal on carrier loss and full duplex hardware
  257. X             flow control with both logical devices. Dialout while a dialin
  258. X             open is waiting for the carrier is also possible with this
  259. X             setup.
  260. X
  261. X
  262. X     WHICH SERIAL CARDS ARE SUPPORTED ?
  263. X     ----------------------------------
  264. X
  265. X     The driver supports and has been tested on many serial async
  266. X     dumb port cards. It supports most combinations of shared
  267. X     interrupts. The current driver supports NS16450, NS16550A,
  268. X     um82450 and i82510. 8250 chips are not supported due to various
  269. X     bugs and speed problems in these parts. They have no place in any
  270. X     286/386 or other high performance system. Replace them with one of
  271. X     the supported chips. They are pin-to-pin compatible.
  272. X     
  273. X     Take a look at the various samples of space-xxxx for details
  274. X     of how to set up for various devices.
  275. X
  276. X     At boot time you will see a status message on the screen with
  277. X     symbols that show the init state of each port. The symbols
  278. X     are as follows:
  279. X
  280. X        -     not defined in the fas_port array
  281. X        >     int vector greater than limit
  282. X        ?     can't initialize port
  283. X        1-6   error during test phase indicated by number
  284. X        *     port is initialized (NS16450)
  285. X        +     port is initialized and has FIFOs forced off
  286. X        f     port is initialized and has FIFOs (i82510)
  287. X        F     port is initialized and has FIFOs (NS16550)
  288. X
  289. X     This is convenient to check whether you have entered the proper port
  290. X     base addresses in `space.c'.
  291. X
  292. X
  293. X     WHICH CARD WILL SUPPORT SHARED INTERRUPTS ?
  294. X     -------------------------------------------
  295. X
  296. X     Many multi-port cards have jumpers or dip switches that let you
  297. X     assign more than one port to the same interrupt (IRQ) line. This alone
  298. X     is _no_ guaranty that they really support shared interrupts! These
  299. X     cards may be designed for the DOS world where you may want two or more
  300. X     serial ports but don't need to run them concurrently, that is, no more
  301. X     than one of those ports assigned to the same IRQ line is allowed to be
  302. X     in use at a time. For DOS this is sufficient as DOS is no multitasking
  303. X     operating system. For UNIX this won't work because in the worst case
  304. X     all serial ports may be in use at the same time.
  305. X
  306. X     The basic problem is that the PC (and AT) I/O bus can't handle shared
  307. X     interrupts itself. This is due to a brain-dead hardware design. Therefor,
  308. X     there must be some special logic on the serial card to provide shared
  309. X     interrupts. And those cards are quite rare (and usually more expensive).
  310. X
  311. X     Therefor, you have the choice to give every port on the card its own
  312. X     IRQ line or to buy a multi-port card that really has shared interrupts.
  313. X     But in the latter case you better ask your vendor twice to make shure
  314. X     that it has this functionality because from the card's manuals it often
  315. X     isn't obvious which type of card it is. One well-known shared interrupts
  316. X     card is the AST 4-port card. There are many compatible clones available
  317. X     that are usually much cheaper than the original. You can even buy
  318. X     AST compatible 8-port cards where two AST 4-port blocks are on the
  319. X     same board.
  320. X
  321. X
  322. X     A WORD ABOUT CHARACTER LOSSES
  323. X     -----------------------------
  324. X
  325. X     If you've experienced character losses with your vendor async
  326. X     driver at high baud rates you shouldn't blame the vendor for
  327. X     that. The real reason for this problem lies in the ancient port
  328. X     devices used in most 286/386 systems: The 8250 (not supported by
  329. X     FAS) and the NS16450.
  330. X
  331. X     They have only one receiver character buffer. This implies that
  332. X     the operating system must read a character from this buffer before
  333. X     the next one arrives from the port's shift register. For the old
  334. X     IBM PC with DOS this was sufficient. But for UNIX and with baud
  335. X     rates up to 38400 this is simply a joke.
  336. X
  337. X     UNIX is not a real-time operating system. That means that it's
  338. X     kernel isn't optimized for fast interrupt responses. With the
  339. X     proper hardware this is no problem. But because the vendors have
  340. X     to adapt UNIX to the standard hardware found in 286/386 systems they
  341. X     also have to cope with the NS16450 ports which are in there simply
  342. X     to be compatible with IBM PCs, XTs and ATs.
  343. X
  344. X     It is impossible to make it work at high baud rates without a
  345. X     major redesign of the AT&T supplied UNIX kernel. But then it
  346. X     wouldn't be UNIX SYSV any more.
  347. X
  348. X     Luckily, there is a pin-to-pin replacement available from
  349. X     National Semiconductors: The NS16550A.
  350. X
  351. X     This device has separate 16 character FIFOs for the receiver and
  352. X     the transmitter. With these FIFOs the interrupt latency of the
  353. X     kernel can be quiet high without losing any characters.
  354. X     Additionally, because with most interrupts many characters are
  355. X     processed at once the system is loaded much less.
  356. X
  357. X     As you see, the necessary hardware is available. Therefor, if you
  358. X     have to blame the UNIX vendor then blame him for not telling you
  359. X     that you should buy some NS16550A and/or for not supplying you
  360. X     with a serial driver that supports these port devices.
  361. X
  362. X     But as you have the FAS driver now and if you use the NS16550A
  363. X     devices you shouldn't have this kind of trouble any more. This is
  364. X     the philosophy behind the driver's name `Final Async Solution'.
  365. X
  366. X     Enjoy!
  367. X
  368. X     PS: If for some reason you can't get the NS16550A chips you
  369. X         could use the i82510 chips from Intel. Although they are
  370. X         much less efficient they are still better than the NS16450.
  371. X
  372. X     PPS: Some kernel functions may disable interrupts long enough
  373. X          that even the input FIFO can't prevent character loss.
  374. X          One culprit is the disk cache flush function. If you
  375. X          configure your kernel with too many cache buffers (NBUF
  376. X          parameter for AT&T derived UNIX) you may still lose
  377. X          characters (at least at 38400 bps).
  378. X
  379. X          An other candidate is VP/ix, or rather the kernel functions
  380. X          to support VP/ix. This may also lead to lost characters
  381. X          at very high input speed.
  382. X
  383. X
  384. X     HARDWARE FLOW CONTROL
  385. X     ---------------------
  386. X
  387. X     FAS supports both full and half duplex hardware flow control, using
  388. X     the RS232C RTS/CTS control lines (by default).
  389. X
  390. X     Full duplex flow control is a method to control character flow in
  391. X     both input and output directions while in half duplex flow control
  392. X     mode only the output direction is controlled.
  393. X
  394. X     You can select between full and half duplex flow control via the
  395. X     minor device number of the device. In full duplex mode the RTS line
  396. X     controls the input direction and the CTS line is responsible for the
  397. X     output direction. In half duplex mode RTS tells the connected device
  398. X     whether there is data in the output buffer (optional), and the CTS
  399. X     line has the same function as in full duplex mode.
  400. X
  401. X     Full duplex mode:
  402. X
  403. X          As long as the FAS input buffer hasn't reached a certain
  404. X          threshold the RTS line is set high to signal the connected
  405. X          device that it may send characters. If the input buffer level
  406. X          rises beyond this threshold RTS will go low and the device
  407. X          is supposed to stop sending characters. As soon as there is
  408. X          sufficient space in the input buffer RTS will go high again
  409. X          and the character flow may continue.
  410. X
  411. X          The CTS line works the other way round. If the connected device
  412. X          sets CTS to high the FAS character output is enabled. If CTS is
  413. X          low, the output is stopped. There is a special feature for the
  414. X          CTS part of the handshake. CTS is only looked at if the DSR
  415. X          line is high. If DSR is low or not connected hardware output
  416. X          handshake is disabled, that is, FAS sends characters
  417. X          regardless of the state of CTS.
  418. X
  419. X          This has two advantages. At first, if you switch off a serial
  420. X          device connected to an FAS port with hardware flow control
  421. X          CTS will go low and therefor the output gets blocked. If at
  422. X          this time there are still characters in the output buffer the
  423. X          last process closing this port can't terminate until the
  424. X          buffer has drained.
  425. X
  426. X          But as DSR will also go low if you switch off the device
  427. X          this blocking of the output will be prevented. In short:
  428. X          Hardware output handshake is only used if the connected
  429. X          device sets DSR high, that is, the device is switched on
  430. X          and is ready. So make sure that you keep this in mind when
  431. X          you make serial cables and when you configure your serial
  432. X          devices. DSR must be on if you want CTS handshake.
  433. X
  434. X          The other advantage of this CTS/DSR mechanismn is that you
  435. X          can still connect dumb serial devices to an FAS hardware
  436. X          handshake port using a minimal 3-wire cable. As an unconnected
  437. X          DSR line is automatically low hardware output handshake is
  438. X          disabled, which is just what you wanted in this case.
  439. X
  440. X     Half duplex mode:
  441. X
  442. X          There are actually three half duplex modes selected by
  443. X          the minor device number:
  444. X
  445. X          First mode:
  446. X             If the RTSFLOW termio(7) flag is set _and_ the CLOCAL
  447. X             flag is _not_ set the RTS line is used to signal the
  448. X             connected device that there is data in the output buffer.
  449. X             As long as there is output data to come the RTS line stays
  450. X             high. If the output buffer has drained RTS drops to low
  451. X             until there is more data to be sent to the connected device.
  452. X
  453. X             If the CTSFLOW termio(7) flag is set _and_ the CLOCAL
  454. X             flag is _not_ set the CTS line used to control the output
  455. X             character flow. This works as in full duplex mode.
  456. X
  457. X          Second mode:
  458. X             This mode overrides the RTSFLOW/CTSFLOW flags and works
  459. X             as if the CTSFLOW flag is set permanently. The CLOCAL flag
  460. X             doesn't affect this mode.
  461. X
  462. X          Third mode:
  463. X             This mode overrides the RTSFLOW/CTSFLOW flags and works
  464. X             as if both the RTSFLOW and CTSFLOW flags are set permanently.
  465. X             The CLOCAL flag doesn't affect this mode.
  466. X
  467. X
  468. X     CABLING
  469. X     -------
  470. X
  471. X     Don't leave unused input lines (CTS, DCD, DSR, RING) open! Due
  472. X     to crosstalking from other lines these input lines might change
  473. X     their logic level rapidly, resulting in excessive modem status
  474. X     interrupts that could bring your machine down to its knees.
  475. X     Therefor you should connect any unused input line to GND (pin 7
  476. X     on the D-Sub 25 RS232C connector).
  477. X
  478. X     To prevent the machine from locking up in a case like described
  479. X     above the port causing the modem status interrupts will be shut
  480. X     down for 30 seconds after the last close on that port. Any attempt
  481. X     to use an open(), read(), write() or ioctl() call to this port
  482. X     during the time until the last close and then 30 seconds from
  483. X     there will result in an ENXIO error.
  484. X
  485. X     The port shutdown will be indicated on the system console by a
  486. X     warning message containing the unit number of the offending port.
  487. X
  488. X     But even if this protection mechanismn isn't triggered on your
  489. X     computer you might have this problem. This is usually indicated
  490. X     by a bad system performance during high speed serial data transfers.
  491. X     Use your system's performance measurement tools to check the
  492. X     number of modem interrupts. If it is unusual high, or even
  493. X     higher than the number of transmit/receive interrupts, you
  494. X     certainly have a problem with your cabling. Of course, another
  495. X     reason could be a bad port chip.
  496. X
  497. X     ATTENTION: If you want to connect two UNIX systems (both using
  498. X     FAS) via a null modem cable, and if you want to run a getty
  499. X     on both ends you need to modify the `space.c' file to prevent
  500. X     both gettys talking to each other, wasting valuable CPU time.
  501. X     Remove the `EI_DTR' (or `EI_RTS', depending on your setup) macro
  502. X     for the desired port from the initializer part of the `fas_modem'
  503. X     array. This will cause DTR (or RTS) to be asserted only on
  504. X     dialout. Therefor, the getty at the other end will become alive
  505. X     only if a dialout is in progress.
  506. X
  507. X
  508. X     VP/ix SUPPORT
  509. X     -------------
  510. X
  511. X     FAS allows DOS programs running under VP/ix to access serial
  512. X     ports. You simply need to modify your personal VP/ix configuration
  513. X     file (`vpix.cnf') to tell the DOS emulator which FAS devices to
  514. X     use for COM1 (or COM1MOUSE) and COM2. Note that VP/ix opens
  515. X     these devices at startup time, so you better make sure that
  516. X     the desired devices aren't used by other processes when you
  517. X     start VP/ix as VP/ix wants to use them exclusively.
  518. X
  519. X     There are some special features with the handling of the RTS and
  520. X     DTR lines you should know about. If your DOS program asserts
  521. X     the DTR line this will actually cause action on the modem
  522. X     enable line you configured in `space.c'. Likewise, RTS asserts
  523. X     the half duplex hardware handshake line configured in `space.c'.
  524. X
  525. X     If the used FAS device has full duplex hardware handshake enabled,
  526. X     asserting RTS from DOS actually stops the character flow from FAS
  527. X     to VP/ix. This prevents input buffers of interrupt driven DOS
  528. X     programs from overflowing. FAS, on the other hand, uses its hardware
  529. X     handshake to prevent an overflow of its own input buffer. Therefor
  530. X     you can use DOS telecommunication programs even at high baud rates
  531. X     without losing characters, provided your DOS programs are
  532. X     configured to use full duplex RTS/CTS flow control.
  533. X
  534. X     All this virtual handling has the advantage that the DOS program
  535. X     doesn't need to know certain details about your actual port setup.
  536. X     Reading the modem status register, on the other hand, doesn't cause
  537. X     any translation of the register value.
  538. X
  539. X     To enable VP/ix support, you have to uncomment the `HAVE_VPIX'
  540. X     define in `fas.h'.
  541. X
  542. X
  543. X     DEVICE LOCKUPS
  544. X     --------------
  545. X
  546. X     There are certain conditions under which a device can lock up,
  547. X     that is, at least one process that uses this device waits for
  548. X     a tty I/O related event that obviously doesn't occure.
  549. X
  550. X     The most common case is that there are still characters in the
  551. X     output buffer, but the output is disabled for some reason. Then
  552. X     the last process that closes the tty device hangs in the close()
  553. X     function until the output buffer has drained.
  554. X
  555. X     Tty output may be stopped by the software (XON/XOFF) or hardware
  556. X     (RTS/CTS, by default) flow control. In this case something
  557. X     seems to be wrong with the cabling or the connected device.
  558. X     Please check this first out before you blame FAS. Sometimes
  559. X     it helps to switch the device off and on a few times to unblock
  560. X     the tty output.
  561. X
  562. X     Another reason could be a lost transmitter interrupt. This usually
  563. X     indicates a hardware problem in your computer which should be fixed
  564. X     as soon as possible. Otherwise, you can't run this system unattended
  565. X     because it is too unreliable.
  566. X
  567. X     In the cases described above the last resort is entering `kill -9 <pid>'
  568. X     once or twice. This should unblock and terminate the hanging process.
  569. X
  570. X     And there is a rare case which has to do with the number of available
  571. X     CLISTs in the UNIX kernel. The CLIST output and input buffers are
  572. X     256 bytes each (by default). If for some reason the output of a
  573. X     tty device is stopped but a process continues to send data one
  574. X     character at a time this uses up one CLIST for every charcacter.
  575. X     If the number of CLISTs in the kernel is less than 256 all CLISTs
  576. X     will be busy eventually.
  577. X
  578. X     The dangerous part here is that the pool of CLISTs is used by all
  579. X     tty devices. Therefor, if one single tty device manages to eat up
  580. X     all available CLISTs all tty in- and output comes to a halt. If this
  581. X     happens you can't access your machine any more, not even from the
  582. X     operator console. Although, the system is still alive internally.
  583. X
  584. X     Unfortunately, many UNIX vendors have put a dangerously low number-of-
  585. X     CLISTs parameter into their kernel tune files. You should increase
  586. X     it to a value that makes it impossible that one device alone can
  587. X     occupy all CLISTs (it's the NCLIST parameter under AT&T derived
  588. X     UNIX SysVr3.x). A value of 400 should be sufficient.
  589. X
  590. X------------------------------------------------------------------------
  591. X
  592. XWhat's in this package:
  593. X
  594. X     README         This file.
  595. X
  596. X     INSTALLATION   A description about how to install the driver
  597. X                    on your system.
  598. X
  599. X     PATCHLEVEL     Just a reference file for future updates.
  600. X
  601. X     RELEASENOTES   Notes about the present FAS releases.
  602. X                    
  603. X     fas.h          The header file for the driver.
  604. X
  605. X     fas.c          The driver itself.
  606. X
  607. X     space-xxxxx    These are samples of what `space.c' must look
  608. X                    like.  You can either copy one of these to
  609. X                    `space.c' or use it as a template to create your
  610. X                    own `space.c'.
  611. X
  612. X          space-c1-2     For com1 and com2.
  613. X
  614. X          space-c1-3     For com1, com2 and com3.
  615. X
  616. X          space-ast4     For the AST 4-port card.
  617. X
  618. X          space-hub6     For the Bell Tech HUB-6 card.
  619. X
  620. X     config-xxxxx   This is for uPort SYS V/386 only.
  621. X                    Kernel configuaration file.  You should pick the one
  622. X                    that matches your configuration and copy it to `config'.
  623. X
  624. X          config-c1-2    For com1 and com2.
  625. X
  626. X          config-c1-3    For com1, com2 and com3.
  627. X
  628. X          config-ast4    For the AST 4-port card.
  629. X
  630. X          config-hub6    For the Bell Tech HUB-6 card.
  631. X
  632. X     s_fas-xxxxx    This is for ISC 386/ix, ESIX, Bell Tech/Intel UNIX 3.2
  633. X                    and SCO UNIX 386.
  634. X                    Kernel configuration file.  You should pick the one
  635. X                    that matches your configuration and copy it to `s_fas'.
  636. X
  637. X          s_fas-c1-2     For com1 and com2.
  638. X
  639. X          s_fas-c1-3     For com1, com2 and com3.
  640. X
  641. X          s_fas-ast4     For the AST 4-port card.
  642. X
  643. X          s_fas-hub6     For the Bell Tech HUB-6 card.
  644. X
  645. X     n_fas-xxxxx    This is for ISC 386/ix, ESIX, Bell Tech/Intel UNIX 3.2
  646. X                    and SCO UNIX 386.
  647. X                    Tty device nodes file.  You should pick the one
  648. X                    that matches your configuration and copy it to `n_fas'.
  649. X
  650. X          n_fas-c1-2     For com1 and com2.
  651. X
  652. X          n_fas-c1-3     For com1, com2 and com3.
  653. X
  654. X          n_fas-ast4     For the AST 4-port card.
  655. X
  656. X          n_fas-hub6     For the Bell Tech HUB-6 card.
  657. X
  658. X     i_fas-xxxxx    This is for ISC 386/ix, ESIX, Bell Tech/Intel UNIX 3.2
  659. X                    and SCO UNIX 386.
  660. X                    Inittab getty lines file.  You should pick the one
  661. X                    that matches your configuration and copy it to `i_fas'.
  662. X
  663. X          i_fas-c1-2     For com1 and com2.
  664. X
  665. X          i_fas-c1-3     For com1, com2 and com3.
  666. X
  667. X          i_fas-ast4     For the AST 4-port card.
  668. X
  669. X          i_fas-hub6     For the Bell Tech HUB-6 card.
  670. X
  671. X     Makefile.uPort A makefile for uPort SYS V/386 systems. This is generic
  672. X                    and should work for all configurations of lines
  673. X                    and interrupts.
  674. X
  675. X     Makefile.ISC   A makefile for ISC 386/ix systems.  This is generic
  676. X                    and should work for all configurations of lines
  677. X                    and interrupts.
  678. X
  679. X     Makefile.ESIX  A makefile for ESIX systems.  This is generic
  680. X                    and should work for all configurations of lines
  681. X                    and interrupts.
  682. X
  683. X     Makefile.BELL  A makefile for Bell Tech/Intel UNIX 3.2 systems.  This
  684. X                    is generic and should work for all configurations of
  685. X                    lines and interrupts.
  686. X
  687. X     Makefile.SCO   A makefile for SCO UNIX 386 systems.  This is generic
  688. X                    and should work for all configurations of lines
  689. X                    and interrupts.
  690. X
  691. X     Makefile.X386  A makefile for SCO Xenix 386 systems.  This is generic
  692. X                    and should work for all configurations of lines
  693. X                    and interrupts.
  694. X
  695. X     Makefile.X286  A makefile for SCO Xenix 286 systems.  This is generic
  696. X                    and should work for all configurations of lines
  697. X                    and interrupts.
  698. X
  699. X------------------------------------------------------------------------
  700. X
  701. XWhat you will need to use this package:
  702. X
  703. X     You will need one of the above mentioned UNIX systems with the
  704. X     kernel link kit and the software development package.
  705. X
  706. X------------------------------------------------------------------------
  707. X
  708. XThe original asy replacement driver for Microport UNIX/386 (FAS' predecessor)
  709. Xwas developed by
  710. X
  711. XJim Murray              INET            jjm%jjmhome@m2c.m2c.org
  712. X2 Mohawk Circle         UUCP            harvard!m2c!jjmhome!jjm
  713. XWestboro Mass 01581     
  714. XUSA                                     voice (508) 366-2813
  715. X
  716. XCredits to him for releasing this great driver to the Usenet community.
  717. XBut if you have problems with FAS please don't contact him because he
  718. Xwasn't involved in the developement of FAS.
  719. X
  720. XFAS was developed by [BUT DON'T BOTHER HIM ABOUT FAS/i]
  721. X
  722. XUwe Doering             INET : gemini@geminix.in-berlin.de
  723. XBillstedter Pfad 17 b   UUCP : ...!unido!fub!geminix.in-berlin.de!gemini
  724. X1000 Berlin 20
  725. XGermany
  726. X
  727. X------------------------------------------------------------------------------
  728. XFor FAS/i inquiries:
  729. X   Warren Tucker wht@n4hgf.GA.US, emory!n4hgf!wht
  730. X
  731. X    ^    ^    ^    ^    ^    ^    ^    ^    ^    ^
  732. XSend your questions and bug reports to this address.
  733. SHAR_EOF
  734. chmod 0644 fasi/README ||
  735. echo 'restore of fasi/README failed'
  736. Wc_c="`wc -c < 'fasi/README'`"
  737. test 27697 -eq "$Wc_c" ||
  738.     echo 'fasi/README: original size 27697, current size' "$Wc_c"
  739. rm -f _shar_wnt_.tmp
  740. fi
  741. # ============= fasi/README.FASI ==============
  742. if test -f 'fasi/README.FASI' -a X"$1" != X"-c"; then
  743.     echo 'x - skipping fasi/README.FASI (File already exists)'
  744.     rm -f _shar_wnt_.tmp
  745. else
  746. > _shar_wnt_.tmp
  747. echo 'x - extracting fasi/README.FASI (Text)'
  748. sed 's/^X//' << 'SHAR_EOF' > 'fasi/README.FASI' &&
  749. XFAS/i is a special-purpose, unsupported version of FAS 2.08 for
  750. Xthose who need to have non-portable, but extended access to their tty driver.
  751. X
  752. XReasons to use:
  753. X
  754. X1. You get cumulative statistics on such things as receievd and
  755. Xtransmitted characters, modem signals and device errors.  As an
  756. Xexample of the information available, the ecu interactive 'fasi'
  757. Xcommand produces:
  758. X
  759. Xbase address: 0218 irq=3 device is 16550
  760. XMSR=*CTS*DSR*   MCR=*DTR*RTS*OUT2*
  761. XLCR=*8db*1sb*NOPAR*   IER=*RDAV*TBMT*LS*MS*
  762. Xrecv ring cnt=0  xmit ring cnt=0  xmit fifo size=16
  763. Xcharacters received    =        3097
  764. Xcharacters transmitted =       22407
  765. Xmodem status events    =         137
  766. Xoverrun errors=0  framing errors=0  parity errors=0
  767. Xrings detected=0  breaks detected=0
  768. Xxmtr flow off XON/XOFF=0  RTS/CTS=31
  769. Xrcvr flow off XON/XOFF=0  RTS/CTS=0
  770. Xdriver:  'FAS/i 2.08.0'
  771. Xspace.c: 'FAS/i 2.08:{1,4,03f8-03ff,COM1},{8,3,0210-024f,DIGI-PC8}'
  772. X
  773. X2. There are no other reasons to use.
  774. X
  775. XReasons NOT to use:
  776. X
  777. X1.  It is not supported. It is released configured for one COM1 (irq 4)
  778. Xand one 8-port Digiboard PC-8.  I will help with any issue that I can,
  779. Xbut I will be very uninterested in answering questions like "How do I
  780. Xget FAS/i to work with my PacificRim ModemBlaster 4800?"
  781. X
  782. X2. It is less efficient than FAS.  Statistics take CPU cycles to accumulate.
  783. XAlso, Uwe has done an indescribably superb job of optimizing the driver
  784. Xfor efficiency.  I have not analyzed the effect my changes have made to
  785. Xthe micromanagment of emitted code Uwe did, but it cannot have but harmed.
  786. X
  787. X3. The driver is non-standard.  It barks in the face of most of
  788. Xwhat I look for in well-produced software.
  789. X
  790. X4. Uwe will continue to work magic and this driver is unlikely to
  791. Xinherit it.
  792. X
  793. X5. FAS nor FAS/i appear to support DOS access to communications
  794. Xdevices through MERGE.
  795. X
  796. XNow, you say, why does that Tucker kid want to turn my tty driver
  797. Xinto a newt ("Well, [it] got better.")?  Because it can be very useful
  798. Xif you are developing asychronous communications systems.  I find
  799. Xit very useful to know how many times CTS fluctuated during a test
  800. Xsession.  Like the 'ecufriend,' it isn't for everyone, but if you
  801. Xneed it, there it is.
  802. X
  803. X>Message-Id: <m0jXaOF-0000ElC@geminix.in-berlin.de>
  804. X>From: emory!geminix.in-berlin.de!gemini (Uwe Doering)
  805. X>Subject: Re: [Request permission to distribute FAS 2.08 instrumented version]
  806. X>To: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  807. X>Date: Mon, 29 Apr 91 17:43:51 MES
  808. X>
  809. X>Hello Warren,
  810. X>
  811. X>>...I am writing is to ask your permission ...
  812. X>>to include with ecu a modified FAS 2.08 I am calling FAS/i (for
  813. X>>instrumentation) so you can have access to statistics 
  814. X>> [some stuff deleted]
  815. X>
  816. X>You sent me the necessary patches some time ago. Since then I tried to
  817. X>make up my mind about this issue. I decided now that I won't have the
  818. X>patches in the official FAS release. There is a reason for that. I want
  819. X>to keep FAS as clean as possible from the application program standpoint.
  820. X>
  821. X[some stuff deleted]
  822. X>
  823. X>You have my permission to release your special FAS version, but please
  824. X>make it clear in the docs that _you_ do the support for it, and
  825. X>that it is no official FAS release.
  826. X>
  827. X>      Uwe
  828. X>-- 
  829. X>Uwe Doering  |  INET : gemini@geminix.in-berlin.de
  830. X>Berlin       |----------------------------------------------------------------
  831. X>Germany      |  UUCP : ...!unido!fub!geminix.in-berlin.de!gemini
  832. X
  833. XThe strength of my earlier comments is driven in part by Uwe's comments.
  834. XI will be very disasppointed and red-faced if Uwe gets ONE query or
  835. Xrequest in regard to this hack.  I will be similarly dismayed if he
  836. Xgets one comment pro or con about folding these features into the
  837. Xofficial FAS.
  838. X
  839. XThis is a dead-end, special-purpose junkbox addition that just happens
  840. Xto be potentially useful.
  841. X
  842. XNow, with all that out of the way, here are a few useful tidbits:
  843. X
  844. X1. Configuration and installation are for the most part similar to
  845. Xthe standard FAS as of this writing.
  846. X
  847. X2. You will need to manually create a /usr/include/local directory
  848. Xbefore you begin any makes.
  849. X
  850. X3. The original FAS 2.08 functionality may be restored by turning
  851. Xoff #define FASI in several places.
  852. X
  853. X4. It has been used only on SCO.
  854. X
  855. X5. To use with ECU, you'll need to hack -DFASI_IN_USE into the
  856. Xecu Makefile.  The other programs in ecu don't need to know about it.
  857. X(Hint: ecufriends can make good use of the features.)
  858. X
  859. X6. If you turn on FAS/i support in ecu, you get the undocumented
  860. Xfasi interactive and procedure commands and these %functions:
  861. X
  862. XInteger functions:
  863. X%fasi       defined for all ecu versions; returns 1 if FAS/i
  864. X            support included, else 0 if not. The other functions
  865. X            will cause procedure termination with undefined function
  866. X            errors "ifi %fasi==0".
  867. X%msr        MSR current value
  868. X%lnerr      accumulated FE+OE+PE count
  869. X%ridet      accumulated RI count
  870. X%brdet      accumulated BREAK count
  871. X
  872. XString functions:
  873. X%msrtext    MSR current value in string form for easier (less efficient)
  874. X            MSR inspecition.  You can do something like
  875. X
  876. X     $s20 = %msrtext
  877. X     ifi %instr($s20,'CTS')
  878. X         echo 'CTS present'
  879. X     ifi %instr($s0,'RING')
  880. X         echo 'We are receiving a RING this very instant')
  881. XThe returned string is one or more substrings separated by asterisks.
  882. XSo, you might get 'CTS*DSR*RING*'.  The list of substrings, one for each
  883. Xbit in the canonized 8250 MSR:
  884. X
  885. XdCTS        delta CTS   <---+
  886. XdDSR        delta DSR       | you are unlikely to see these
  887. XdRI         delta RI        | since the driver catches interrupts
  888. XdDCD        delta DCD   <----
  889. XCTS     
  890. XDSR     
  891. XRING        
  892. XDCD     
  893. X
  894. X7. The fasiintf.c modules contains examples of each FAS/i-specific
  895. Xioctl.  These are also the only 'documentation' ever likely to be
  896. Xproduced for them other than this list:
  897. X
  898. XFASIC_SIP                  get entire fas_info struct
  899. XFASIC_MSR                  get various registers
  900. XFASIC_LCR     
  901. XFASIC_IER    
  902. XFASIC_MCR   
  903. XFASIC_DVR_IDENT            get driver revision
  904. XFASIC_SPACE_IDENT          get space.c revision
  905. XFASIC_RESET_STAT           reset statistics
  906. X
  907. X8. This hacked 'release' is in the style of a purpose-specific
  908. Xdriver.  If you have an SCO UNIX 3.2.x system with a standard COM1
  909. Xport and a Digiboard PC-8 on COM2, man are you in luck.  Otherwise,
  910. X
  911. X   while(!bored && !fed_up && !success)
  912. X   {
  913. X     adopt();
  914. X     adapt();
  915. X     improve();
  916. X   } /* "... I always say." -- thanks to John Cleese */
  917. X   exit(!success);
  918. X
  919. SHAR_EOF
  920. chmod 0644 fasi/README.FASI ||
  921. echo 'restore of fasi/README.FASI failed'
  922. Wc_c="`wc -c < 'fasi/README.FASI'`"
  923. test 6394 -eq "$Wc_c" ||
  924.     echo 'fasi/README.FASI: original size 6394, current size' "$Wc_c"
  925. rm -f _shar_wnt_.tmp
  926. fi
  927. # ============= fasi/RELEASENOTES ==============
  928. if test -f 'fasi/RELEASENOTES' -a X"$1" != X"-c"; then
  929.     echo 'x - skipping fasi/RELEASENOTES (File already exists)'
  930.     rm -f _shar_wnt_.tmp
  931. else
  932. > _shar_wnt_.tmp
  933. echo 'x - extracting fasi/RELEASENOTES (Text)'
  934. sed 's/^X//' << 'SHAR_EOF' > 'fasi/RELEASENOTES' &&
  935. XThis is the original RELEASENOTES from FAS 2.08 for reference only.
  936. XRead README.FASI. DO NOT CONTACT UWE DOERING REGARDING THIS HACKED VERSION
  937. X                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  938. X
  939. X     release 1.1a Sat Nov 11, 1989
  940. X
  941. X     This is an unofficial release as I'm not the original author
  942. X     of this async driver.
  943. X
  944. X     Uwe Doering             INET : gemini@geminix.in-berlin.de
  945. X     Billstedter Pfad 17 b   UUCP : ...!unido!fub!geminix.in-berlin.de!gemini
  946. X     1000 Berlin 20
  947. X     Germany
  948. X
  949. X     New Features:
  950. X
  951. X          Added a third minor tty device number for every physical
  952. X          port. See description preceding the asyopen function in
  953. X          asy.c. Changed the behavior of ttyxx, too.
  954. X
  955. X          Added output hardware handshake support for DSR. Now you
  956. X          can do handshake with CTS, DSR or both. Input hardware
  957. X          handshake is on if you use at least one of the output
  958. X          handshake signals.
  959. X
  960. X          More flexible support of additional interrupt registers
  961. X          on mux boards. This is fully configurable now.
  962. X
  963. X          Added support for the CREAD flag. If not set, receiver
  964. X          interrupts are still serviced, but the received characters
  965. X          are simply thrown away. This is not as elegant as disabeling
  966. X          the interrupts themselves, but with the already existing
  967. X          driver it was the easiest way, and the most new-bugs-preventing,
  968. X          too.
  969. X
  970. X          Added a lot of comments to the source so that the curious
  971. X          user can understand why and how things are done.
  972. X
  973. X
  974. X     Bug Fixes:
  975. X
  976. X          The hang-up-on-last-close flag (HUPCL) was ignored. DTR
  977. X          was asserted regardless of this flag.
  978. X
  979. X          Made the detection of CTS and DCD more bullet-proof.
  980. X          Especially because between a close and the next open of
  981. X          a line, where interrupts are ignored, the software copys of
  982. X          CTS and DCD must be set up propperly in the asyopen function
  983. X          or the tty line would be blocked under certain circum-
  984. X          stances. For similar reasons, there is also a setup in the
  985. X          asyparam function.
  986. X
  987. X          Rewrote the input character processing function to work
  988. X          according to the TERMIO(7) man page.
  989. X
  990. X          Changed the behavior of BREAK generation to let the
  991. X          transmitter drain before TX is set to low.
  992. X
  993. X          Changed line hangup procedure so that the closing
  994. X          process returns immediately and doesn't sleep during
  995. X          the hangup delay/time. Instead, if an other process tries
  996. X          to open the line while hangup is still in progress, this
  997. X          process will sleep until hangup is competed.
  998. X
  999. X          With DOS Merge, on MicroPort V/386 3.0e the linker was
  1000. X          missing the function `init8250'. Reengineered this from
  1001. X          a disassembler listing of MicroPort's original driver and
  1002. X          modified it to work with the NS16550A 16-byte FIFO. This
  1003. X          funktion was added simply to be able to link the kernel.
  1004. X          DOS Merge's virtual COM ports are still unusable with this
  1005. X          release, though. To include this function, add a `-DMERGE'
  1006. X          to the CFLAGS line in your makefile.
  1007. X
  1008. X          Made a lot of other corrections and enhancements in both
  1009. X          speed and functionallity. As a result of all my effords
  1010. X          I think this driver is slightly faster, more versatile
  1011. X          and much more stable than the original release.
  1012. X
  1013. X     ------------------------------------------------------------
  1014. X          
  1015. X     release 1.1b Sat Nov 25, 1989
  1016. X
  1017. X     New Features:
  1018. X
  1019. X          Changed the minor device number scheme again.
  1020. X          There are now two main groups: The unblocked open
  1021. X          and the blocked open. Every group has four sub-modes
  1022. X          and an additional hardware handshake flag. All this
  1023. X          is coded in the higher four bits of the minor device
  1024. X          number. Because of this, the maximum of 32 ports was
  1025. X          reduced to 16 ports so that the port number fits into
  1026. X          the remaining lower four bits of the minor device number.
  1027. X          32 dumb ports in a single machine would have been overkill
  1028. X          anyway. For more details refer to the description in the
  1029. X          README file.
  1030. X
  1031. X     ------------------------------------------------------------
  1032. X          
  1033. X     release 2.00 Mon Nov 27, 1989
  1034. X
  1035. X     As this release differs so much from the original version I got,
  1036. X     I now declare this as independant from the original author
  1037. X     Jim Murray. This allows me to introduce new release levels
  1038. X     without wondering whether they will collide with Jim's releases.
  1039. X     Of course many credits to Jim for writing this software in the
  1040. X     first place. Without his driver as a base I never would have
  1041. X     been able to do such kernel driver development.
  1042. X
  1043. X     Bug Fixes:
  1044. X
  1045. X          If there were glitches on the hardware handshake lines
  1046. X          and the DCD line a getty on this port would sometimes
  1047. X          hang and become an immortal process. I think this was
  1048. X          because the output buffer wasn't flushed properly
  1049. X          on carrier loss. I hope I fixed this now. We'll see.
  1050. X
  1051. X     ------------------------------------------------------------
  1052. X          
  1053. X     release 2.01 Tue Nov 28, 1989
  1054. X
  1055. X     Did some cleanup in the source code.
  1056. X
  1057. X     I splitted the driver into two parts: The driver itself and
  1058. X     the file `space.c'.
  1059. X     `space.c' contains all data structures necessary to configure
  1060. X     the driver and is compiled at kernel link time. Therefore if you
  1061. X     change your serial card configuration you simply change `space.c'
  1062. X     directly in the link kit directory and relink the kernel. No
  1063. X     driver recompilation or installation is necessary for this.
  1064. X     But note that whenever you use `make install' your setup in
  1065. X     the link kit directory is overwritten by the original `space.c'
  1066. X     file. Therefore you should copy your new `space.c' back to
  1067. X     the source directory when you are finished with the configuration.
  1068. X
  1069. X     Renamed the package to `FAS Final Async Solution'. The following
  1070. X     files have been renamed:
  1071. X          asy.c          -> fas.c
  1072. X          asy.h          -> fas.h
  1073. X          asy_conf-xxxxx -> space-xxxxx
  1074. X
  1075. X     ISC 386/ix is supported now. There are separate makefiles
  1076. X     for uPort and ISC to cope with the differences in link kit
  1077. X     installation.
  1078. X
  1079. X     Bug Fixes:
  1080. X
  1081. X          `getty' still hung sometimes on a line with hardware
  1082. X          handshake. Tried to fix it this time.
  1083. X
  1084. X     ------------------------------------------------------------
  1085. X          
  1086. X     release 2.02 Thu Nov 30, 1989
  1087. X
  1088. X     Abandoned the distinction between space-xxxxx files with
  1089. X     and without hardware flow control because this is selected
  1090. X     by the minor device number now.
  1091. X
  1092. X     Bug Fixes:
  1093. X
  1094. X          Set the high and low water marks for hardware input flow
  1095. X          control to higher values than software flow control. This
  1096. X          gives precedence to software flow control if both methods
  1097. X          are used. These marks are self-adjusting and don't need to
  1098. X          be changed if some flavor of UNIX has a different buffer
  1099. X          size than the standard 256 characters. Before this change
  1100. X          concurrent use of both flow controls could cause trouble
  1101. X          with some high-speed modems. This is fixed now.
  1102. X
  1103. X          A flush read or write buffer request now also clears the
  1104. X          receiver or transmitter FIFO, respectively. An ioctl
  1105. X          call with a TCSETA* command clears the FIFOs, too.
  1106. X
  1107. X     ------------------------------------------------------------
  1108. X          
  1109. X     release 2.03 Fri Dec 01, 1989
  1110. X
  1111. X     Wrote an installation guide. The driver should be quite
  1112. X     easy to install now.
  1113. X
  1114. X     Added tty node configuration files for ISC.
  1115. X
  1116. X     Hardware input flow control is bound now to the level of the
  1117. X     receiver ring buffer instead of the UNIX input buffer. This
  1118. X     has the advantage that buffer size and trigger levels are
  1119. X     defined in the driver and therefore can be varied as needed.
  1120. X
  1121. X     New Features:
  1122. X
  1123. X          Added a boot time status message that shows the init
  1124. X          state of each port. This tells you immediately what
  1125. X          ports are found and initted by the driver. Useful to
  1126. X          determine hardware configuration problems. Look at
  1127. X          the description in the README file. Thanks to
  1128. X          Kritt Gierlewsen (kritt@einoed.UUCP) for this proposal.
  1129. X
  1130. X     ------------------------------------------------------------
  1131. X          
  1132. X     release 2.04 Thu Dec 07, 1989
  1133. X
  1134. X     Did some cleanup in the source.
  1135. X
  1136. X     Removed the FIFO clear from the ioctl function. We don't want
  1137. X     to do things there that aren't in the book.
  1138. X
  1139. X     An ioctl call that switches off the CLOCAL flag will create
  1140. X     a SIGHUP signal if the carrier is actually missing at this
  1141. X     time.
  1142. X
  1143. X     Every device is tested now quite thoroughly during initialization.
  1144. X     If the test fails the corresponding device keeps unconfigured.
  1145. X
  1146. X     ------------------------------------------------------------
  1147. X          
  1148. X     release 2.05 Sat Jan 13, 1990
  1149. X
  1150. X     This is the first public release of the FAS driver.
  1151. X
  1152. X     Special thanks to the sysops of my test sites, Axel Fischer
  1153. X     (fischer@utower.UUCP) and Kritt Gierlewsen (kritt@einoed.UUCP).
  1154. X
  1155. X     FAS is now an independant driver with its own driver name (`fas'),
  1156. X     major device number, link kit directory and other things necessary
  1157. X     for a driver. The original asy driver may or may not be linked
  1158. X     with the kernel. You only need it if you want to access some
  1159. X     serial devices via the virtual COM ports of the DOS emulator
  1160. X     (DosMerge or VP/ix) because the FAS driver doesn't have this
  1161. X     (really vendor dependant) feature.
  1162. X
  1163. X     The default prefix for tty device node names is `ttyF' now.
  1164. X     This prevents mix-ups with the device names of the original
  1165. X     asy driver.
  1166. X
  1167. X     Dropped the SYSV/AT support. I couldn't test the driver
  1168. X     for several release generations on uPort SYSV/AT, and because
  1169. X     there are not very much systems left with that flavor of UNIX
  1170. X     it doesn't make sense to try to maintain compatibility with it.
  1171. X     If someone really wants to use this driver on a 286 he has
  1172. X     to port it himself.
  1173. X
  1174. X     Improved the transmitter FIFO fill procedure. Now it will try
  1175. X     harder to fill the FIFO as much as possible to cut down on
  1176. X     transmitter interrupts.
  1177. X
  1178. X     Software input flow control (XON/XOFF) is controlled by the driver now.
  1179. X     It is bound to the level of the receiver ring buffer (as is hardware
  1180. X     flow control). As usual, it can be switched on and off by the
  1181. X     IXOFF flag in the termio(7) structure.
  1182. X
  1183. X     Changed and speeded up the ring buffer -> unix buffer processing.
  1184. X
  1185. X     For ISC, the getty lines for the inittab file are installed
  1186. X     by the makefile now.
  1187. X
  1188. X     The conditional compilation of the function `init8250' (for
  1189. X     DosMerge) is now controlled by a define in `fas.h'. The compiler
  1190. X     switch `-DMERGE' is not used any more.
  1191. X
  1192. X     Improved the documentation.
  1193. X
  1194. X     The signals used for modem control and hardware flow control are
  1195. X     fully configurable in the `space.c' file now. Look at `fas.h' for
  1196. X     possible macros and combinations.
  1197. X
  1198. X     There are some new modes for hardware flow control, for instance
  1199. X     HO_CTS_ON_DSR. This means that CTS is only looked at if DSR is on.
  1200. X     If DSR is off output is possible regardless of CTS. The underlying
  1201. X     assumption here is that we can expect proper handshake handling
  1202. X     only from devices that are in the ready state (indicated by DSR).
  1203. X     As a spin-off the problem with the hanging getty on lines with
  1204. X     turned-off terminals (mentioned in earlier releases) should be
  1205. X     gone if you use this new mode.
  1206. X
  1207. X     If the XCLUDE-Flag is availabe (SYSV 3.2 because of Xenix
  1208. X     compatibility) exclusive open of a device is possible.
  1209. X
  1210. X     The default size of the input ring buffer is now 5000 bytes.
  1211. X     This makes streaming input more likely even on loaded systems.
  1212. X
  1213. X     Bug Fixes:
  1214. X
  1215. X          The task state busy flag wasn't reset in some rare cases.
  1216. X          This could cause processes to become immortal while waiting
  1217. X          for the busy flag.
  1218. X
  1219. X          Under some special conditions an ioctl call with a TCSETA?
  1220. X          command could corrupt the last character in the transmitter
  1221. X          shift register. This is fixed now.
  1222. X
  1223. X          More fixing of the busy flag handling was necessary.
  1224. X          Co-ordinating several delayed tasks controlling this flag
  1225. X          is kind of tricky.
  1226. X
  1227. X          After a TCSETA* ioctl command we disable the transmitter
  1228. X          for 2 sec (measured from the last transmitted character)
  1229. X          if the character format and/or speed has changed. This
  1230. X          gives the receiving side some time to do the same changes.
  1231. X          This is kind of experimental. There may be applications that
  1232. X          suffer from this delay. You may change the #define ADAPT_TIME
  1233. X          in `fas.h' to a smaller value.
  1234. X
  1235. X     ------------------------------------------------------------
  1236. X          
  1237. X     release 2.06 Fri Mar 16, 1990
  1238. X
  1239. X     This should have been patch #3 for release 2.05, but there are
  1240. X     so many changes now that I decided to make it a new release.
  1241. X     Therefor some of the changes are described in the 2.05 release
  1242. X     notes above but were never released to the public.
  1243. X
  1244. X     New Features:
  1245. X
  1246. X          There is a transmitter ring buffer now to make the output
  1247. X          less system load dependent. This really speeds things up
  1248. X          because the transmitter FIFO gets filled with more characters
  1249. X          at once. The buffer size depends on the actual baud rate to
  1250. X          prevent long output buffer drains at low speeds.
  1251. X
  1252. X          There are also bigger input buffers to make FAS more competitive
  1253. X          against "intelligent" cards.
  1254. X
  1255. X          Lots of speed improvements and many small changes.
  1256. X
  1257. X     Bug Fixes:
  1258. X
  1259. X          Fixed input/output buffer flush on carrier loss while close
  1260. X          is waiting for the output to drain.
  1261. X
  1262. X     ------------------------------------------------------------
  1263. X          
  1264. X     release 2.07 Tue Sep 18, 1990
  1265. X
  1266. X     This is a major redesign of the previous release. I put most of the
  1267. X     time consuming tasks in one function that is invoked asynchronously
  1268. X     by timeout calls. Inside this function most of the code runs at
  1269. X     a lower system priority level (spl5) than the interrupts. That
  1270. X     means that during character processing tty interrupts are allowed.
  1271. X     This is the main key to operation at 38400 bps on multiple ports
  1272. X     at the same time which is possible now with this release.
  1273. X
  1274. X     New Features:
  1275. X
  1276. X          FAS supports the VP/ix DOS emulator!
  1277. X          Now you can throw out the vendor's original driver even
  1278. X          if you like to have a serial mouse or modem access in DOS.
  1279. X          Read the paragraph about VP/ix in the README file.
  1280. X
  1281. X          The Intel i82510 port chip is supported. It has separate
  1282. X          4-character FIFOs for input and output. Although the
  1283. X          NS16550A is much better this chip is your second choice
  1284. X          if you can't get your hands on the National chips.
  1285. X          Thanks to Christian Seyb (cs@gold.UUCP) for sending me
  1286. X          patches and the necessary documentation for the Intel
  1287. X          chips.
  1288. X
  1289. X          There is an init sequence in `space.c'. You can put any
  1290. X          number of address-data pairs in a null terminated array
  1291. X          to program your serial card or other hardware before
  1292. X          FAS makes the first access to the ports. AST 4-port cards,
  1293. X          for instance, have an additional port that needs to be
  1294. X          written to with a certain bit pattern to allow shared
  1295. X          interrupts. If you need to read a port to achieve the
  1296. X          setting or resetting of flags as a side effect, this
  1297. X          is possible, too.
  1298. X
  1299. X          ESIX is officially supported now.
  1300. X
  1301. X          SCO UNIX is officially supported, too. FAS needs to be
  1302. X          compiled with the command line flag `-DSCO'. The makefile
  1303. X          for SCO takes care of that. Thanks to Walter Mecky
  1304. X          (walter@mecky.systemware.de) and Frank Simon
  1305. X          (terra@sol.north.de) for helping me in making the necessary
  1306. X          changes for SCO UNIX.
  1307. X
  1308. X          SCO Xenix 386 is also officially supported. FAS needs to be
  1309. X          compiled with the command line flag `-DXENIX'. The makefile
  1310. X          for SCO Xenix takes care of that. Thanks to Andreas
  1311. X          Steinmetzler (andreas@oil.UUCP) for doing the port.
  1312. X
  1313. X          If you have the RTSFLOW and CTSFLOW termio(7) flags,
  1314. X          hardware handshake can be controlled by them.
  1315. X          Note that enabling handware flow control via the
  1316. X          minor device number overrides these flags. If you
  1317. X          like to use them you need to create tty device nodes
  1318. X          with minor device numbers in which the bit for hardware
  1319. X          handshake is set to 0. Look at the description in the
  1320. X          README file for more details.
  1321. X          Note also that if you choose to use RTSFLOW and CTSFLOW
  1322. X          all your programs that do initial access to tty devices
  1323. X          (getty, uucico, cu, SLIP dialup program etc.) need to know
  1324. X          about these flags or hardware handshake will not be used.
  1325. X
  1326. X          The `O_EXCL' flag for the open(2) call is honored now.
  1327. X          This allowes exclusive access to an FAS device without
  1328. X          suffering from race conditions which could occure with
  1329. X          the termio(7) XCLUDE flag method.
  1330. X
  1331. X          The `fas_test_device' function returns a digit now that
  1332. X          indicates at which phase the test exited due to an error.
  1333. X          This error digit is displayed in the boot message. Thanks
  1334. X          to Brian Beattie (beattie@visenix.UUCP) for sending me
  1335. X          the necessary patches.
  1336. X
  1337. X     Bug Fixes:
  1338. X
  1339. X          Automatic input FIFO flush after unblocking the getty
  1340. X          open by the carrier or the unblock signal. This makes sure
  1341. X          that there is no chance that there are characters in the
  1342. X          FIFO that were received before the open got unblocked.
  1343. X
  1344. X          The sdevice entry for the AST 4-port card had a wrong
  1345. X          I/O address range (`s_fas-mux4'). This didn't affect FAS
  1346. SHAR_EOF
  1347. true || echo 'restore of fasi/RELEASENOTES failed'
  1348. fi
  1349. echo 'End of ecu320 part 31'
  1350. echo 'File fasi/RELEASENOTES is continued in part 32'
  1351. echo 32 > _shar_seq_.tmp
  1352. exit 0
  1353.  
  1354. exit 0 # Just in case...
  1355.