Re: Interrupts and serial ports

1998-01-22 Thread W Paul Mills
On Wed, 21 Jan 1998 [EMAIL PROTECTED] wrote:

> -BEGIN PGP SIGNED MESSAGE-
> 
> On Tue, 20 Jan 1998, W Paul Mills wrote:
> 
> > I have my modem and my UPS both connected to serial ports with the same
> > interupt. Seems to work OK. These are both on the same card which was
> > modified (not a lot of fun) to share the interupt. JDR Microdevices
> > sells a 4-port serial board that is supposed to support shared interupts.
> 
> OK Paul, but a *normal* standard serial port card has two 16550xx UARTs a
> two connectors. These cards are AFAIK not able to share interupts
> correctly. It works sometimes, when you don't use the corresponding port
> at the same time, but this is not my thing. And if you have a
> AMD-586DX/120 in an old VESA local bus motherboard, it could be
> impossible (like it was for me). 

I modified a "standard" board with two 16650's and used it with the standard
linux driver.

> 
> Now for something completely different!
> 
> You talk about a JDR Microdevices card with 4 ports. is it supported by
> linux??? How much does it cost??? Because I could use some more ports at a
> communication box at work, which should run Debian, if everything goes
> right.

I would expect it to work, but have not tried it. It is a part no. MCT-4S. 
Says that it supports unix shared interrupt mode. Uses standard 16550 chips.

They have a web site at http://www.jdr.com.

I have bought equipment from them for home and work. Good luck
with them over the last 5 or 6 years.

/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills  * Topeka, Kansas, U.S.A.   *
* [EMAIL PROTECTED] * http://homepage.midusa.net/~wpmills/ *
* [EMAIL PROTECTED]  * http://www.sound.net/~wpmills/   *
* Bill, I was there several years ago, why would I want to go back? *
/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-21 Thread Tim Sailer
[EMAIL PROTECTED] wrote:
> You talk about a JDR Microdevices card with 4 ports. is it supported by
> linux??? How much does it cost??? Because I could use some more ports at a
> communication box at work, which should run Debian, if everything goes
> right.

AST used to make a 4 port card that used 1 interrupt. There are a few
clones out there. DFI makes/made one, and I think JDR does too. The
setserial script has support for the cards.

Tim

-- 
 (work) [EMAIL PROTECTED] / (home) [EMAIL PROTECTED] - http://www.buoy.com/~tps
  Madness takes its toll...
  Please have exact change!
** Disclaimer: My views/comments/beliefs, as strange as they are, are my own.**


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-21 Thread dg
-BEGIN PGP SIGNED MESSAGE-

On Tue, 20 Jan 1998, W Paul Mills wrote:

> I have my modem and my UPS both connected to serial ports with the same
> interupt. Seems to work OK. These are both on the same card which was
> modified (not a lot of fun) to share the interupt. JDR Microdevices
> sells a 4-port serial board that is supposed to support shared interupts.

OK Paul, but a *normal* standard serial port card has two 16550xx UARTs a
two connectors. These cards are AFAIK not able to share interupts
correctly. It works sometimes, when you don't use the corresponding port
at the same time, but this is not my thing. And if you have a
AMD-586DX/120 in an old VESA local bus motherboard, it could be
impossible (like it was for me). 

Now for something completely different!

You talk about a JDR Microdevices card with 4 ports. is it supported by
linux??? How much does it cost??? Because I could use some more ports at a
communication box at work, which should run Debian, if everything goes
right.

Thanx in advance!

Daniel

