]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man4/man4.i386/sr.4
This commit was generated by cvs2svn to compensate for changes in r51292,
[FreeBSD/FreeBSD.git] / share / man / man4 / man4.i386 / sr.4
1 .\"
2 .\" Copyright (c) 1996 John Hay.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"        This product includes software developed by John Hay.
15 .\" 4. Neither the name of the author nor the names of any co-contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"    without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY John Hay ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL John Hay BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\" $FreeBSD$
32 .\"
33 .Dd July 4, 1996
34 .Dt SR 4 i386
35 .Os
36 .Sh NAME
37 .Nm sr
38 .Nd synchronous RISCom/N2 / WANic 400/405 device driver.
39 .Sh SYNOPSIS
40 .Cd "device sr0 at isa? port 0x300 irq 10 iomem 0xd0000"
41 .Cd "device sr1 at isa? port 0x310 irq 11 flags 0x1 iomem 0xd0000"
42 .Pp
43 .Cd "pseudo-device sppp"
44 .Sh DESCRIPTION
45 The
46 .Nm sr
47 driver supports the RISCom/N2 ISA cards and the WANic 400/405 PCI cards
48 that is based on the HD64570 chip.
49 .Pp
50 The standard
51 .Tn FreeBSD
52 sppp code is used for the link level layer. The
53 default protocol used is PPP. The Cisco HDLC protocol can be used by
54 adding
55 .Em link2
56 to
57 .Xr ifconfig 8 .
58 .Pp
59 The
60 .Em flags
61 field is optional. If it isn't specified, the driver will
62 assume the following:
63 .Pp
64 .Bl -hang -offset indent
65 .It "The card has 2 ports."
66 .It "The clock for the serial ports is external and the transmitter uses"
67 the same clock as the receiver.
68 .El
69 .Pp
70 The
71 .Em flags
72 are a bit field and can be used to force a different
73 behaviour than the default.
74 .Pp
75 .Bl -hang -offset indent
76 .It Em 0x01
77 The card has only one port.
78 .It Em 0x10
79 Use separate external clocks for transmit and receive on port 0.
80 .It Em 0x40
81 Use separate external clocks for transmit and receive on port 1.
82 .El
83 .Pp
84 .Sh NUMBERING
85 Only one line for each card is needed in the kernel configuration file.
86 The first card's ports will be installed from sr0. The numbering of the
87 next card will continue where the first stopped, eg. if the first card
88 is a two port card it will use sr0 and sr1. The next card will then
89 start at sr2.
90 .Pp
91 The card only supports IRQ 3, 4, 5, 7, 10, 11, 12 and 15.
92 .Pp
93 The iomem area is a 16Kb block and must start at a 16Kb boundary.
94 .Pp
95 .Sh DIAGNOSTICS
96 .Bl -diag
97 .It "sr%d: Warning illegal interrupt %d."
98 The card cannot use the specified interrupt. Choose a different one.
99 .El
100 .Sh FILES
101 .Bl -tag -width /sys/i386/isa/ic/hd64570.h -compact
102 .It Pa /sys/i386/isa/ic/hd64570.h
103 .It Pa /sys/i386/isa/if_srregs.h
104 .It Pa /sys/i386/isa/if_sr.c
105 .It Pa /sys/pci/if_sr_p.c
106 .El
107 .Sh BUGS
108 At the moment only the X.21 interface is tested. The others
109 may need tweaks to the clock selection code.
110 .Pp
111 The code can probably stand some optimizing.
112 .Sh SEE ALSO
113 .Xr ar 4 ,
114 .Xr cx 4 ,
115 .Xr netintro 4 ,
116 .Xr ifconfig 8 ,
117 .Xr lsdev 8
118 .Sh AUTHORS
119 The
120 .Nm sr
121 device driver was written by
122 .An John Hay Aq jhay@FreeBSD.org