1 .\" $NetBSD: ntwoc.4,v 1.8 2004/05/11 22:58:22 wiz Exp $
3 .\" Copyright (c) 2000 Christian E. Hopps
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. The name of the author may not be used to endorse or promote products
15 .\" derived from this software without specific prior written permission
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 .Nd Riscom/N2, N2pci, WANic 400 synchronous serial interfaces
35 .Cd "ntwoc* at pci? dev ? function ? flags 0"
36 .Cd "ntwoc0 at isa? port 0x300 irq 5 iomem 0xc8000 flags 1"
40 device driver supports bit-synchronous serial communication using
42 The cards are capable of being driven by
43 the line clock or from an internal baud rate generator.
44 The devices all use the Hitachi hd64570 serial chip.
45 The hd64570 supports 2 asynchronous/byte-synchronous/bit-synchronous
46 serial ports, and has a 4-channel DMA controller for loading
47 the serial port FIFOs.
49 The ISA Riscom/N2 card has a jumper block to set the IRQ and a DIP switch
50 to set the port address the card will use.
51 The values programmed into the card must be specified with the
55 locators in the kernel configuration line.
58 locator must be specified and must occur on a 16k boundary.
59 The driver uses a 16k region of io memory.
62 locator indicates if there is a second serial port available on the
66 clock source and speed information is specified with the
68 locator in the kernel configuration file.
69 The flags field has the following format.
72 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
73 +-------------+ +-----+ +-----+ + +---+ +-+ + +---+ +-+ +
74 tmc tdiv rdiv e1 rxs1 ts1 e0 rxs0 txs0 np(*)
76 .Bl -tag -width "rxs0 rxs1"
78 Defines the timer constant.
79 The base clock frequency is divided by
81 to generate the main clock for receiving and sending.
82 Further division is possible with the
87 A value of 0 is treated as 256.
89 Defines the transmit divisor as
91 The internal transmit clock
92 frequency is determined by dividing the base clock frequency by
97 Defines the receive divisor as
99 The internal receive clock
100 frequency is determined by dividing the base clock frequency by
103 .Pf "2^(" Va rdiv ) .
105 If true the internal clock source is used to drive the line clock for port 0
106 or port 1 respectively.
108 Specifies which clock source to use for receiving data on port 0 and
110 The following values are accepted:
112 .Bl -tag -width "000" -compact
116 Line clock with noise suppression.
121 Specifies which clock source to use for transmitting data on port 0
122 and port 1 respectively.
123 The following values are accepted:
125 .Bl -tag -width "000" -compact
134 (For the ISA card only)
135 A value of 1 indicates there is a second serial
136 port present on the card.
137 This is auto-detected on the PCI card and need not be specified.
140 Cards supported by the
146 SDL Communications Riscom/N2
148 SDL Communications N2pci
150 SDL Communications WANic 400 (untested)
154 .It "ntwoc0: TXDMA underrun - fifo depth maxed"
155 Indicates that the serial port's FIFO is being drained faster
156 than DMA can fill it.
157 The driver automatically increases the low-water mark at which to
158 begin DMA transfers when underruns occur.
159 This diagnostic is issued when the low-water mark is
160 maximized (i.e., 1 less than the depth of the FIFO).
161 .It "ntwoc0: RXDMA buffer overflow"
162 Indicates that a frame is being received by the card, but
163 there are no free receive buffers.
171 The PCI driver first appeared in
173 Much of the ISA driver was adapted from the
176 driver and first appeared in
181 locator for setting the clock sources and speeds should be replaced with
182 ioctl's and a control program.