- -
- - Daniel Gross <[EMAIL PROTECTED]> -
- - Ingolstadt, Germany  <[EMAIL PROTECTED]> -
- - "If Win95 is the answer, it must have been a real foolish question !" -
- -

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBNMZj7wnLrgqPNGtBAQGvzAgArmTunPzm22hmaYllmuBMkFJu+QqWi9GY
gMk1U45WubxIAUuysUyfBbXjsfpJWvPrPqNGVrFHU0C201uMTuxGnNIQaodcgjwb
wydqSEI0HmDiFo3iemorE3mJYR14/C5kRpKBHVym4Pv+fs70Zmf7lHLWDrYbynQh
JtRK0i6LjvJi7KFIht5EScMiI18l10V1xt/7znbwDWwtXCvGPDP0RThOitoIIQPw
6XFzKFOjLo2o6iCOIwFQfPW20MLPvspO7kSTeyoQNjuUd0L6Kmw5qSkg7FqZXGxO
a4JBmSVdPF58yEX/ib7kiOJUh6aAOScvQOl2touTuq70nR/ufWgnBQ==
=XZTY
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-21 Thread W Paul Mills
I have my modem and my UPS both connected to serial ports with the same
interupt. Seems to work OK. These are both on the same card which was
modified (not a lot of fun) to share the interupt. JDR Microdevices
sells a 4-port serial board that is supposed to support shared interupts.

On Sun, 11 Jan 1998, Dan Hugo wrote:

