12627a07eSPyun YongHyeon.\" $NetBSD: stge.4,v 1.7 2003/02/14 15:20:20 grant Exp $ 22627a07eSPyun YongHyeon.\" 32627a07eSPyun YongHyeon.\" Copyright (c) 2001 The NetBSD Foundation, Inc. 42627a07eSPyun YongHyeon.\" All rights reserved. 52627a07eSPyun YongHyeon.\" 62627a07eSPyun YongHyeon.\" This code is derived from software contributed to The NetBSD Foundation 72627a07eSPyun YongHyeon.\" by Jason R. Thorpe. 82627a07eSPyun YongHyeon.\" 92627a07eSPyun YongHyeon.\" Redistribution and use in source and binary forms, with or without 102627a07eSPyun YongHyeon.\" modification, are permitted provided that the following conditions 112627a07eSPyun YongHyeon.\" are met: 122627a07eSPyun YongHyeon.\" 1. Redistributions of source code must retain the above copyright 132627a07eSPyun YongHyeon.\" notice, this list of conditions and the following disclaimer. 142627a07eSPyun YongHyeon.\" 2. Redistributions in binary form must reproduce the above copyright 152627a07eSPyun YongHyeon.\" notice, this list of conditions and the following disclaimer in the 162627a07eSPyun YongHyeon.\" documentation and/or other materials provided with the distribution. 172627a07eSPyun YongHyeon.\" 182627a07eSPyun YongHyeon.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 192627a07eSPyun YongHyeon.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 202627a07eSPyun YongHyeon.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 212627a07eSPyun YongHyeon.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 222627a07eSPyun YongHyeon.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 232627a07eSPyun YongHyeon.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 242627a07eSPyun YongHyeon.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 252627a07eSPyun YongHyeon.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 262627a07eSPyun YongHyeon.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 272627a07eSPyun YongHyeon.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 282627a07eSPyun YongHyeon.\" POSSIBILITY OF SUCH DAMAGE. 292627a07eSPyun YongHyeon.\" 302627a07eSPyun YongHyeon.\" $FreeBSD$ 312627a07eSPyun YongHyeon.\" 32*496b5146SMarius Strobl.Dd November 23, 2010 332627a07eSPyun YongHyeon.Dt STGE 4 342627a07eSPyun YongHyeon.Os 352627a07eSPyun YongHyeon.Sh NAME 362627a07eSPyun YongHyeon.Nm stge 372627a07eSPyun YongHyeon.Nd Sundance/Tamarack TC9021 Gigabit Ethernet adapter driver 382627a07eSPyun YongHyeon.Sh SYNOPSIS 392627a07eSPyun YongHyeonTo compile this driver into the kernel, 402627a07eSPyun YongHyeonplace the following lines in your 412627a07eSPyun YongHyeonkernel configuration file: 422627a07eSPyun YongHyeon.Bd -ragged -offset indent 432627a07eSPyun YongHyeon.Cd "device miibus" 442627a07eSPyun YongHyeon.Cd "device stge" 452627a07eSPyun YongHyeon.Ed 462627a07eSPyun YongHyeon.Pp 472627a07eSPyun YongHyeonAlternatively, to load the driver as a 482627a07eSPyun YongHyeonmodule at boot time, place the following line in 492627a07eSPyun YongHyeon.Xr loader.conf 5 : 502627a07eSPyun YongHyeon.Bd -literal -offset indent 512627a07eSPyun YongHyeonif_stge_load="YES" 522627a07eSPyun YongHyeon.Ed 532627a07eSPyun YongHyeon.Sh DESCRIPTION 542627a07eSPyun YongHyeonThe 552627a07eSPyun YongHyeon.Nm 562627a07eSPyun YongHyeondevice driver provides support for various NICs based on the 572627a07eSPyun YongHyeonSundance/Tamarack TC9021 Gigabit Ethernet controller chip. 582627a07eSPyun YongHyeon.Pp 592627a07eSPyun YongHyeonThe Sundance/Tamarack TC9021 is found on the D-Link DGE-550T 602627a07eSPyun YongHyeonand the Antares Microsystems Gigabit Ethernet board. 612627a07eSPyun YongHyeonIt uses an external PHY or an external 10-bit interface. 622627a07eSPyun YongHyeon.Pp 632627a07eSPyun YongHyeonAll NICs supported by the 642627a07eSPyun YongHyeon.Nm 652627a07eSPyun YongHyeondriver have TCP/UDP/IP checksum offload for both receive and 662627a07eSPyun YongHyeontransmit, hardware VLAN tag stripping/insertion features, and 672627a07eSPyun YongHyeonreceive interrupt moderation mechanism as well as a 64-bit 682627a07eSPyun YongHyeonmulticast hash filter. 692627a07eSPyun YongHyeonThe Sundance/Tamarack TC9021 supports TBI (ten bit interface) 702627a07eSPyun YongHyeonand GMII transceivers, which means it can be used with either 712627a07eSPyun YongHyeoncopper or 1000baseX fiber applications. 722627a07eSPyun YongHyeon.Pp 73ae91966bSRuslan ErmilovThe Sundance/Tamarack TC9021 also supports jumbo frames, which can be 742627a07eSPyun YongHyeonconfigured via the interface MTU setting. 752627a07eSPyun YongHyeonSelecting an MTU larger than 1500 bytes with the 762627a07eSPyun YongHyeon.Xr ifconfig 8 772627a07eSPyun YongHyeonutility configures the adapter to receive and transmit jumbo frames. 782627a07eSPyun YongHyeon.Pp 792627a07eSPyun YongHyeonThe 802627a07eSPyun YongHyeon.Nm 812627a07eSPyun YongHyeondriver supports the following media types: 822627a07eSPyun YongHyeon.Bl -tag -width ".Cm 10baseT/UTP" 832627a07eSPyun YongHyeon.It Cm autoselect 842627a07eSPyun YongHyeonEnable autoselection of the media type and options. 852627a07eSPyun YongHyeonThe user can manually override 862627a07eSPyun YongHyeonthe autoselected mode by adding media options to 872627a07eSPyun YongHyeon.Xr rc.conf 5 . 882627a07eSPyun YongHyeon.It Cm 10baseT/UTP 892627a07eSPyun YongHyeonSet 10Mbps operation. 902627a07eSPyun YongHyeonThe 912627a07eSPyun YongHyeon.Xr ifconfig 8 922627a07eSPyun YongHyeon.Cm mediaopt 932627a07eSPyun YongHyeonoption can also be used to select either 942627a07eSPyun YongHyeon.Cm full-duplex 952627a07eSPyun YongHyeonor 962627a07eSPyun YongHyeon.Cm half-duplex 972627a07eSPyun YongHyeonmodes. 982627a07eSPyun YongHyeon.It Cm 100baseTX 992627a07eSPyun YongHyeonSet 100Mbps (Fast Ethernet) operation. 1002627a07eSPyun YongHyeonThe 1012627a07eSPyun YongHyeon.Xr ifconfig 8 1022627a07eSPyun YongHyeon.Cm mediaopt 1032627a07eSPyun YongHyeonoption can also be used to select either 1042627a07eSPyun YongHyeon.Cm full-duplex 1052627a07eSPyun YongHyeonor 1062627a07eSPyun YongHyeon.Cm half-duplex 1072627a07eSPyun YongHyeonmodes. 1082627a07eSPyun YongHyeon.It Cm 1000baseTX 1092627a07eSPyun YongHyeonSet 1000baseTX operation over twisted pair. 1102627a07eSPyun YongHyeonThe Sundance/Tamarack supports 1000Mbps in 1112627a07eSPyun YongHyeon.Cm autoselect 1122627a07eSPyun YongHyeonmode only. 1132627a07eSPyun YongHyeon.\" .It Cm 1000baseSX 1142627a07eSPyun YongHyeon.\" Set 1000Mbps (Gigabit Ethernet) operation. 1152627a07eSPyun YongHyeon.\" Both 1162627a07eSPyun YongHyeon.\" .Cm full-duplex 1172627a07eSPyun YongHyeon.\" and 1182627a07eSPyun YongHyeon.\" .Cm half-duplex 1192627a07eSPyun YongHyeon.\" modes are supported. 1202627a07eSPyun YongHyeon.El 1212627a07eSPyun YongHyeon.Pp 1222627a07eSPyun YongHyeonThe 1232627a07eSPyun YongHyeon.Nm 1242627a07eSPyun YongHyeondriver supports the following media options: 1252627a07eSPyun YongHyeon.Bl -tag -width ".Cm full-duplex" 1262627a07eSPyun YongHyeon.It Cm full-duplex 1272627a07eSPyun YongHyeonForce full duplex operation. 1282627a07eSPyun YongHyeon.It Cm half-duplex 1292627a07eSPyun YongHyeonForce half duplex operation. 1302627a07eSPyun YongHyeon.El 1312627a07eSPyun YongHyeon.Pp 1322627a07eSPyun YongHyeonFor more information on configuring this device, see 1332627a07eSPyun YongHyeon.Xr ifconfig 8 . 1342627a07eSPyun YongHyeon.Sh HARDWARE 1352627a07eSPyun YongHyeonThe 1362627a07eSPyun YongHyeon.Nm 1372627a07eSPyun YongHyeondriver provides support for various NICs based on the Sundance/Tamarack 1382627a07eSPyun YongHyeonTC9021 based Gigabit Ethernet controller chips, including: 1392627a07eSPyun YongHyeon.Pp 1402627a07eSPyun YongHyeon.Bl -bullet -compact 1412627a07eSPyun YongHyeon.It 1422627a07eSPyun YongHyeonAntares Microsystems Gigabit Ethernet 1432627a07eSPyun YongHyeon.It 1442627a07eSPyun YongHyeonASUS NX1101 Gigabit Ethernet 1452627a07eSPyun YongHyeon.It 1462627a07eSPyun YongHyeonD-Link DL-4000 Gigabit Ethernet 1472627a07eSPyun YongHyeon.It 1482627a07eSPyun YongHyeonIC Plus IP1000A Gigabit Ethernet 1492627a07eSPyun YongHyeon.It 1502627a07eSPyun YongHyeonSundance ST-2021 Gigabit Ethernet 1512627a07eSPyun YongHyeon.It 1522627a07eSPyun YongHyeonSundance ST-2023 Gigabit Ethernet 1532627a07eSPyun YongHyeon.It 1542627a07eSPyun YongHyeonSundance TC9021 Gigabit Ethernet 1552627a07eSPyun YongHyeon.It 1562627a07eSPyun YongHyeonTamarack TC9021 Gigabit Ethernet 1572627a07eSPyun YongHyeon.El 1582627a07eSPyun YongHyeon.Sh SYSCTL VARIABLES 1593e1e998fSChristian BruefferThe following variables are available as both 1602627a07eSPyun YongHyeon.Xr sysctl 8 1613e1e998fSChristian Brueffervariables and 1622627a07eSPyun YongHyeon.Xr loader 8 1633e1e998fSChristian Brueffertunables: 1642627a07eSPyun YongHyeon.Bl -tag -width indent 1652627a07eSPyun YongHyeon.It Va dev.stge.%d.rxint_nframe 166ae91966bSRuslan ErmilovNumber of frames between RxDMAComplete interrupts. 1672627a07eSPyun YongHyeonThe accepted range is 1 to 255, default value is 8 frames. 1682627a07eSPyun YongHyeonThe interface has to be brought down and up again before a change takes effect. 1692627a07eSPyun YongHyeon.It Va dev.stge.%d.rxint_dmawait 1702627a07eSPyun YongHyeonMaximum amount of time to wait in 1us increments before issuing 171ae91966bSRuslan Ermilovan Rx interrupt if the number of frames received is less than 172ae91966bSRuslan Ermilov.Va rxint_nframe . 1732627a07eSPyun YongHyeonThe accepted range is 0 to 4194, default value is 30 microseconds. 1742627a07eSPyun YongHyeonThe interface has to be brought down and up again before a change takes effect. 1752627a07eSPyun YongHyeon.El 1762627a07eSPyun YongHyeon.Sh SEE ALSO 177a25ecdffSChristian Brueffer.Xr altq 4 , 1782627a07eSPyun YongHyeon.Xr arp 4 , 1792627a07eSPyun YongHyeon.Xr miibus 4 , 1802627a07eSPyun YongHyeon.Xr netintro 4 , 1812627a07eSPyun YongHyeon.Xr ng_ether 4 , 1822627a07eSPyun YongHyeon.Xr polling 4 , 1832627a07eSPyun YongHyeon.Xr vlan 4 , 1842627a07eSPyun YongHyeon.Xr ifconfig 8 1852627a07eSPyun YongHyeon.Sh HISTORY 1862627a07eSPyun YongHyeonThe 1872627a07eSPyun YongHyeon.Nm 1882627a07eSPyun YongHyeondriver was ported from 1892627a07eSPyun YongHyeon.Nx 1902627a07eSPyun YongHyeonand first appeared in 1912627a07eSPyun YongHyeon.Fx 6.2 . 1922627a07eSPyun YongHyeonThe 1932627a07eSPyun YongHyeon.Nx 1942627a07eSPyun YongHyeonversion was written by 1952627a07eSPyun YongHyeon.An Jason R. Thorpe 1962627a07eSPyun YongHyeon.Aq thorpej@NetBSD.org . 1972627a07eSPyun YongHyeon.Sh AUTHORS 1982627a07eSPyun YongHyeonThe 1992627a07eSPyun YongHyeon.Nm 2002627a07eSPyun YongHyeondriver was ported by 2012627a07eSPyun YongHyeon.An Pyun YongHyeon 2022627a07eSPyun YongHyeon.Aq yongari@FreeBSD.org . 203