National Instruments PCI-485/4 Tablet User Manual


 
© National Instruments Corporation 7 Using PCI Serial with Linux
linux# setserial /dev/ttyS5 uart 16550A port 0xdfe0 irq
11 ^fourport
Assign Serial Drivers Using PCI-485
Since the PCI-485 supports a higher baud_base of 460.8K at start-up, also
enter the following at the linux prompt:
linux# setserial /dev/ttyS<
port number
> baud_base
460800
For example, enter the following to assign the serial driver to /dev/ttyS4
for a PCI-485 serial port at port address 0xdfe0 and IRQ 11.
linux# setserial /dev/ttyS4 uart 16550A port 0xdfe0 irq
11 ^fourport
linux# setserial /dev/ttyS4 baud_base 460800
Assign Serial Drivers Using PCI Eight-Port Interfaces
Enter the following to assign the serial driver to your devices for the PCI
eight-port
lspci output. Notice that the entries for port are consecutive
and are separated by exactly 8 bytes.
linux# setserial /dev/ttyS4 uart 16550A port 0xdf00 irq
11 ^fourport
linux# setserial /dev/ttyS5 uart 16550A port 0xdf08 irq
11 ^fourport
linux# setserial /dev/ttyS6 uart 16550A port 0xdf10 irq
11 ^fourport
linux# setserial /dev/ttyS7 uart 16550A port 0xdf18 irq
11 ^fourport
linux# setserial /dev/ttyS8 uart 16550A port 0xdf20 irq
11 ^fourport
linux# setserial /dev/ttyS9 uart 16550A port 0xdf28 irq
11 ^fourport
linux# setserial /dev/ttyS10 uart 16550A port 0xdf30 irq
11 ^fourport
linux# setserial /dev/ttyS11 uart 16550A port 0xdf38 irq
11 ^fourport
Enable PCI Interrupt
To enable the PCI interrupt on your serial interface, use intenable,
provided in the
PCI-SERIAL directory. Run intenable each time you
restart your computer. If you have more than one PCI serial interface, rerun
intenable with another PCI memory address specified in the command
line. Enter the following to use
intenable: