Multi serial port interface

Hi all
I’m trying to configure a multi serial PCI card in QNX
The model is PCI-1610A

The 4 port are suppose to share the same IRQ (Int 5 in my case)

I want to make a /dev/ser for those port and how can a determine wath is the
address use by each serial port

I know that the command to set ser1 and ser2 is:
devc-ser8250 -u1 3f8,4
devc-ser8250 -u2 2f8,3

For ser3,ser4,ser5,ser6, I guess something like

devc-ser8250 -u3 ???,5
devc-ser8250 -u4 ???,5
devc-ser8250 -u5 ???,5
devc-ser8250 -u6 ???,5


Thanks in advance!

Jean-Francois Bélisle

devc-ser8250 works with 8250, 16550 and alike UARTS. For you multicard you
need a driver and maybe some utilities that you may ask a manufacture for.

Dmitry Androshchuk

The standard driver might very well work, but you need to find
the addresses and irq first. Start with something like

devc-ser8250 280,3 288,3 290,3 298,3 &

where you have to replace the addresses and IRQ with the correct ones
which have to be extracted by e.g. PCI-BIOS calls.
This works for e.g. the Connect Tech Blue Heat PCI adapter which ship with a
wrapper function that extract the addresses and IRQ and then starts devc-ser8250.

You will probably notice that the FIFO high watermark will be proportional
to the FIFO depth, i.e. I think the standard driver assumes a 16550 with 16bytes FIFO,
so if you have128 byte FIFOs and select 14 bytes watermark (with the -t option) you
will get 14/16*128 = 112.

Tom


“Dmitry P. Androschuk” wrote:

devc-ser8250 works with 8250, 16550 and alike UARTS. For you multicard you
need a driver and maybe some utilities that you may ask a manufacture for.

Dmitry Androshchuk

“Dmitry P. Androschuk” wrote:

devc-ser8250 works with 8250, 16550 and alike UARTS. For you multicard you
need a driver and maybe some utilities that you may ask a manufacture for.

PCI-1610 defaults to 16550 after reset. I’ve been using such cards under QNX
4.2x (actually PCI-1602 but they are based on the same 954 chip), I’ve just
found adresses with show_pci (with -v option!). One thing you must be
carrefull with is baud rate: this card clock is faster eight times then
normal 16550 clock, so you
have to set baud rate divided by 8 (if you set 1200 bits/s you get 9600
bits/s).

Regards,
Greg Wrobel

wrobel@no-spam.zdania.com.pl Experimental Department of Scientific
phone: (+48 12) 617-2883 Equipment and Automation
fax: (+48 12) 634-2205 30-059 Krakow, al.Mickiewicza 30, Poland

Now devc-ser8250 works fine for me to!

Thank’s for the baud rate trick!

Regards

J-F

“Grzegorz Wrobel” <wrobel@WYTNIJ-TO.kaniup.agh.edu.pl> ha scritto nel
messaggio news:3C751EA2.6683B981@WYTNIJ-TO.kaniup.agh.edu.pl

“Dmitry P. Androschuk” wrote:

devc-ser8250 works with 8250, 16550 and alike UARTS. For you multicard
you
need a driver and maybe some utilities that you may ask a manufacture
for.

PCI-1610 defaults to 16550 after reset. I’ve been using such cards under
QNX
4.2x (actually PCI-1602 but they are based on the same 954 chip), I’ve
just
found adresses with show_pci (with -v option!). One thing you must be
carrefull with is baud rate: this card clock is faster eight times then
normal 16550 clock, so you
have to set baud rate divided by 8 (if you set 1200 bits/s you get 9600
bits/s).

Regards,
Greg Wrobel

wrobel@no-spam.zdania.com.pl > Experimental Department of Scientific
phone: (+48 12) 617-2883 Equipment and Automation
fax: (+48 12) 634-2205 30-059 Krakow, al.Mickiewicza 30, Poland