> [EMAIL PROTECTED] wrote:
> 
> > 0setserial confused me to. But after all I've figuered out, that linux (on
> > my machine) does NOT support 2 serials on the same interupt. What happens
> > is, that they both are not useable. I have set the jumpers on my ... hmmm
> > ... let me look ... AdLib ISA POWER 221 card (which has 2 serial, 2
> > parallel and 1 game port) to have the two extra serials as /dev/ttyS2 and
> > /dev/ttyS3 (COM3: and COM4:) with interupts 11 and 12. And I have edited
> > the 0setserial file as shown below:
> > 
> > -  /etc/rc.boot/0setserial --- [snip] -
> > ...
> > 
> > #
> > # The typical user will only have 2 serial ports. To try and minimise
> > # problems, all other configurations have been commented out!
> > #
> > ${SETSERIAL} -b /dev/ttyS2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
> > ${SETSERIAL} -b /dev/ttyS3 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
> > 
> > ...
> > -  /etc/rc.boot/0setserial --- [snap] -
> > 
> > As you can see, I have taken the '#' out. That's all.
> 
> I have a Bo-unstable drop from about almost a year ago, and that comment
> is not in there... thought I did get everything working just right for
> my current setup, which is
> 
> ttyS0 - Modem
> ttyS1 - PalmPilot (or whatever it's called now).
> 
> I just got a BestPower Fortress (needed it), and I would like to hook up
> a serial laser printer and, if it works, leave it hooked up.
> 
> I'm not necessarily short on interrupts yet, but I figured it would be
> interesting of the slower items could just share an interrupt.
> 
> Oh well...
> 
> -dh
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> [EMAIL PROTECTED] . 
> Trouble?  e-mail to [EMAIL PROTECTED] .
> 

/*** Running Debian Linux ***
*   For God so loved the world that He gave his only begotten Son,  *
*   that whoever believes in Him should not perish...John 3:16  *
* W. Paul Mills  * Topeka, Kansas, U.S.A.   *
* [EMAIL PROTECTED] * http://homepage.midusa.net/~wpmills/ *
* [EMAIL PROTECTED]  * http://www.sound.net/~wpmills/   *
* Bill, I was there several years ago, why would I want to go back? *
/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Some remarks: Interrupts and serial ports

1998-01-14 Thread Adrian Bridgett
On Tue, Jan 13, 1998 at 07:38:33PM +0100, Wojtek Zabolotny wrote:
> 
>   Hi all!
> 
> I've read a discussion about serial ports and interrupts and still have
> some doubts.
> WHY KERNEL'S SERIAL DRIVER IS WRITTEN IN THIS WAY THAT IT'S IMPOSSIBLE TO
> SHARE INTERRUPTS?

I think it is more of a case of PC's bad design, IIRC the latest kernels can
share the interupts, but it's not recommended.

Adrian

email: [EMAIL PROTECTED]   | Debian Linux - www.debian.org
http://www.poboxes.com/adrian.bridgett   | Because bloated, unstable 
PGP key available on public key servers  | operating systems are from MS


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Some remarks: Interrupts and serial ports

1998-01-13 Thread Wojtek Zabolotny

Hi all!

I've read a discussion about serial ports and interrupts and still have
some doubts.
WHY KERNEL'S SERIAL DRIVER IS WRITTEN IN THIS WAY THAT IT'S IMPOSSIBLE TO
SHARE INTERRUPTS?
>From the hardware point of view it should be quite possible. The interrupt
line is driven by a three-state buffer, so it is impossible to use two
serial ports with the same interrupt simultaneously, but it should be
possible to use them by turns.
When program wants to open a serial device, driver should check the status
of the appropriate interrupt line, and open it only if the line is not
used by other devices. It is possible to arrange it that way by slight
changes in the serial driver (Well, I know that if it's so easy I should
propose the concrete solution, but at the moment I really have no time to 
experiment with the kernel).

 What could it be used for?
Just for example:
In my home computer I have four serial ports - two integrated with the
motherboard (used for mouse and modem), and two located on the
Multi-IO board (used for interface for my Casio organizer and EVM 56002
DSP evaluation board).
I may not sacrifice more than two (3 and 4) interrupts for serial ports,
because all other interrupts are already used by other hardware.
I usually use the mouse and ONE of the other devices, so I would like to 
use mouse with COM1/IRQ3, modem with COM2/IRQ4, CASIO with COM3/IRQ4 and
EVM with COM4/IRQ4.
Well, one may say that I could get exactly the same by using only two
serial ports with a switch ('multiplexer'), but it would be more
expensive, would increase amount of cables around my computer, and would
require to operate the switch manually when I change the device.
 
So I think it would be useful to change serial driver that way. If there
are other people interested in it, I would like to discuss with them this
problem.
Wojtek Zabolotny
[EMAIL PROTECTED]
PS.
IN FACT IT IS A PROBLEM WITH BRAIN-DEAD PC ARCHITECTURE. THERE SHOULD BE
ONE ONLY INTERRUPT LINE USED BY ALL SERIAL PORTS. THE INTERRUPT LINES IN
ISA SLOT SHOULD BE ACTIVATED WITH "0" LEVEL, AND ALL SERIAL CARDS
SHOULD HAVE OPEN DRAIN OUTPUT. CHECKING AFTER THE INTERRUPT, WHICH SERIAL
PORT CAUSED IT, CAN BE FAST ENOUGH...


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread Ben Pfaff
   So I have taken every port to it's own interupt. But my question is: Why
   can I share interupt with parallel ports? I have lp1 and lp3 on the same
   interupt, and printing and the access to my Zip drive works fine!

Chances are that, under Linux, lp1 is not really using an interrupt.
The default for printer ports is to use polling, which does not make
use of an interrupt.

You can tell whether a port is using polling or interrupt-driven
output by executing `tunelp '.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread Jens B. Jorgensen
The parallel port kernel driver doesn't use the interrupt by default, it uses
polling. (It even says so in the boot messages, at least with my kernel.)

[EMAIL PROTECTED] wrote:

> -BEGIN PGP SIGNED MESSAGE-
>
> On Sun, 11 Jan 1998, Dan Hugo wrote:
>
> > ttyS1 - PalmPilot (or whatever it's called now).
>
> Cool! I've got a Psion S3a on a ttySx port attached.
>
> > I'm not necessarily short on interrupts yet, but I figured it would be
> > interesting of the slower items could just share an interrupt.
>
> Sorry, I've tested it with with my Psion S3a and an old 9600 bps modem.
> Even if the modem has no connection, it does not work. I think, that the
> kernel does not know, which port has data when the shared interupt occurs.
>
> So I have taken every port to it's own interupt. But my question is: Why
> can I share interupt with parallel ports? I have lp1 and lp3 on the same
> interupt, and printing and the access to my Zip drive works fine!
>
> Bye
>
> Daniel Gross
>
> - -
> - - Daniel Gross <[EMAIL PROTECTED]> -
> - - Ingolstadt, Germany  <[EMAIL PROTECTED]> -
> - - "If Win95 is the answer, it must have been a real foolish question !" -
> - -
>
> -BEGIN PGP SIGNATURE-
> Version: 2.6.3ia
> Charset: noconv
> Comment: Requires PGP version 2.6 or later.
>
> iQEVAwUBNLpYsAnLrgqPNGtBAQEDgAgAhGURqGhgmyOw4vRCNUAX92pMvV8OZ7mX
> 9wsmiJbSNsOEyzqSHfTNp3IDdhQJZqXp4gqt7Ziw+alPMXf32Gi1E0hEpgrNj+y4
> BDIUgcf3n7DubM5usOtxIElSu+TFy8QNbn7H6Zc+dT5zifykCUWBLALMtuXFBfGC
> Onj28m+iyX9nZ59v7pyYrEAiMO7nu1e7a3+fPK8tqt4J6Em/Fv/ardixM7PIM/OW
> IGjV/LgHl7Vgkz11dqzkHDt/gWiI61DPrKKfWsbkOJy8xR432RuOCyn0KcvuUAww
> hJ4S4hpAZBHLWbl6md4mDyqCL66x8di9Ogf/UnirnU6+XeDD4S/c8g==
> =nbw7
> -END PGP SIGNATURE-
>
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> [EMAIL PROTECTED] .
> Trouble?  e-mail to [EMAIL PROTECTED] .



--
Jens B. Jorgensen
[EMAIL PROTECTED]



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread dg
-BEGIN PGP SIGNED MESSAGE-

On Sun, 11 Jan 1998, Dan Hugo wrote:

> ttyS1 - PalmPilot (or whatever it's called now).

Cool! I've got a Psion S3a on a ttySx port attached.

> I'm not necessarily short on interrupts yet, but I figured it would be
> interesting of the slower items could just share an interrupt.

Sorry, I've tested it with with my Psion S3a and an old 9600 bps modem. 
Even if the modem has no connection, it does not work. I think, that the
kernel does not know, which port has data when the shared interupt occurs.

So I have taken every port to it's own interupt. But my question is: Why
can I share interupt with parallel ports? I have lp1 and lp3 on the same
interupt, and printing and the access to my Zip drive works fine!

Bye

Daniel Gross

- -
- - Daniel Gross <[EMAIL PROTECTED]> -
- - Ingolstadt, Germany  <[EMAIL PROTECTED]> -
- - "If Win95 is the answer, it must have been a real foolish question !" -
- -

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBNLpYsAnLrgqPNGtBAQEDgAgAhGURqGhgmyOw4vRCNUAX92pMvV8OZ7mX
9wsmiJbSNsOEyzqSHfTNp3IDdhQJZqXp4gqt7Ziw+alPMXf32Gi1E0hEpgrNj+y4
BDIUgcf3n7DubM5usOtxIElSu+TFy8QNbn7H6Zc+dT5zifykCUWBLALMtuXFBfGC
Onj28m+iyX9nZ59v7pyYrEAiMO7nu1e7a3+fPK8tqt4J6Em/Fv/ardixM7PIM/OW
IGjV/LgHl7Vgkz11dqzkHDt/gWiI61DPrKKfWsbkOJy8xR432RuOCyn0KcvuUAww
hJ4S4hpAZBHLWbl6md4mDyqCL66x8di9Ogf/UnirnU6+XeDD4S/c8g==
=nbw7
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-12 Thread Dan Hugo
[EMAIL PROTECTED] wrote:

> 0setserial confused me to. But after all I've figuered out, that linux (on
> my machine) does NOT support 2 serials on the same interupt. What happens
> is, that they both are not useable. I have set the jumpers on my ... hmmm
> ... let me look ... AdLib ISA POWER 221 card (which has 2 serial, 2
> parallel and 1 game port) to have the two extra serials as /dev/ttyS2 and
> /dev/ttyS3 (COM3: and COM4:) with interupts 11 and 12. And I have edited
> the 0setserial file as shown below:
> 
> -  /etc/rc.boot/0setserial --- [snip] -
> ...
> 
> #
> # The typical user will only have 2 serial ports. To try and minimise
> # problems, all other configurations have been commented out!
> #
> ${SETSERIAL} -b /dev/ttyS2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
> ${SETSERIAL} -b /dev/ttyS3 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
> 
> ...
> -  /etc/rc.boot/0setserial --- [snap] -
> 
> As you can see, I have taken the '#' out. That's all.

I have a Bo-unstable drop from about almost a year ago, and that comment
is not in there... thought I did get everything working just right for
my current setup, which is

ttyS0 - Modem
ttyS1 - PalmPilot (or whatever it's called now).

I just got a BestPower Fortress (needed it), and I would like to hook up
a serial laser printer and, if it works, leave it hooked up.

I'm not necessarily short on interrupts yet, but I figured it would be
interesting of the slower items could just share an interrupt.

Oh well...

-dh


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Interrupts and serial ports

1998-01-11 Thread dg
-BEGIN PGP SIGNED MESSAGE-

On Sun, 11 Jan 1998, Dan Hugo wrote:

> I was looking through /etc/rc.boot/0setserial to see how everything is
> configured, and I noticed that in the manual configuration section, it
> attempts to setup the "COM1/3" and "COM2/4" ports to irq's 4 and 3,
> respectively.  I've read the howto's and the docs that came with the
> card, and everything is quite clear... "One serial port, one interrups."
> 
> My question-- does Linux support shared serial port interrupts in any
> way?
> 
> The 0setserial file confused me a bit on this.

Hi Dan!

0setserial confused me to. But after all I've figuered out, that linux (on
my machine) does NOT support 2 serials on the same interupt. What happens
is, that they both are not useable. I have set the jumpers on my ... hmmm
... let me look ... AdLib ISA POWER 221 card (which has 2 serial, 2
parallel and 1 game port) to have the two extra serials as /dev/ttyS2 and
/dev/ttyS3 (COM3: and COM4:) with interupts 11 and 12. And I have edited
the 0setserial file as shown below:

-  /etc/rc.boot/0setserial --- [snip] -
...

#
# The typical user will only have 2 serial ports. To try and minimise
# problems, all other configurations have been commented out!
#
${SETSERIAL} -b /dev/ttyS2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
${SETSERIAL} -b /dev/ttyS3 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}

...
-  /etc/rc.boot/0setserial --- [snap] -

As you can see, I have taken the '#' out. That's all.

Try it, and mail me, if you need further help!

Bye

Daniel

P.S. The two-serials-on-one-interupt-solution works fine with DOS and
systems, that can only access one port at a time. But I had problems with
Windows and Linux. My configuration was ttyS0 = modem and ttyS2 = terminal
(local attached Psion S3a) and I couldn't get this to work with both on
the same interupt. 

- -
- - Daniel Gross <[EMAIL PROTECTED]> -
- - Ingolstadt, Germany  <[EMAIL PROTECTED]> -
- - "If Win95 is the answer, it must have been a real foolish question !" -
- -

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBNLlHGQnLrgqPNGtBAQE6Fgf/dHjhtJF+UP+wO+3ELW84XITKgXKIXzOi
7j2zErEEbmmDyz57rKbxm8ybkE2HTyjU+r9eNwGzxf8j4ugRFhulhzyL+VWet21O
7RKEMR8HXGam2xftFGhE5OYOqd8WaeZaTKwWI8gZ1NsHfeOlbcouIYGAF8kmAm6e
3Cj9ZUYjyZXpwIjZX5jRpjlQL3+LHFpvNXCiG93WBErP9Xs+rq+3ETuLHgFfcIgs
4mqbmn2+1TcXbgzhjE0A/Iqd8YleRGsrnftEFcnW/kof30CZ0ZHiibNlF5j7GHMH
NrH5rHiEGuuhvCgnw7DqKAeSfwwrWfdOGjvZ6tdoJvm2rKmKOal6lA==
=KEhu
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Interrupts and serial ports

1998-01-11 Thread Dan Hugo
I have a SIIG serial port ISA card so I can add on two more serial
ports.

I was looking through /etc/rc.boot/0setserial to see how everything is
configured, and I noticed that in the manual configuration section, it
attempts to setup the "COM1/3" and "COM2/4" ports to irq's 4 and 3,
respectively.  I've read the howto's and the docs that came with the
card, and everything is quite clear... "One serial port, one interrups."

My question-- does Linux support shared serial port interrupts in any
way?

The 0setserial file confused me a bit on this.

Thanks for any input.

-dh


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .