1.\" $OpenBSD: sk.4,v 1.23 2004/05/09 14:37:37 matthieu Exp $ 2.\" 3.\" Copyright (c) 1997, 1998, 1999 4.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 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. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Bill Paul. 17.\" 4. Neither the name of the author nor the names of any co-contributors 18.\" may be used to endorse or promote products derived from this software 19.\" without specific prior written permission. 20.\" 21.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 22.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 25.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31.\" THE POSSIBILITY OF SUCH DAMAGE. 32.\" 33.\" $FreeBSD: src/share/man/man4/man4.i386/sk.4,v 1.3 1999/08/28 00:20:29 peter Exp $ 34.\" 35.Dd July 3, 1999 36.Dt SK 4 37.Os 38.Sh NAME 39.Nm sk , 40.Nm skc 41.Nd SysKonnect XMAC II and Marvell GMAC based gigabit ethernet 42.Sh SYNOPSIS 43.Cd "skc* at pci? dev ? function ?" 44.Cd "sk* at skc?" 45.Sh DESCRIPTION 46The 47.Nm sk 48driver provides support for SysKonnect based gigabit ethernet adapters 49and Marvell based gigabit ethernet adapters, including the following: 50.Pp 51.Bl -bullet -offset indent -compact 52.It 53SK-9821 SK-NET GE-T single port, copper adapter 54.It 55SK-9822 SK-NET GE-T dual port, copper adapter 56.It 57SK-9841 SK-NET GE-LX single port, single mode fiber adapter 58.It 59SK-9842 SK-NET GE-LX dual port, single mode fiber adapter 60.It 61SK-9843 SK-NET GE-SX single port, multimode fiber adapter 62.It 63SK-9844 SK-NET GE-SX dual port, multimode fiber adapter 64.It 65SK-9521 V2.0 single port, copper adapter (32-bit) 66.It 67SK-9821 V2.0 single port, copper adapter 68.It 69SK-9843 V2.0 single port, copper adapter 70.It 713com 3c940 single port, copper adapter 72.It 73Linksys EG1032v2, copper adapter 74.It 75Linksys EG1064v2, copper adapter 76.It 77D-Link DGE-530T, copper adapter 78.It 79SMC 9452TX, copper adapter 80.El 81.Pp 82The SysKonnect based adapters consist of two main components: the 83XaQti Corp. 84XMAC II Gigabit MAC (sk) and the SysKonnect GEnesis controller ASIC (skc). 85The XMAC provides the Gigabit MAC and PHY support 86while the GEnesis provides an interface to the PCI bus, DMA support, 87packet buffering and arbitration. 88The GEnesis can control up to two XMACs simultaneously, 89allowing dual-port NIC configurations. 90.Pp 91The Marvell based adapters are a single integrated circuit, but are 92still presented as a separate MAC (sk) and controller ASIC (skc). 93At this time, there are no dual-port Marvell based NICs. 94.Pp 95The 96.Nm 97driver configures dual port SysKonnect adapters such that each XMAC 98is treated as a separate logical network interface. 99Both ports can operate independently of each other and can be connected 100to separate networks. 101The SysKonnect driver software currently only uses the second port on 102dual port adapters for failover purposes: if the link 103on the primary port fails, the SysKonnect driver will automatically 104switch traffic onto the second port. 105.Pp 106The XaQti XMAC II supports full and half duplex operation with 107autonegotiation. 108The XMAC also supports unlimited frame sizes. 109Support for jumbo frames is provided via the interface MTU setting. 110Selecting an MTU larger than 1500 bytes with the 111.Xr ifconfig 8 112utility configures the adapter to receive and transmit jumbo frames. 113Using jumbo frames can greatly improve performance for certain tasks, 114such as file transfers and data streaming. 115.Pp 116Hardware TCP/IP checksum offloading for IPv4 is supported. 117.Pp 118The following media types and options (as given to 119.Xr ifconfig 8 ) 120are supported: 121.Bl -tag -width xxx -offset indent 122.It Cm media No autoselect 123Enable autoselection of the media type and options. 124The user can manually override 125the autoselected mode by adding media options to the appropriate 126.Xr hostname.if 5 127file. 128.It Cm media No 1000baseSX Cm mediaopt No full-duplex 129Set 1000Mbps (Gigabit Ethernet) operation on fiber and force full-duplex mode. 130.It Cm media No 1000baseSX Cm mediaopt No half-duplex 131Set 1000Mbps (Gigabit Ethernet) operation on fiber and force half-duplex mode. 132.It Cm media No 1000baseT Cm mediaopt No full-duplex 133Set 1000Mbps (Gigabit Ethernet) operation and force full-duplex mode. 134.El 135.Pp 136For more information on configuring this device, see 137.Xr ifconfig 8 . 138To view a list of media types and options supported by the card, try 139.Ic ifconfig -m <device> . 140For example, 141.Ic ifconfig -m sk0 . 142.Sh DIAGNOSTICS 143.Bl -diag 144.It "sk%d: couldn't map memory" 145A fatal initialization error has occurred. 146.It "sk%d: couldn't map ports" 147A fatal initialization error has occurred. 148.It "sk%d: couldn't map interrupt" 149A fatal initialization error has occurred. 150.It "sk%d: failed to enable memory mapping!" 151The driver failed to initialize PCI shared memory mapping. 152This might happen if the card is not in a bus-master slot. 153.It "sk%d: no memory for jumbo buffers!" 154The driver failed to allocate memory for jumbo frames during 155initialization. 156.It "sk%d: watchdog timeout" 157The device has stopped responding to the network, or there is a problem with 158the network connection (cable). 159.El 160.Sh SEE ALSO 161.Xr arp 4 , 162.Xr ifmedia 4 , 163.Xr intro 4 , 164.Xr netintro 4 , 165.Xr pci 4 , 166.Xr hostname.if 5 , 167.Xr ifconfig 8 168.Rs 169.%T XaQti XMAC II datasheet 170.%O http://www.xaqti.com 171.Re 172.Rs 173.%T SysKonnect GEnesis programming manual 174.%O http://www.syskonnect.com 175.Re 176.Sh HISTORY 177The 178.Nm 179device driver first appeared in 180.Fx 3.0 , 181and 182.Ox 183support was added in 184.Ox 2.6 . 185.Sh AUTHORS 186The 187.Nm 188driver was written by 189.An Bill Paul Aq wpaul@ctr.columbia.edu . 190