serial driver question
I have been wondering about the serial drivers shared irq configuration parameter. Will it allow two dumb serial ports which know nothing about sharing irq's to actually share the same irq, or does the actual hardware have to support some kind of irq sharing for this to work?
I did try two ports on the same irq, but one of them isn't seem at all by Linux, so I am quite curious whether I am barking up the wrong line?
Thanks.
Signature · 2 lines
John Covici
[email protected]Quoted 3 lines · John Covici
I have been wondering about the serial drivers shared irq configuration parameter. Will it allow two dumb serial ports which know nothing about sharing irq's to actually share the same irq, or
no.
Quoted 2 lines
does the actual hardware have to support some kind of irq sharing for this to work?
yes.
For one there are multiport serial cards that combine every ports' irq into one.
PCI cards should also be able to share their irqs (with other PCI cards).
But you can't share an ISA irq with a PCI one.
And you can't share one ISA card's irq with another ISA one nor the irqs of a dumb ISA multiport card either ...
... without some modification, that is ;-)
Imagine the situation on a typical ISA card:
Card ISA Mainboard
connector
-------+ " | to other ISA connectors
| Jumper " |
IC |-------------+--*=*-----------"------+
| | " |
-------+ +--* *------ " | to IRQ-Controller-IC
| "
+--* *------Now replace the jumper for each irq sharing device with a diode and add one resistor to the irq line:
-------+ Diode " | to other ISA connectors
| e.g. 1n4148 " |
IC |-------------+--*=*--|>|---+--"------+
| | A K | " |
-------+ +--* *--- | " | to IRQ-Controller-IC
| # "
+--* *--- # Resistor 20kOhm
#
|
__|__ GNDSo for 4 serial ports sharing a single irq line you wuld use 4 diodes and 1 resistor.
Quoted 3 lines
I did try two ports on the same irq, but one of them isn't seem at all by Linux, so I am quite curious whether I am barking up the wrong line?
It should be seen. You won't be able to use them effectively (they'll be transmitting only about 16 bytes every 30 seconds or something) but they should definitively be detected both.
Did you use setserial to convince the kernel of their presence?
Quoted 3 lines
Thanks.
Bye,
Thorsten
Signature · 3 lines
| Thorsten Kranzkowski Internet: [email protected] | | Mobile: ++49 170 1876134 Snail: Niemannsweg 30, 49201 Dissen, Germany | | Ampr: dl8bcu@db0lj.#rpl.deu.eu, [email protected] [44.130.8.19] |