home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21699 < prev    next >
Encoding:
Text File  |  1992-12-26  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!rpi!palmj
  3. From: palmj@marcus.its.rpi.edu (Jyri L. Palm)
  4. Subject: More than 2 serial devices at a time
  5. Message-ID: <cjx231b@rpi.edu>
  6. Summary: Edit kernel/chr_drv/serial.c
  7. Keywords: Serial 2 Devices
  8. Nntp-Posting-Host: marcus.its.rpi.edu
  9. Date: Sat, 26 Dec 1992 05:03:43 GMT
  10. Lines: 33
  11.  
  12. I noticed a couple of articles about using more than 2 serial devices at
  13. the same time. Well, here is my configuration and how I manage to use more
  14. than 2 serial devices at a time.
  15.  
  16. 486/33 8Megs
  17. 200 Meg Harddisk
  18. Kernel -> 0.99.1
  19. Mouse on /dev/ttys0
  20. VT100 on /dev/ttys1
  21. Int Modem on /dev/ttys3
  22.  
  23. I've always wanted to be able to use all the 3 serial devices at the same
  24. time. When I tried using ttys3 and ttys1 at the same time, my system crashed
  25. instantly, so here is what I did.
  26.  
  27. - Disabled the parellel port which uses interrupt 7 (I think lpt2 uses irq5)
  28. - Using jumpers on the serial card, make com2 use interrupt 5 (default is 3)
  29. - Modify /usr/src/linux/kernel/chr_drv/serial.c
  30.     o around line 85 is :
  31.         struct struct_ISR COM2_ISR = { 3, 0x2f8, UART_ISR_proc,0, };
  32.     o change it to :
  33.         struct struct_ISR COM@_ISR = { 5, 0x2f8, UART_ISR_proc,0, };
  34. - Recompile the kernel.
  35.  
  36. I disabled my parellel port because I don't have a printer and I wanted to
  37. be sure I didn't have any devices using interrupt 5. I believe you should
  38. be able to use the 3 serial ports and a parellel device all at the same
  39. time. 
  40.  
  41. Anyway, I have no idea how this would affect DOS programs (assuming you also
  42. use your system for DOS). Also, I have no idea how this may affect other
  43. linux operations (I don't know C, neither am I a unix guru). I'd really
  44. appreciate any comments or suggestions ... send to palmj@rpi.edu thanks.
  45.