xref: /freebsd/share/man/man4/man4.i386/sbni.4 (revision e0c4386e)
1.\" Written by Denis I. Timofeev, 2002.
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\"    notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright
9.\"    notice, this list of conditions and the following disclaimer in the
10.\"    documentation and/or other materials provided with the distribution.
11.\"
12.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22.\" SUCH DAMAGE.
23.\"
24.Dd January 8, 2002
25.Dt SBNI 4 i386
26.Os
27.Sh NAME
28.Nm sbni
29.Nd Granch SBNI12 leased line modem driver
30.Sh SYNOPSIS
31.Cd "device sbni"
32.Sh DESCRIPTION
33The
34.Nm
35driver provides support for leased line modems of following models:
36.Pp
37.Bl -bullet -compact
38.It
39SBNI12-02, SBNI12D-02
40.It
41SBNI12-04, SBNI12D-04
42.It
43SBNI12-05, SBNI12D-05, ISA and PCI
44.It
45SBNI12-10, SBNI12D-10, ISA and PCI
46.El
47.Pp
48and a kit for data link over a voice band:
49.Bl -bullet
50.It
51SBNI12-11, SBNI12D-11, ISA and PCI.
52.El
53.Pp
54In addition to the standard port and IRQ specifications, the
55.Nm
56driver also supports a number of
57.Va flags
58which can set baud rate, receive level, and low three bytes of Ethernet
59MAC-address (high three are always
60.Li 00:ff:01 ) ,
61because Granch modems are
62presented to the system as Ethernet-like network cards.
63.Pp
64The high byte of the
65.Va flags
66is a bit field, it is used to specify SBNI adapter receive level/baud rate:
67.Bl -tag -width "Bits 0-3:" -offset indent
68.It "Bits 0-3:"
69receive level (0x00..0x0f)
70.It "Bits 4-5:"
71baud rate number:
72.Pp
73.Bl -inset -compact
74.It "00 -"
750 baud rate (2Mb in fast mode/500kb in slow)
76.It "01 -"
771 baud rate (1Mb/250kb)
78.It "10 -"
792 baud rate (500kb/125kb)
80.It "11 -"
813 baud rate (250kb/62.5kb)
82.El
83.It "Bit 6:"
84use fixed receive level
85.Pp
86if bit 6 is set then receive level will be set according
87to bits 0-3 value, otherwise receive level will be
88autodetected
89.It "Bit 7:"
90use fixed baud rate
91.Pp
92if bit 7 is set then baud rate will be set according to
93bits 4-5 value, otherwise baud rate is set to 2Mb
94.El
95.Sh FILES
96The sources for the driver reside in:
97.Pp
98.Bl -tag -width ".Pa /sys/dev/sbni/if_sbni.c" -compact
99.It Pa /sys/dev/sbni/if_sbni.c
100.It Pa /sys/dev/sbni/if_sbnireg.h
101.It Pa /sys/dev/sbni/if_sbnivar.h
102.El
103.Sh SEE ALSO
104.Xr arp 4 ,
105.Xr netintro 4 ,
106.Xr ifconfig 8
107.Sh HISTORY
108The
109.Nm
110device driver first appeared in
111.Fx 4.6 .
112.Sh AUTHORS
113.An -nosplit
114The
115.Nm
116device driver for
117.Fx
1184.x was written by
119.An Denis I. Timofeev ,
120partially based on
121.An David Greenman Ns 's
122.Xr ed 4
123driver.
124Earlier versions (available on
125.Pa ftp.granch.com )
126were written by
127.An Alexey V. Zverev .
128.Pp
129SBNI12 hardware was designed by
130.An Alexey V. Chirkov .
131