xref: /freebsd/share/man/man4/stge.4 (revision ae91966b64f3629175c0837da3de7c13e20fe992)
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.\" 3. All advertising materials mentioning features or use of this software
182627a07eSPyun YongHyeon.\"    must display the following acknowledgement:
192627a07eSPyun YongHyeon.\"        This product includes software developed by the NetBSD
202627a07eSPyun YongHyeon.\"        Foundation, Inc. and its contributors.
212627a07eSPyun YongHyeon.\" 4. Neither the name of The NetBSD Foundation nor the names of its
222627a07eSPyun YongHyeon.\"    contributors may be used to endorse or promote products derived
232627a07eSPyun YongHyeon.\"    from this software without specific prior written permission.
242627a07eSPyun YongHyeon.\"
252627a07eSPyun YongHyeon.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
262627a07eSPyun YongHyeon.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
272627a07eSPyun YongHyeon.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
282627a07eSPyun YongHyeon.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
292627a07eSPyun YongHyeon.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
302627a07eSPyun YongHyeon.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
312627a07eSPyun YongHyeon.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
322627a07eSPyun YongHyeon.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
332627a07eSPyun YongHyeon.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
342627a07eSPyun YongHyeon.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
352627a07eSPyun YongHyeon.\" POSSIBILITY OF SUCH DAMAGE.
362627a07eSPyun YongHyeon.\"
372627a07eSPyun YongHyeon.\" $FreeBSD$
382627a07eSPyun YongHyeon.\"
392627a07eSPyun YongHyeon.Dd July 25, 2006
402627a07eSPyun YongHyeon.Dt STGE 4
412627a07eSPyun YongHyeon.Os
422627a07eSPyun YongHyeon.Sh NAME
432627a07eSPyun YongHyeon.Nm stge
442627a07eSPyun YongHyeon.Nd Sundance/Tamarack TC9021 Gigabit Ethernet adapter driver
452627a07eSPyun YongHyeon.Sh SYNOPSIS
462627a07eSPyun YongHyeonTo compile this driver into the kernel,
472627a07eSPyun YongHyeonplace the following lines in your
482627a07eSPyun YongHyeonkernel configuration file:
492627a07eSPyun YongHyeon.Bd -ragged -offset indent
502627a07eSPyun YongHyeon.Cd "device miibus"
512627a07eSPyun YongHyeon.Cd "device stge"
522627a07eSPyun YongHyeon.Ed
532627a07eSPyun YongHyeon.Pp
542627a07eSPyun YongHyeonAlternatively, to load the driver as a
552627a07eSPyun YongHyeonmodule at boot time, place the following line in
562627a07eSPyun YongHyeon.Xr loader.conf 5 :
572627a07eSPyun YongHyeon.Bd -literal -offset indent
582627a07eSPyun YongHyeonif_stge_load="YES"
592627a07eSPyun YongHyeon.Ed
602627a07eSPyun YongHyeon.Sh DESCRIPTION
612627a07eSPyun YongHyeonThe
622627a07eSPyun YongHyeon.Nm
632627a07eSPyun YongHyeondevice driver provides support for various NICs based on the
642627a07eSPyun YongHyeonSundance/Tamarack TC9021 Gigabit Ethernet controller chip.
652627a07eSPyun YongHyeon.Pp
662627a07eSPyun YongHyeonThe Sundance/Tamarack TC9021 is found on the D-Link DGE-550T
672627a07eSPyun YongHyeonand the Antares Microsystems Gigabit Ethernet board.
682627a07eSPyun YongHyeonIt uses an external PHY or an external 10-bit interface.
692627a07eSPyun YongHyeon.Pp
702627a07eSPyun YongHyeonAll NICs supported by the
712627a07eSPyun YongHyeon.Nm
722627a07eSPyun YongHyeondriver have TCP/UDP/IP checksum offload for both receive and
732627a07eSPyun YongHyeontransmit, hardware VLAN tag stripping/insertion features, and
742627a07eSPyun YongHyeonreceive interrupt moderation mechanism as well as a 64-bit
752627a07eSPyun YongHyeonmulticast hash filter.
762627a07eSPyun YongHyeonThe Sundance/Tamarack TC9021 supports TBI (ten bit interface)
772627a07eSPyun YongHyeonand GMII transceivers, which means it can be used with either
782627a07eSPyun YongHyeoncopper or 1000baseX fiber applications.
792627a07eSPyun YongHyeon.Pp
80ae91966bSRuslan ErmilovThe Sundance/Tamarack TC9021 also supports jumbo frames, which can be
812627a07eSPyun YongHyeonconfigured via the interface MTU setting.
822627a07eSPyun YongHyeonSelecting an MTU larger than 1500 bytes with the
832627a07eSPyun YongHyeon.Xr ifconfig 8
842627a07eSPyun YongHyeonutility configures the adapter to receive and transmit jumbo frames.
852627a07eSPyun YongHyeon.Pp
862627a07eSPyun YongHyeonThe
872627a07eSPyun YongHyeon.Nm
882627a07eSPyun YongHyeondriver supports the following media types:
892627a07eSPyun YongHyeon.Bl -tag -width ".Cm 10baseT/UTP"
902627a07eSPyun YongHyeon.It Cm autoselect
912627a07eSPyun YongHyeonEnable autoselection of the media type and options.
922627a07eSPyun YongHyeonThe user can manually override
932627a07eSPyun YongHyeonthe autoselected mode by adding media options to
942627a07eSPyun YongHyeon.Xr rc.conf 5 .
952627a07eSPyun YongHyeon.It Cm 10baseT/UTP
962627a07eSPyun YongHyeonSet 10Mbps operation.
972627a07eSPyun YongHyeonThe
982627a07eSPyun YongHyeon.Xr ifconfig 8
992627a07eSPyun YongHyeon.Cm mediaopt
1002627a07eSPyun YongHyeonoption can also be used to select either
1012627a07eSPyun YongHyeon.Cm full-duplex
1022627a07eSPyun YongHyeonor
1032627a07eSPyun YongHyeon.Cm half-duplex
1042627a07eSPyun YongHyeonmodes.
1052627a07eSPyun YongHyeon.It Cm 100baseTX
1062627a07eSPyun YongHyeonSet 100Mbps (Fast Ethernet) operation.
1072627a07eSPyun YongHyeonThe
1082627a07eSPyun YongHyeon.Xr ifconfig 8
1092627a07eSPyun YongHyeon.Cm mediaopt
1102627a07eSPyun YongHyeonoption can also be used to select either
1112627a07eSPyun YongHyeon.Cm full-duplex
1122627a07eSPyun YongHyeonor
1132627a07eSPyun YongHyeon.Cm half-duplex
1142627a07eSPyun YongHyeonmodes.
1152627a07eSPyun YongHyeon.It Cm 1000baseTX
1162627a07eSPyun YongHyeonSet 1000baseTX operation over twisted pair.
1172627a07eSPyun YongHyeonThe Sundance/Tamarack supports 1000Mbps in
1182627a07eSPyun YongHyeon.Cm autoselect
1192627a07eSPyun YongHyeonmode only.
1202627a07eSPyun YongHyeon.\" .It Cm 1000baseSX
1212627a07eSPyun YongHyeon.\" Set 1000Mbps (Gigabit Ethernet) operation.
1222627a07eSPyun YongHyeon.\" Both
1232627a07eSPyun YongHyeon.\" .Cm full-duplex
1242627a07eSPyun YongHyeon.\" and
1252627a07eSPyun YongHyeon.\" .Cm half-duplex
1262627a07eSPyun YongHyeon.\" modes are supported.
1272627a07eSPyun YongHyeon.El
1282627a07eSPyun YongHyeon.Pp
1292627a07eSPyun YongHyeonThe
1302627a07eSPyun YongHyeon.Nm
1312627a07eSPyun YongHyeondriver supports the following media options:
1322627a07eSPyun YongHyeon.Bl -tag -width ".Cm full-duplex"
1332627a07eSPyun YongHyeon.It Cm full-duplex
1342627a07eSPyun YongHyeonForce full duplex operation.
1352627a07eSPyun YongHyeon.It Cm half-duplex
1362627a07eSPyun YongHyeonForce half duplex operation.
1372627a07eSPyun YongHyeon.El
1382627a07eSPyun YongHyeon.Pp
1392627a07eSPyun YongHyeonThe
1402627a07eSPyun YongHyeon.Nm
1412627a07eSPyun YongHyeondriver also supports one special link option for 1000baseTX cards:
1422627a07eSPyun YongHyeon.Bl -tag -width ".Cm link0"
1432627a07eSPyun YongHyeon.It Cm link0
1442627a07eSPyun YongHyeonWith 1000baseTX cards, establishing a link between two ports requires
1452627a07eSPyun YongHyeonthat one port is configured as master and the other one as slave.
1462627a07eSPyun YongHyeonWith autonegotiation,
1472627a07eSPyun YongHyeonthe master/slave settings will be chosen automatically.
1482627a07eSPyun YongHyeonHowever when manually selecting the link state, it is necessary to
1492627a07eSPyun YongHyeonforce one side of the link to be a master and the other a slave.
1502627a07eSPyun YongHyeonThe
1512627a07eSPyun YongHyeon.Nm
1522627a07eSPyun YongHyeondriver configures the ports as slaves by default.
1532627a07eSPyun YongHyeonSetting the
154ae91966bSRuslan Ermilov.Cm link0
1552627a07eSPyun YongHyeonflag with
1562627a07eSPyun YongHyeon.Xr ifconfig 8
1572627a07eSPyun YongHyeonwill set a port as a master instead.
158b5ba473cSSimon L. B. Nielsen.El
1592627a07eSPyun YongHyeon.Pp
1602627a07eSPyun YongHyeonFor more information on configuring this device, see
1612627a07eSPyun YongHyeon.Xr ifconfig 8 .
1622627a07eSPyun YongHyeon.Sh HARDWARE
1632627a07eSPyun YongHyeonThe
1642627a07eSPyun YongHyeon.Nm
1652627a07eSPyun YongHyeondriver provides support for various NICs based on the Sundance/Tamarack
1662627a07eSPyun YongHyeonTC9021 based Gigabit Ethernet controller chips, including:
1672627a07eSPyun YongHyeon.Pp
1682627a07eSPyun YongHyeon.Bl -bullet -compact
1692627a07eSPyun YongHyeon.It
1702627a07eSPyun YongHyeonAntares Microsystems Gigabit Ethernet
1712627a07eSPyun YongHyeon.It
1722627a07eSPyun YongHyeonASUS NX1101 Gigabit Ethernet
1732627a07eSPyun YongHyeon.It
1742627a07eSPyun YongHyeonD-Link DL-4000 Gigabit Ethernet
1752627a07eSPyun YongHyeon.It
1762627a07eSPyun YongHyeonIC Plus IP1000A Gigabit Ethernet
1772627a07eSPyun YongHyeon.It
1782627a07eSPyun YongHyeonSundance ST-2021 Gigabit Ethernet
1792627a07eSPyun YongHyeon.It
1802627a07eSPyun YongHyeonSundance ST-2023 Gigabit Ethernet
1812627a07eSPyun YongHyeon.It
1822627a07eSPyun YongHyeonSundance TC9021 Gigabit Ethernet
1832627a07eSPyun YongHyeon.It
1842627a07eSPyun YongHyeonTamarack TC9021 Gigabit Ethernet
1852627a07eSPyun YongHyeon.El
1862627a07eSPyun YongHyeon.Sh SYSCTL VARIABLES
1873e1e998fSChristian BruefferThe following variables are available as both
1882627a07eSPyun YongHyeon.Xr sysctl 8
1893e1e998fSChristian Brueffervariables and
1902627a07eSPyun YongHyeon.Xr loader 8
1913e1e998fSChristian Brueffertunables:
1922627a07eSPyun YongHyeon.Bl -tag -width indent
1932627a07eSPyun YongHyeon.It Va dev.stge.%d.rxint_nframe
194ae91966bSRuslan ErmilovNumber of frames between RxDMAComplete interrupts.
1952627a07eSPyun YongHyeonThe accepted range is 1 to 255, default value is 8 frames.
1962627a07eSPyun YongHyeonThe interface has to be brought down and up again before a change takes effect.
1972627a07eSPyun YongHyeon.It Va dev.stge.%d.rxint_dmawait
1982627a07eSPyun YongHyeonMaximum amount of time to wait in 1us increments before issuing
199ae91966bSRuslan Ermilovan Rx interrupt if the number of frames received is less than
200ae91966bSRuslan Ermilov.Va rxint_nframe .
2012627a07eSPyun YongHyeonThe accepted range is 0 to 4194, default value is 30 microseconds.
2022627a07eSPyun YongHyeonThe interface has to be brought down and up again before a change takes effect.
2032627a07eSPyun YongHyeon.El
2042627a07eSPyun YongHyeon.Sh SEE ALSO
2052627a07eSPyun YongHyeon.Xr arp 4 ,
2062627a07eSPyun YongHyeon.Xr miibus 4 ,
2072627a07eSPyun YongHyeon.Xr netintro 4 ,
2082627a07eSPyun YongHyeon.Xr ng_ether 4 ,
2092627a07eSPyun YongHyeon.Xr polling 4 ,
2102627a07eSPyun YongHyeon.Xr vlan 4 ,
2112627a07eSPyun YongHyeon.Xr ifconfig 8
2122627a07eSPyun YongHyeon.Sh HISTORY
2132627a07eSPyun YongHyeonThe
2142627a07eSPyun YongHyeon.Nm
2152627a07eSPyun YongHyeondriver was ported from
2162627a07eSPyun YongHyeon.Nx
2172627a07eSPyun YongHyeonand first appeared in
2182627a07eSPyun YongHyeon.Fx 6.2 .
2192627a07eSPyun YongHyeonThe
2202627a07eSPyun YongHyeon.Nx
2212627a07eSPyun YongHyeonversion was written by
2222627a07eSPyun YongHyeon.An Jason R. Thorpe
2232627a07eSPyun YongHyeon.Aq thorpej@NetBSD.org .
2242627a07eSPyun YongHyeon.Sh AUTHORS
2252627a07eSPyun YongHyeonThe
2262627a07eSPyun YongHyeon.Nm
2272627a07eSPyun YongHyeondriver was ported by
2282627a07eSPyun YongHyeon.An Pyun YongHyeon
2292627a07eSPyun YongHyeon.Aq yongari@FreeBSD.org .
230