Using PCI Serial with Linux 6 www.natinst.com
00:0a.0 Class ff00: 1093:d140 (rev 01)
Flags: medium devsel, IRQ 11
Memory at 000dff80 (low-1M, non-prefetchable)
I/O ports at dff0
I/O ports at dfe0
Write down the IRQ, memory location, and all the I/O port addresses
for your computer.
Note PCI Eight-Port Users—The PCI eight-port interfaces show only one I/O port
address listing. The addresses of the other seven I/O ports are calculated by adding eight to
the previous port address, (n × 8 + I/O port) for 0 < n < 8. The
lspci call displays
something similar to the following:
00:0a.0 Class ff00: 1093:d150 (rev 01)
Flags: medium devsel, IRQ 11
Memory at 000dff80 (low-1M, non-prefetchable)
I/O ports at df00
Assign Serial Driver
Assign the serial driver to your devices.
Note You need to repeat this step each time you restart your computer or until you set up
your
/etc/rc.d/rc.serial file. (Refer to the section Sample /etc/rc.d/rc.serial File for
more information on setting up the
/etc/rc.d/rc.serial file.)
Enter the following to use
setserial to tell the kernel each device’s
UART, port address, and IRQ. Use information returned from the
lspci
output, and remember to precede the port address with
0x.
linux# setserial /dev/ttyS<
port number
> uart 16550A
port <
port address
> irq <
irq
> ^fourport
Note
The ^fourport flag is required regardless of how many ports you have on your
interface. The
^fourport flag tells the serial driver that you are not using an AST
four-port interface.
Caution Using an invalid port can lock up your machine.
setserial Example
Enter the following to assign the serial driver to your devices for the values
in the above two-port
lscpi output:
linux# setserial /dev/ttyS4 uart 16550A port 0xdff0 irq
11 ^fourport