National Instruments and PCI-485/4 Isolated ユーザーズマニュアル
Using PCI Serial with Linux
8
www.natinst.com
linux PCI-SERIAL#
./intenable <
PCI memory address found
in lspci>
For example, enter the following to enable interrupts for a PCI serial
interface with memory at 0x000dff80:
interface with memory at 0x000dff80:
linux PCI-SERIAL# ./intenable dff80
Configuration
View Your Hardware Resources
To see what system resources your serial interface is using, use the
setserial
command, as follows:
linux# setserial -gv /dev/ttyS<
port number>
For the
lspci
and
setserial
examples, something similar to the
following should appear:
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
/dev/ttyS4, UART: 16550A, Port: 0xdff0, IRQ: 11
/dev/ttyS5, UART: 16550A, Port: 0xdfe0, IRQ: 11
Enable FIFO Buffers
Use
FIFOtrigger
(from the
PCI-SERIAL
directory) to enable the receive
and transmit FIFOs and to set the trigger levels of these FIFOs.
FIFOtrigger
enables the FIFO of only one serial port. To enable the FIFO
for your other serial ports, rerun
FIFOtrigger
with a different serial port
number specified in the command line. Enter the following to use
FIFOtrigger
:
linux PCI-SERIAL#./FIFOtrigger <
port number>
<
rx_trigger> <tx_trigger>