xref: /freebsd/share/man/man4/stge.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.\"
30496b5146SMarius Strobl.Dd November 23, 2010
312627a07eSPyun YongHyeon.Dt STGE 4
322627a07eSPyun YongHyeon.Os
332627a07eSPyun YongHyeon.Sh NAME
342627a07eSPyun YongHyeon.Nm stge
352627a07eSPyun YongHyeon.Nd Sundance/Tamarack TC9021 Gigabit Ethernet adapter driver
362627a07eSPyun YongHyeon.Sh SYNOPSIS
372627a07eSPyun YongHyeonTo compile this driver into the kernel,
382627a07eSPyun YongHyeonplace the following lines in your
392627a07eSPyun YongHyeonkernel configuration file:
402627a07eSPyun YongHyeon.Bd -ragged -offset indent
412627a07eSPyun YongHyeon.Cd "device miibus"
422627a07eSPyun YongHyeon.Cd "device stge"
432627a07eSPyun YongHyeon.Ed
442627a07eSPyun YongHyeon.Pp
452627a07eSPyun YongHyeonAlternatively, to load the driver as a
462627a07eSPyun YongHyeonmodule at boot time, place the following line in
472627a07eSPyun YongHyeon.Xr loader.conf 5 :
482627a07eSPyun YongHyeon.Bd -literal -offset indent
492627a07eSPyun YongHyeonif_stge_load="YES"
502627a07eSPyun YongHyeon.Ed
512627a07eSPyun YongHyeon.Sh DESCRIPTION
522627a07eSPyun YongHyeonThe
532627a07eSPyun YongHyeon.Nm
542627a07eSPyun YongHyeondevice driver provides support for various NICs based on the
552627a07eSPyun YongHyeonSundance/Tamarack TC9021 Gigabit Ethernet controller chip.
562627a07eSPyun YongHyeon.Pp
572627a07eSPyun YongHyeonThe Sundance/Tamarack TC9021 is found on the D-Link DGE-550T
582627a07eSPyun YongHyeonand the Antares Microsystems Gigabit Ethernet board.
592627a07eSPyun YongHyeonIt uses an external PHY or an external 10-bit interface.
602627a07eSPyun YongHyeon.Pp
612627a07eSPyun YongHyeonAll NICs supported by the
622627a07eSPyun YongHyeon.Nm
632627a07eSPyun YongHyeondriver have TCP/UDP/IP checksum offload for both receive and
642627a07eSPyun YongHyeontransmit, hardware VLAN tag stripping/insertion features, and
652627a07eSPyun YongHyeonreceive interrupt moderation mechanism as well as a 64-bit
662627a07eSPyun YongHyeonmulticast hash filter.
672627a07eSPyun YongHyeonThe Sundance/Tamarack TC9021 supports TBI (ten bit interface)
682627a07eSPyun YongHyeonand GMII transceivers, which means it can be used with either
692627a07eSPyun YongHyeoncopper or 1000baseX fiber applications.
702627a07eSPyun YongHyeon.Pp
71ae91966bSRuslan ErmilovThe Sundance/Tamarack TC9021 also supports jumbo frames, which can be
722627a07eSPyun YongHyeonconfigured via the interface MTU setting.
732627a07eSPyun YongHyeonSelecting an MTU larger than 1500 bytes with the
742627a07eSPyun YongHyeon.Xr ifconfig 8
752627a07eSPyun YongHyeonutility configures the adapter to receive and transmit jumbo frames.
762627a07eSPyun YongHyeon.Pp
772627a07eSPyun YongHyeonThe
782627a07eSPyun YongHyeon.Nm
792627a07eSPyun YongHyeondriver supports the following media types:
802627a07eSPyun YongHyeon.Bl -tag -width ".Cm 10baseT/UTP"
812627a07eSPyun YongHyeon.It Cm autoselect
822627a07eSPyun YongHyeonEnable autoselection of the media type and options.
832627a07eSPyun YongHyeonThe user can manually override
842627a07eSPyun YongHyeonthe autoselected mode by adding media options to
852627a07eSPyun YongHyeon.Xr rc.conf 5 .
862627a07eSPyun YongHyeon.It Cm 10baseT/UTP
872627a07eSPyun YongHyeonSet 10Mbps operation.
882627a07eSPyun YongHyeonThe
892627a07eSPyun YongHyeon.Xr ifconfig 8
902627a07eSPyun YongHyeon.Cm mediaopt
912627a07eSPyun YongHyeonoption can also be used to select either
922627a07eSPyun YongHyeon.Cm full-duplex
932627a07eSPyun YongHyeonor
942627a07eSPyun YongHyeon.Cm half-duplex
952627a07eSPyun YongHyeonmodes.
962627a07eSPyun YongHyeon.It Cm 100baseTX
972627a07eSPyun YongHyeonSet 100Mbps (Fast Ethernet) operation.
982627a07eSPyun YongHyeonThe
992627a07eSPyun YongHyeon.Xr ifconfig 8
1002627a07eSPyun YongHyeon.Cm mediaopt
1012627a07eSPyun YongHyeonoption can also be used to select either
1022627a07eSPyun YongHyeon.Cm full-duplex
1032627a07eSPyun YongHyeonor
1042627a07eSPyun YongHyeon.Cm half-duplex
1052627a07eSPyun YongHyeonmodes.
1062627a07eSPyun YongHyeon.It Cm 1000baseTX
1072627a07eSPyun YongHyeonSet 1000baseTX operation over twisted pair.
1082627a07eSPyun YongHyeonThe Sundance/Tamarack supports 1000Mbps in
1092627a07eSPyun YongHyeon.Cm autoselect
1102627a07eSPyun YongHyeonmode only.
1112627a07eSPyun YongHyeon.\" .It Cm 1000baseSX
1122627a07eSPyun YongHyeon.\" Set 1000Mbps (Gigabit Ethernet) operation.
1132627a07eSPyun YongHyeon.\" Both
1142627a07eSPyun YongHyeon.\" .Cm full-duplex
1152627a07eSPyun YongHyeon.\" and
1162627a07eSPyun YongHyeon.\" .Cm half-duplex
1172627a07eSPyun YongHyeon.\" modes are supported.
1182627a07eSPyun YongHyeon.El
1192627a07eSPyun YongHyeon.Pp
1202627a07eSPyun YongHyeonThe
1212627a07eSPyun YongHyeon.Nm
1222627a07eSPyun YongHyeondriver supports the following media options:
1232627a07eSPyun YongHyeon.Bl -tag -width ".Cm full-duplex"
1242627a07eSPyun YongHyeon.It Cm full-duplex
1252627a07eSPyun YongHyeonForce full duplex operation.
1262627a07eSPyun YongHyeon.It Cm half-duplex
1272627a07eSPyun YongHyeonForce half duplex operation.
1282627a07eSPyun YongHyeon.El
1292627a07eSPyun YongHyeon.Pp
1302627a07eSPyun YongHyeonFor more information on configuring this device, see
1312627a07eSPyun YongHyeon.Xr ifconfig 8 .
1322627a07eSPyun YongHyeon.Sh HARDWARE
1332627a07eSPyun YongHyeonThe
1342627a07eSPyun YongHyeon.Nm
1352627a07eSPyun YongHyeondriver provides support for various NICs based on the Sundance/Tamarack
1362627a07eSPyun YongHyeonTC9021 based Gigabit Ethernet controller chips, including:
1372627a07eSPyun YongHyeon.Pp
1382627a07eSPyun YongHyeon.Bl -bullet -compact
1392627a07eSPyun YongHyeon.It
1402627a07eSPyun YongHyeonAntares Microsystems Gigabit Ethernet
1412627a07eSPyun YongHyeon.It
1422627a07eSPyun YongHyeonASUS NX1101 Gigabit Ethernet
1432627a07eSPyun YongHyeon.It
1442627a07eSPyun YongHyeonD-Link DL-4000 Gigabit Ethernet
1452627a07eSPyun YongHyeon.It
1462627a07eSPyun YongHyeonIC Plus IP1000A Gigabit Ethernet
1472627a07eSPyun YongHyeon.It
1482627a07eSPyun YongHyeonSundance ST-2021 Gigabit Ethernet
1492627a07eSPyun YongHyeon.It
1502627a07eSPyun YongHyeonSundance ST-2023 Gigabit Ethernet
1512627a07eSPyun YongHyeon.It
1522627a07eSPyun YongHyeonSundance TC9021 Gigabit Ethernet
1532627a07eSPyun YongHyeon.It
1542627a07eSPyun YongHyeonTamarack TC9021 Gigabit Ethernet
1552627a07eSPyun YongHyeon.El
1562627a07eSPyun YongHyeon.Sh SYSCTL VARIABLES
1573e1e998fSChristian BruefferThe following variables are available as both
1582627a07eSPyun YongHyeon.Xr sysctl 8
1593e1e998fSChristian Brueffervariables and
1602627a07eSPyun YongHyeon.Xr loader 8
1613e1e998fSChristian Brueffertunables:
1622627a07eSPyun YongHyeon.Bl -tag -width indent
1632627a07eSPyun YongHyeon.It Va dev.stge.%d.rxint_nframe
164ae91966bSRuslan ErmilovNumber of frames between RxDMAComplete interrupts.
1652627a07eSPyun YongHyeonThe accepted range is 1 to 255, default value is 8 frames.
1662627a07eSPyun YongHyeonThe interface has to be brought down and up again before a change takes effect.
1672627a07eSPyun YongHyeon.It Va dev.stge.%d.rxint_dmawait
1682627a07eSPyun YongHyeonMaximum amount of time to wait in 1us increments before issuing
169ae91966bSRuslan Ermilovan Rx interrupt if the number of frames received is less than
170ae91966bSRuslan Ermilov.Va rxint_nframe .
1712627a07eSPyun YongHyeonThe accepted range is 0 to 4194, default value is 30 microseconds.
1722627a07eSPyun YongHyeonThe interface has to be brought down and up again before a change takes effect.
1732627a07eSPyun YongHyeon.El
1742627a07eSPyun YongHyeon.Sh SEE ALSO
175a25ecdffSChristian Brueffer.Xr altq 4 ,
1762627a07eSPyun YongHyeon.Xr arp 4 ,
1772627a07eSPyun YongHyeon.Xr miibus 4 ,
1782627a07eSPyun YongHyeon.Xr netintro 4 ,
1792627a07eSPyun YongHyeon.Xr ng_ether 4 ,
1802627a07eSPyun YongHyeon.Xr polling 4 ,
1812627a07eSPyun YongHyeon.Xr vlan 4 ,
1822627a07eSPyun YongHyeon.Xr ifconfig 8
1832627a07eSPyun YongHyeon.Sh HISTORY
1842627a07eSPyun YongHyeonThe
1852627a07eSPyun YongHyeon.Nm
1862627a07eSPyun YongHyeondriver was ported from
1872627a07eSPyun YongHyeon.Nx
1882627a07eSPyun YongHyeonand first appeared in
1892627a07eSPyun YongHyeon.Fx 6.2 .
1902627a07eSPyun YongHyeonThe
1912627a07eSPyun YongHyeon.Nx
1922627a07eSPyun YongHyeonversion was written by
193*6c899950SBaptiste Daroussin.An Jason R. Thorpe Aq Mt thorpej@NetBSD.org .
1942627a07eSPyun YongHyeon.Sh AUTHORS
1952627a07eSPyun YongHyeonThe
1962627a07eSPyun YongHyeon.Nm
1972627a07eSPyun YongHyeondriver was ported by
198*6c899950SBaptiste Daroussin.An Pyun YongHyeon Aq Mt yongari@FreeBSD.org .
199