1960e10f9SChristian Brueffer.\" 2960e10f9SChristian Brueffer.\" Copyright (c) 2007 The DragonFly Project. All rights reserved. 3960e10f9SChristian Brueffer.\" 4960e10f9SChristian Brueffer.\" Redistribution and use in source and binary forms, with or without 5960e10f9SChristian Brueffer.\" modification, are permitted provided that the following conditions 6960e10f9SChristian Brueffer.\" are met: 7960e10f9SChristian Brueffer.\" 8960e10f9SChristian Brueffer.\" 1. Redistributions of source code must retain the above copyright 9960e10f9SChristian Brueffer.\" notice, this list of conditions and the following disclaimer. 10960e10f9SChristian Brueffer.\" 2. Redistributions in binary form must reproduce the above copyright 11960e10f9SChristian Brueffer.\" notice, this list of conditions and the following disclaimer in 12960e10f9SChristian Brueffer.\" the documentation and/or other materials provided with the 13960e10f9SChristian Brueffer.\" distribution. 14960e10f9SChristian Brueffer.\" 3. Neither the name of The DragonFly Project nor the names of its 15960e10f9SChristian Brueffer.\" contributors may be used to endorse or promote products derived 16960e10f9SChristian Brueffer.\" from this software without specific, prior written permission. 17960e10f9SChristian Brueffer.\" 18960e10f9SChristian Brueffer.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 19960e10f9SChristian Brueffer.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 20960e10f9SChristian Brueffer.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 21960e10f9SChristian Brueffer.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 22960e10f9SChristian Brueffer.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23960e10f9SChristian Brueffer.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, 24960e10f9SChristian Brueffer.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 25960e10f9SChristian Brueffer.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 26960e10f9SChristian Brueffer.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27960e10f9SChristian Brueffer.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 28960e10f9SChristian Brueffer.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29960e10f9SChristian Brueffer.\" SUCH DAMAGE. 30960e10f9SChristian Brueffer.\" 31b767a0e1SPyun YongHyeon.Dd December 9, 2011 32960e10f9SChristian Brueffer.Dt ET 4 33960e10f9SChristian Brueffer.Os 34960e10f9SChristian Brueffer.Sh NAME 35960e10f9SChristian Brueffer.Nm et 36960e10f9SChristian Brueffer.Nd "Agere ET1310 10/100/Gigabit Ethernet driver" 37960e10f9SChristian Brueffer.Sh SYNOPSIS 38960e10f9SChristian BruefferTo compile this driver into the kernel, 39960e10f9SChristian Bruefferplace the following lines in your 40960e10f9SChristian Bruefferkernel configuration file: 41960e10f9SChristian Brueffer.Bd -ragged -offset indent 42960e10f9SChristian Brueffer.Cd "device miibus" 43960e10f9SChristian Brueffer.Cd "device et" 44960e10f9SChristian Brueffer.Ed 45960e10f9SChristian Brueffer.Pp 46960e10f9SChristian BruefferAlternatively, to load the driver as a 47960e10f9SChristian Brueffermodule at boot time, place the following line in 48960e10f9SChristian Brueffer.Xr loader.conf 5 : 49960e10f9SChristian Brueffer.Bd -literal -offset indent 50960e10f9SChristian Bruefferif_et_load="YES" 51960e10f9SChristian Brueffer.Ed 52960e10f9SChristian Brueffer.Sh DESCRIPTION 53960e10f9SChristian BruefferThe 54960e10f9SChristian Brueffer.Nm 55960e10f9SChristian Bruefferdriver supports PCI Express Ethernet adapters based on the Agere ET1310 chip. 5644c81fb8SChristian Brueffer.\".Pp 5744c81fb8SChristian Brueffer.\"Support for Jumbo Frames is provided via the interface MTU setting. 5844c81fb8SChristian Brueffer.\"Selecting an MTU larger than 1500 bytes with the 5944c81fb8SChristian Brueffer.\".Xr ifconfig 8 6044c81fb8SChristian Brueffer.\"utility configures the adapter to receive and transmit Jumbo Frames. 6144c81fb8SChristian Brueffer.\"The maximum MTU setting for Jumbo Frames is 15572. 6244c81fb8SChristian Brueffer.\"This value coincides with the maximum Jumbo Frames size of 15594. 63960e10f9SChristian Brueffer.Pp 64960e10f9SChristian BruefferThe 65960e10f9SChristian Brueffer.Nm 66960e10f9SChristian Bruefferdriver supports the following media types: 67960e10f9SChristian Brueffer.Pp 68960e10f9SChristian Brueffer.Bl -tag -width 10baseT/UTP -compact 69960e10f9SChristian Brueffer.It autoselect 70960e10f9SChristian BruefferEnable autoselection of the media types and options. 71960e10f9SChristian BruefferThe user can manually override 72960e10f9SChristian Bruefferthe autoselected mode by adding media options to the 73960e10f9SChristian Brueffer.Pa /etc/rc.conf 74960e10f9SChristian Bruefferfile. 75960e10f9SChristian Brueffer.Pp 76960e10f9SChristian Brueffer.It 10baseT/UTP 77960e10f9SChristian BruefferSet 10Mbps operation. 78960e10f9SChristian BruefferThe 79960e10f9SChristian Brueffer.Ar mediaopt 80960e10f9SChristian Bruefferoption can also be used to select either 81960e10f9SChristian Brueffer.Ar full-duplex 82960e10f9SChristian Bruefferor 83960e10f9SChristian Brueffer.Ar half-duplex 84960e10f9SChristian Brueffermodes. 85960e10f9SChristian Brueffer.Pp 86960e10f9SChristian Brueffer.It 100baseTX 87960e10f9SChristian BruefferSet 100Mbps (Fast Ethernet) operation. 88960e10f9SChristian BruefferThe 89960e10f9SChristian Brueffer.Ar mediaopt 90960e10f9SChristian Bruefferoption can also be used to select either 91960e10f9SChristian Brueffer.Ar full-duplex 92960e10f9SChristian Bruefferor 93960e10f9SChristian Brueffer.Ar half-duplex 94960e10f9SChristian Brueffermodes. 95960e10f9SChristian Brueffer.Pp 96960e10f9SChristian Brueffer.It 1000baseT 97960e10f9SChristian BruefferSet 1000Mbps (Gigabit Ethernet) operation. 98960e10f9SChristian BruefferThe 99960e10f9SChristian Brueffer.Ar mediaopt 100960e10f9SChristian Bruefferoption can only be set to 101960e10f9SChristian Brueffer.Ar full-duplex 102960e10f9SChristian Brueffermode. 103960e10f9SChristian Brueffer.El 104960e10f9SChristian Brueffer.Pp 105960e10f9SChristian BruefferThe 106960e10f9SChristian Brueffer.Nm 107960e10f9SChristian Bruefferdriver supports the following 108960e10f9SChristian Brueffer.Ar media 109960e10f9SChristian Bruefferoptions: 110960e10f9SChristian Brueffer.Pp 111960e10f9SChristian Brueffer.Bl -tag -width full-duplex -compact 112960e10f9SChristian Brueffer.It full-duplex 113960e10f9SChristian BruefferForce full-duplex operation. 114960e10f9SChristian Brueffer.Pp 115960e10f9SChristian Brueffer.It half-duplex 116960e10f9SChristian BruefferForce half-duplex operation. 117960e10f9SChristian Brueffer.El 118960e10f9SChristian Brueffer.Pp 119960e10f9SChristian BruefferNote that the 1000baseT media type is only available 120960e10f9SChristian Bruefferif it is supported by the adapter. 121960e10f9SChristian BruefferFor more information on configuring this device, see 122960e10f9SChristian Brueffer.Xr ifconfig 8 . 12385edfab5SXin LI.Sh HARDWARE 12485edfab5SXin LIThe 12585edfab5SXin LI.Nm 12685edfab5SXin LIdriver supports Agere ET1310 10/100/Gigabit 12785edfab5SXin LIEthernet adapters. 128960e10f9SChristian Brueffer.Sh TUNABLES 129960e10f9SChristian Brueffer.Bl -tag -width ".Va hw.et.rx_intr_npkts" 130960e10f9SChristian Brueffer.It Va hw.et.rx_intr_npkts 131960e10f9SChristian BruefferThis value controls how many packets should be received 132960e10f9SChristian Bruefferbefore a receive interrupt is generated. 133960e10f9SChristian BruefferThe default value is 32. 134960e10f9SChristian BruefferIt is recommended to set this value above 38 to prevent the host from being 135960e10f9SChristian Bruefferlivelocked under a high degree of stress. 136960e10f9SChristian Brueffer.It Va hw.et.rx_intr_delay 137960e10f9SChristian BruefferThis value delays the generation of receive interrupts 138960e10f9SChristian Bruefferin units of ~4 microseconds. 139960e10f9SChristian BruefferIt is used together with 140960e10f9SChristian Brueffer.Va hw.et.rx_intr_npkts 141960e10f9SChristian Bruefferto achieve RX interrupt moderation. 142960e10f9SChristian BruefferThe default value is 20. 143960e10f9SChristian Brueffer.It Va hw.et.tx_intr_nsegs 144960e10f9SChristian BruefferThis value controls how many segments (not packets) should be transmitted 145960e10f9SChristian Bruefferbefore a transmit interrupt is generated. 146960e10f9SChristian BruefferThe default value is 126. 147960e10f9SChristian BruefferIt is recommended to set this value below 280 to prevent 148960e10f9SChristian Bruefferthe TX ring from underflowing. 149960e10f9SChristian Brueffer.It Va hw.et.timer 150960e10f9SChristian BruefferThis value controls how often a timer interrupt should be generated. 151960e10f9SChristian BruefferIt is used together with 152960e10f9SChristian Brueffer.Va hw.et.tx_intr_nsegs 153960e10f9SChristian Bruefferto achieve TX interrupt moderation. 154960e10f9SChristian BruefferThe default value is 1000000000 (nanoseconds). 155960e10f9SChristian Brueffer.El 156960e10f9SChristian Brueffer.Sh SEE ALSO 157b767a0e1SPyun YongHyeon.Xr altq 4 , 158960e10f9SChristian Brueffer.Xr arp 4 , 159960e10f9SChristian Brueffer.Xr miibus 4 , 160960e10f9SChristian Brueffer.Xr netintro 4 , 161960e10f9SChristian Brueffer.Xr ng_ether 4 , 162960e10f9SChristian Brueffer.Xr vlan 4 , 163960e10f9SChristian Brueffer.Xr ifconfig 8 164960e10f9SChristian Brueffer.Sh HISTORY 165960e10f9SChristian BruefferThe 166960e10f9SChristian Brueffer.Nm 167960e10f9SChristian Bruefferdevice driver first appeared in 168960e10f9SChristian Brueffer.Dx 1.11 . 169960e10f9SChristian BruefferThe first 170960e10f9SChristian Brueffer.Fx 171960e10f9SChristian Bruefferrelease to include it was 172960e10f9SChristian Brueffer.Fx 8.0 . 173960e10f9SChristian Brueffer.Sh AUTHORS 174960e10f9SChristian Brueffer.An -nosplit 175960e10f9SChristian BruefferThe 176960e10f9SChristian Brueffer.Nm 177960e10f9SChristian Bruefferdriver was written by 178*6c899950SBaptiste Daroussin.An Sepherosa Ziehau Aq Mt sepherosa@gmail.com 179960e10f9SChristian Bruefferfor 180960e10f9SChristian Brueffer.Dx . 181960e10f9SChristian BruefferIt was ported to 182960e10f9SChristian Brueffer.Fx 183960e10f9SChristian Bruefferby 184*6c899950SBaptiste Daroussin.An Xin LI Aq Mt delphij@FreeBSD.org . 185