xref: /freebsd/share/man/man4/sk.4 (revision 6137b5f7b8c183ee8806d79b3f1d8e5e3ddb3df3)
1.\" Copyright (c) 1997, 1998, 1999
2.\"	Bill Paul <wpaul@ctr.columbia.edu>. 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 Bill Paul.
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 Bill Paul AND CONTRIBUTORS ``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 Bill Paul OR THE VOICES IN HIS HEAD
23.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29.\" THE POSSIBILITY OF SUCH DAMAGE.
30.\"
31.Dd August 29, 2012
32.Dt SK 4
33.Os
34.Sh NAME
35.Nm sk
36.Nd "SysKonnect SK-984x and SK-982x PCI Gigabit Ethernet adapter driver"
37.Sh SYNOPSIS
38To compile this driver into the kernel,
39place the following lines in your
40kernel configuration file:
41.Bd -ragged -offset indent
42.Cd "device miibus"
43.Cd "device sk"
44.Ed
45.Pp
46Alternatively, to load the driver as a
47module at boot time, place the following line in
48.Xr loader.conf 5 :
49.Bd -literal -offset indent
50if_sk_load="YES"
51.Ed
52.Sh DESCRIPTION
53The
54.Nm
55driver provides support for the SysKonnect SK-984x and SK-982x series PCI
56Gigabit Ethernet adapters.
57.Pp
58The SysKonnect adapters consist of two main components: the XaQti Corp.
59XMAC II gigabit MAC and the SysKonnect GEnesis controller ASIC.
60The
61XMAC provides the gigabit MAC and PHY support while the GEnesis
62provides an interface to the PCI bus, DMA support, packet buffering
63and arbitration.
64The GEnesis can control up to two XMACs simultaneously,
65allowing dual-port NIC configurations.
66.Pp
67The SK-982x 1000baseT adapters also include a Broadcom BCM5400 1000baseTX
68PHY which is used in place of the XMAC's internal PHY.
69The Broadcom PHY is connected to the XMAC via its GMII port.
70.Pp
71The
72.Nm
73driver configures dual port SysKonnect adapters such that each XMAC
74is treated as a separate logical network interface.
75Both ports can
76operate independently of each other and can be connected to separate
77networks.
78The SysKonnect driver software currently only uses the
79second port on dual port adapters for failover purposes: if the link
80on the primary port fails, the SysKonnect driver will automatically
81switch traffic onto the second port.
82.Pp
83Also supported is the Marvell Semiconductor 88E100* gigabit PHY.
84.Pp
85The XaQti XMAC II supports full and half duplex operation with
86autonegotiation.
87The XMAC also supports unlimited frame sizes.
88Support for jumbo frames is provided via the interface MTU setting.
89Selecting an MTU larger than 1500 bytes with the
90.Xr ifconfig 8
91utility configures the adapter to receive and transmit jumbo frames.
92Using jumbo frames can greatly improve performance for certain tasks,
93such as file transfers and data streaming.
94.Pp
95The
96.Nm
97driver supports the following media types:
98.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
99.It autoselect
100Enable autoselection of the media type and options.
101The user can manually override
102the autoselected mode by adding media options to the
103.Pa /etc/rc.conf
104file.
105.It 1000baseTX
106Set 1000baseTX operation over twisted pair.
107This is only available
108for SK-982x series adapters with 1000baseT ports.
109Both
110.Ar full-duplex
111and
112.Ar half-duplex
113modes are supported.
114.It 1000baseSX
115Set 1000Mbps (Gigabit Ethernet) operation.
116Both
117.Ar full-duplex
118and
119.Ar half-duplex
120modes are supported.
121.El
122.Pp
123The
124.Nm
125driver supports the following media options:
126.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
127.It full-duplex
128Force full duplex operation.
129.It half-duplex
130Force half duplex operation.
131.El
132.Pp
133For more information on configuring this device, see
134.Xr ifconfig 8 .
135.Sh HARDWARE
136Adapters supported by the
137.Nm
138driver include:
139.Pp
140.Bl -bullet -compact
141.It
1423Com 3C940 single port, 1000baseT adapter
143.It
1443Com 3C2000-T single port, 1000baseT adapter
145.It
146Belkin F5D5005 single port, 1000baseT adapter
147.It
148D-Link DGE-530T single port, 1000baseT adapter
149.It
150Linksys (revision 2) single port, 1000baseT adapter
151.It
152SK-9521 SK-NET GE-T single port, 1000baseT adapter
153.It
154SK-9821 SK-NET GE-T single port, 1000baseT adapter
155.It
156SK-9822 SK-NET GE-T dual port, 1000baseT adapter
157.It
158SK-9841 SK-NET GE-LX single port, single mode fiber adapter
159.It
160SK-9842 SK-NET GE-LX dual port, single mode fiber adapter
161.It
162SK-9843 SK-NET GE-SX single port, multimode fiber adapter
163.It
164SK-9844 SK-NET GE-SX dual port, multimode fiber adapter
165.It
166SMC 9452TX single port, 1000baseT adapter
167.El
168.Sh LOADER TUNABLES
169Tunables can be set at the
170.Xr loader 8
171prompt before booting the kernel or stored in
172.Xr loader.conf 5 .
173.Bl -tag -width xxxxxx
174.It Va hw.skc.jumbo_disable
175Disable jumbo frame support.
176Systems with less memory can set it to a non-zero value to save memory.
177The default value is 0.
178.El
179.Sh SYSCTL VARIABLES
180The following variable is available as both
181.Xr sysctl 8
182variable and
183.Xr loader 8
184tunable:
185.Bl -tag -width xxxxxx
186.It Va dev.skc.%d.int_mod
187This variable controls interrupt moderation.
188The accepted range is 10 to 10000.
189The default value is 100 microseconds.
190The interface has to be brought down and up again before a change takes effect.
191.El
192.Sh DIAGNOSTICS
193.Bl -diag
194.It "sk%d: couldn't map memory"
195A fatal initialization error has occurred.
196.It "sk%d: couldn't map ports"
197A fatal initialization error has occurred.
198.It "sk%d: couldn't map interrupt"
199A fatal initialization error has occurred.
200.It "sk%d: no memory for softc struct!"
201The driver failed to allocate memory for per-device instance information
202during initialization.
203.It "sk%d: failed to enable memory mapping!"
204The driver failed to initialize PCI shared memory mapping.
205This might
206happen if the card is not in a bus-master slot.
207.It "sk%d: no memory for jumbo buffers!"
208The driver failed to allocate memory for jumbo frames during
209initialization.
210.It "sk%d: watchdog timeout"
211The device has stopped responding to the network, or there is a problem with
212the network connection (cable).
213.El
214.Sh SEE ALSO
215.Xr altq 4 ,
216.Xr arp 4 ,
217.Xr miibus 4 ,
218.Xr netintro 4 ,
219.Xr ng_ether 4 ,
220.Xr vlan 4 ,
221.Xr ifconfig 8
222.Rs
223.%T XaQti XMAC II datasheet
224.%U https://people.freebsd.org/~wpaul/SysKonnect/xmacii_datasheet_rev_c_9-29.pdf
225.Re
226.Rs
227.%T SysKonnect GEnesis programming manual
228.%U http://www.syskonnect.com
229.Re
230.Sh HISTORY
231The
232.Nm
233device driver first appeared in
234.Fx 3.0 .
235.Sh AUTHORS
236The
237.Nm
238driver was written by
239.An Bill Paul Aq Mt wpaul@ctr.columbia.edu .
240