home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8817 < prev    next >
Encoding:
Text File  |  1992-08-21  |  2.2 KB  |  48 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!stanford.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!root
  3. From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  4. Subject: Re: conflicting serial ports
  5. Message-ID: <1992Aug21.214852.15869@athena.mit.edu>
  6. Sender: root@athena.mit.edu (System PRIVILEGED Account)
  7. Reply-To: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  8. Organization: The Internet
  9. Date: Fri, 21 Aug 1992 21:48:52 GMT
  10. Lines: 36
  11.  
  12.    From: becker@super.org (Donald J. Becker)
  13.    Date: 21 Aug 92 01:22:21 GMT
  14.  
  15.    < ... about device busy message when trying to open both serial devices 0
  16.    and 2 or both 1 and 3, i.e. use COM1 and COM3 at the same time>
  17.  
  18.    This shouldn't be too hard to fix.  In 'tty.c' add two new interrupt
  19.    handlers along the model of the four that are already there: one that
  20.    checks both COM1 and COM3, and a second that checks both COM2 and
  21.    COM4.  (It's fine to check a serial port if no character is waiting.)
  22.    Then instead of returning EBUSY when opening the second tty of the
  23.    pair, install the appropriate dual handler.  
  24.  
  25. The problem is that unless you have a special serial board, that won't
  26. work.  The way the (brain-damanged) ISA bus was designed prevents two
  27. boards from using the same interrupt line at the same time.  It is
  28. possible to have special serial cards that multiplex more than one
  29. serial card onto one interrult line.  An example of that is the AST
  30. 4-port card.  Ftp to tsx-11.mit.edu:/pub/linux/ALPHA/serial to pick up
  31. my experimental serial driver which supports the AST boards plus COM1-4
  32. ports.
  33.  
  34. Does anyone actually have a serial board that allows *concurrent*
  35. interrupts from COM1+3 or COM2+4?  If you do, please send me email.
  36. I've never seen such a beast on the market, which is why I didn't modify
  37. serial.c to support it.  If there's hardware out there that really
  38. supports that, it's a simple change to make to the serial driver, and
  39. I'd be happy to add it to my version of serial.c.
  40.  
  41.                         - Ted
  42.  
  43. P.S.  I'm also thinking about adding concurrent dialin/dialout devices,
  44. as well as better support for hardware handshaking.  Basically, I'm
  45. looking at FAS (the Final Async Solution, a freeware serial driver for
  46. SysV-derived Unices) and stealing ideas of useful features that we might
  47. want to have.
  48.