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