home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8671 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.7 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!root
  2. From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  3. Newsgroups: comp.os.linux
  4. Subject: New version of the serial driver....
  5. Message-ID: <1992Aug20.050057.6851@athena.mit.edu>
  6. Date: 20 Aug 92 05:00:57 GMT
  7. Sender: root@athena.mit.edu (System PRIVILEGED Account)
  8. Reply-To: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  9. Organization: The Internet
  10. Lines: 45
  11.  
  12. I've uploaded diffs for some changes that I've made to the serial
  13. driver.
  14.  
  15. The main feature which has been added is support for the AST FourPort
  16. serial card.  With two of these boards, plus COM1+COM2, it is possible
  17. to have 10 serial lines simultaneously connected to your Linux system.
  18. The only problem with the AST FourPort is that apparently AST no longer
  19. makes it --- I bought my two from a salvage dealer at $25/board.  It
  20. apparently was a very popular board to connect up to SCO systems,
  21. though.  If you have other multiple I/O serial cards which you would
  22. like supported, send me mail with the technical specs to tytso@mit.edu.
  23. I make no guarantees, since I won't have the card to test it out (unless
  24. you want to give me a card, too!), but I'll give my best shot to include
  25. support for them.
  26.  
  27. In order to support all of these extra ports, I was forced to make some
  28. changes to the way the serial board handled timers.  Using the current
  29. setup, you need two timers for every serial port.  This is not practical
  30. when you want your Linux system to potentially drive up to 12 serial
  31. lines, since there are only 32 timers available on the system.
  32. Therefore, I modified it so that it only requires the use of one timer
  33. facility, and does its own timer demultiplexing.  
  34.  
  35. Also, the AST FourPort was much more finicky about actually reading from
  36. the appropriate UART modem registers after an interrupt had been
  37. signalled, to acknowledge the interrupt.  If you don't do this, it just
  38. stops generating interrupts.  
  39.  
  40. I've also fixed some bugs in the setserial and getserial ioctl()'s.
  41.  
  42. I don't *think* these changes should affect normal people's use of the
  43. serial lines, although my timer changes would have added a little
  44. additional overhead.  If people have time, I'd like you to try it this
  45. driver out, especially if you are using your driver in high-speed
  46. applications (such as KA9Q at 19,200 bps) and let me know how you fared.
  47. Thanks!
  48.  
  49.                             - Ted
  50.  
  51. P.S.  Supposedly it is possible to run two AST FourPorts on the same
  52. interrupt line, by setting a magic dip switch.  I haven't been able to
  53. get it to work though; if I set the jumers as the manual states, I
  54. simply lose all of the interrupts.  If anyone can figure out what I'm
  55. doing wrong, or has managed to make it work themselves, please give me a
  56. call!
  57.