NTWOC(4) | Device Drivers Manual | NTWOC(4) |
ntwoc
— Riscom/N2,
N2pci, WANic 400 synchronous serial interfaces
ntwoc* at pci? dev ? function ? flags 0
ntwoc0 at isa? port 0x300 irq 5 iomem 0xc8000 flags
1
The ntwoc
device driver supports
bit-synchronous serial communication using Cisco HDLC framing. The cards are
capable of being driven by the line clock or from an internal baud rate
generator. The devices all use the Hitachi hd64570 serial chip. The hd64570
supports 2 asynchronous/byte-synchronous/bit-synchronous serial ports, and
has a 4-channel DMA controller for loading the serial port FIFOs.
The ISA Riscom/N2 card has a jumper block to set the IRQ and a DIP
switch to set the port address the card will use. The values programmed into
the card must be specified with the port
and
irq
locators in the kernel configuration line. The
iomem
locator must be specified and must occur on a
16k boundary. The driver uses a 16k region of io memory. Bit 0 of the
flags
locator indicates if there is a second serial
port available on the card.
Currently clock source and speed information is specified with the
flags
locator in the kernel configuration file. The
flags field has the following format.
3 2 1 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +-------------+ +-----+ +-----+ + +---+ +-+ + +---+ +-+ + tmc tdiv rdiv e1 rxs1 ts1 e0 rxs0 txs0 np(*)
Cards supported by the ntwoc
driver
include:
The PCI driver first appeared in NetBSD
1.4. Much of the ISA driver was adapted from the
FreeBSD sr
driver and first
appeared in NetBSD 1.5.
Use of the flags
locator for setting the
clock sources and speeds should be replaced with ioctl's and a control
program.
October 2, 1998 | NetBSD 10.99 |