xref: /freebsd/share/man/man4/sk.4 (revision 3642298923e528d795e3a30ec165d2b469e28b40)
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.\" $FreeBSD$
32.\"
33.Dd July 16, 2005
34.Dt SK 4
35.Os
36.Sh NAME
37.Nm sk
38.Nd "SysKonnect SK-984x and SK-982x PCI Gigabit Ethernet adapter driver"
39.Sh SYNOPSIS
40To compile support for the
41.Nm
42driver into your kernel, place the following lines in your
43kernel configuration file:
44.Bd -ragged -offset indent
45.Cd "device miibus"
46.Cd "device sk"
47.Ed
48.Pp
49Alternatively, to load the
50.Nm
51driver at boot time, place the following line in
52.Xr loader.conf 5 :
53.Bd -literal -offset indent
54if_sk_load="YES"
55.Ed
56.Sh DESCRIPTION
57The
58.Nm
59driver provides support for the SysKonnect SK-984x and SK-982x series PCI
60Gigabit Ethernet adapters.
61.Pp
62The SysKonnect adapters consist of two main components: the XaQti Corp.
63XMAC II gigabit MAC and the SysKonnect GEnesis controller ASIC.
64The
65XMAC provides the gigabit MAC and PHY support while the GEnesis
66provides an interface to the PCI bus, DMA support, packet buffering
67and arbitration.
68The GEnesis can control up to two XMACs simultaneously,
69allowing dual-port NIC configurations.
70.Pp
71The SK-982x 1000baseT adapters also include a Broadcom BCM5400 1000baseTX
72PHY which is used in place of the XMAC's internal PHY.
73The Broadcom PHY is connected to the XMAC via its GMII port.
74.Pp
75The
76.Nm
77driver configures dual port SysKonnect adapters such that each XMAC
78is treated as a separate logical network interface.
79Both ports can
80operate independently of each other and can be connected to separate
81networks.
82The SysKonnect driver software currently only uses the
83second port on dual port adapters for failover purposes: if the link
84on the primary port fails, the SysKonnect driver will automatically
85switch traffic onto the second port.
86.Pp
87Also supported is the Marvell Semiconductor 88E1000* gigabit PHY.
88.Pp
89The XaQti XMAC II supports full and half duplex operation with
90autonegotiation.
91The XMAC also supports unlimited frame sizes.
92Support for jumbo frames is provided via the interface MTU setting.
93Selecting an MTU larger than 1500 bytes with the
94.Xr ifconfig 8
95utility configures the adapter to receive and transmit jumbo frames.
96Using jumbo frames can greatly improve performance for certain tasks,
97such as file transfers and data streaming.
98.Pp
99The
100.Nm
101driver supports the following media types:
102.Pp
103.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
104.It autoselect
105Enable autoselection of the media type and options.
106The user can manually override
107the autoselected mode by adding media options to the
108.Pa /etc/rc.conf
109file.
110.It 1000baseTX
111Set 1000baseTX operation over twisted pair.
112This is only available
113for SK-982x series adapters with 1000baseT ports.
114Both
115.Ar full-duplex
116and
117.Ar half-duplex
118modes are supported.
119.It 1000baseSX
120Set 1000Mbps (Gigabit Ethernet) operation.
121Both
122.Ar full-duplex
123and
124.Ar half-duplex
125modes are supported.
126.El
127.Pp
128The
129.Nm
130driver supports the following media options:
131.Pp
132.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
133.It full-duplex
134Force full duplex operation
135.It half-duplex
136Force half duplex operation.
137.El
138.Pp
139The
140.Nm
141driver also supports one special link option for 1000baseTX cards:
142.Pp
143.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
144.It link0
145With 1000baseTX cards, establishing a link between two ports requires
146that one port is configured as master and the other one as slave.
147With autonegotiation,
148the master/slave settings will be chosen automatically.
149However when manually selecting the link state, it is necessary to
150force one side of the link to be a master and the other a slave.
151The
152.Nm
153driver configures the ports as slaves by default.
154Setting the
155.Ar link0
156flag with
157.Xr ifconfig 8
158will set a port as a master instead.
159.El
160.Pp
161For more information on configuring this device, see
162.Xr ifconfig 8 .
163.Sh HARDWARE
164Adapters supported by the
165.Nm
166driver include:
167.Pp
168.Bl -bullet -compact
169.It
1703Com 3C940 single port, 1000baseT adapter
171.It
1723Com 3C2000-T single port, 1000baseT adapter
173.It
174Belkin F5D5005 single port, 1000baseT adapter
175.It
176D-Link DGE-530T single port, 1000baseT adapter
177.It
178Linksys EG1032 single port, 1000baseT adapter
179.It
180SK-9521 SK-NET GE-T single port, 1000baseT adapter
181.It
182SK-9821 SK-NET GE-T single port, 1000baseT adapter
183.It
184SK-9822 SK-NET GE-T dual port, 1000baseT adapter
185.It
186SK-9841 SK-NET GE-LX single port, single mode fiber adapter
187.It
188SK-9842 SK-NET GE-LX dual port, single mode fiber adapter
189.It
190SK-9843 SK-NET GE-SX single port, multimode fiber adapter
191.It
192SK-9844 SK-NET GE-SX dual port, multimode fiber adapter
193.It
194SMC 9452TX single port, 1000baseT adapter
195.El
196.Sh SYSCTL VARIABLES
197The following variable is available as both
198.Xr sysctl 8
199variable and
200.Xr loader 8
201tunable:
202.Bl -tag -width indent
203.It Va dev.skc.%d.int_mod
204.Pp
205This variable controls interrupt moderation.
206The accepted range is 10 to 10000, default value is 100 microseconds.
207The interface has to be brought down and up again before a change takes effect.
208.El
209.Sh DIAGNOSTICS
210.Bl -diag
211.It "sk%d: couldn't map memory"
212A fatal initialization error has occurred.
213.It "sk%d: couldn't map ports"
214A fatal initialization error has occurred.
215.It "sk%d: couldn't map interrupt"
216A fatal initialization error has occurred.
217.It "sk%d: no memory for softc struct!"
218The driver failed to allocate memory for per-device instance information
219during initialization.
220.It "sk%d: failed to enable memory mapping!"
221The driver failed to initialize PCI shared memory mapping.
222This might
223happen if the card is not in a bus-master slot.
224.It "sk%d: no memory for jumbo buffers!"
225The driver failed to allocate memory for jumbo frames during
226initialization.
227.It "sk%d: watchdog timeout"
228The device has stopped responding to the network, or there is a problem with
229the network connection (cable).
230.El
231.Sh SEE ALSO
232.Xr arp 4 ,
233.Xr miibus 4 ,
234.Xr netintro 4 ,
235.Xr ng_ether 4 ,
236.Xr vlan 4 ,
237.Xr ifconfig 8
238.Rs
239.%T XaQti XMAC II datasheet
240.%O http://www.xaqti.com
241.Re
242.Rs
243.%T SysKonnect GEnesis programming manual
244.%O http://www.syskonnect.com
245.Re
246.Sh HISTORY
247The
248.Nm
249device driver first appeared in
250.Fx 3.0 .
251.Sh AUTHORS
252The
253.Nm
254driver was written by
255.An Bill Paul Aq wpaul@ctr.columbia.edu .
256