1.\" Copyright (c) 2001 Wind River Systems 2.\" Copyright (c) 1997, 1998, 1999, 2000, 2001 3.\" Bill Paul <wpaul@bsdi.com>. All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 3. All advertising materials mentioning features or use of this software 14.\" must display the following acknowledgement: 15.\" This product includes software developed by Bill Paul. 16.\" 4. Neither the name of the author nor the names of any co-contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD 24.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30.\" THE POSSIBILITY OF SUCH DAMAGE. 31.\" 32.\" $FreeBSD: src/share/man/man4/nge.4,v 1.4.2.6 2002/08/15 16:35:37 ambrisko Exp $ 33.\" $DragonFly: src/share/man/man4/nge.4,v 1.8 2008/07/11 10:38:50 thomas Exp $ 34.\" 35.Dd May 11, 2001 36.Dt NGE 4 37.Os 38.Sh NAME 39.Nm nge 40.Nd "National Semiconductor PCI gigabit ethernet adapter driver" 41.Sh SYNOPSIS 42.Cd "device miibus" 43.Cd "device nge" 44.Sh DESCRIPTION 45The 46.Nm 47driver provides support for various NICs based on the National Semiconductor 48DP83820 and DP83821 gigabit ethernet controller chips, including the 49following: 50.Pp 51.Bl -bullet -compact 52.It 53SMC EZ Card 1000 (SMC9462TX) 54.It 55D-Link DGE-500T 56.It 57Asante FriendlyNet GigaNIX 1000TA and 1000TPC 58.It 59Addtron AEG320T 60.It 61LinkSys EG1032 (32-bit PCI) and EG1064 (64-bit PCI) 62.It 63Surecom Technology EP-320G-TX 64.It 65Netgear GA621 66.It 67Netgear GA622T 68.El 69.Pp 70All of these NICs are capable of 10, 100 and 1000mbps speeds over CAT5 71copper cable. 72The DP83820 supports TBI (ten bit interface) and GMII 73transceivers, which means it can be used with either copper or 1000baseX 74fiber applications. 75The DP83820 supports TCP/IP checksum offload and 76VLAN tagging/insertion as well as a 2048-bit multicast hash filter 77and up to 4 pattern match buffers. 78.Pp 79Most cards also use the DP83861 10/100/1000 copper gigabit transceiver 80chip, which supports autonegotiation of 10, 100 and 1000mbps modes in 81full or half duplex. 82.Pp 83The DP83820 also supports jumbo frames, which can be configured 84via the interface MTU setting. 85Selecting an MTU larger than 1500 bytes with the 86.Xr ifconfig 8 87utility configures the adapter to receive and transmit jumbo frames. 88Using jumbo frames can greatly improve performance for certain tasks, 89such as file transfers and data streaming. 90.Pp 91The 92.Nm 93driver supports the following media types: 94.Bl -tag -width 10baseTXUTP 95.It Cm autoselect 96Enable autoselection of the media type and options. 97The user can manually override 98the autoselected mode by adding media options to 99.Xr rc.conf 5 . 100.It Cm 10baseT/UTP 101Set 10Mbps operation. 102The 103.Xr ifconfig 8 104.Ic mediaopt 105option can also be used to select either 106.Cm full-duplex 107or 108.Cm half-duplex 109modes. 110.It Cm 100baseTX 111Set 100Mbps (fast ethernet) operation. 112The 113.Xr ifconfig 8 114.Ic mediaopt 115option can also be used to select either 116.Cm full-duplex 117or 118.Cm half-duplex 119modes. 120.It Cm 1000baseT 121Set 1000baseT operation over twisted pair. 122.Cm full-duplex 123and 124.Cm half-duplex 125modes are supported. 126.It Cm 1000baseSX 127Set 1000Mbps (gigabit ethernet) operation. 128Both 129.Cm full-duplex 130and 131.Cm half-duplex 132modes are supported. 133.El 134.Pp 135The 136.Nm 137driver supports the following media options: 138.Bl -tag -width full-duplex 139.It Cm full-duplex 140Force full duplex operation. 141.It Cm half-duplex 142Force half duplex operation. 143.El 144.Pp 145The 146.Nm 147driver also supports one special link option for 1000baseT cards: 148.Bl -tag -width link0 149.It Cm link0 150With 1000baseT cards, establishing a link between two ports requires 151that one port be configured as a master and the other a slave. 152With autonegotiation, 153the master/slave settings will be chosen automatically. 154However when manually selecting the link state, it is necessary to 155force one side of the link to be a master and the other a slave. 156The 157.Nm 158driver configures the ports as slaves by default. 159Setting the 160.Cm link0 161flag with 162.Xr ifconfig 8 163will set a port as a master instead. 164.El 165.Pp 166For more information on configuring this device, see 167.Xr ifconfig 8 . 168The 169.Nm 170driver supports 171.Xr polling 4 . 172.Sh DIAGNOSTICS 173.Bl -diag 174.It "nge%d: couldn't map memory" 175A fatal initialization error has occurred. 176.It "nge%d: couldn't map ports" 177A fatal initialization error has occurred. 178.It "nge%d: couldn't map interrupt" 179A fatal initialization error has occurred. 180.It "nge%d: no memory for softc struct!" 181The driver failed to allocate memory for per-device instance information 182during initialization. 183.It "nge%d: failed to enable memory mapping!" 184The driver failed to initialize PCI shared memory mapping. 185This might 186happen if the card is not in a bus-master slot. 187.It "nge%d: no memory for jumbo buffers!" 188The driver failed to allocate memory for jumbo frames during 189initialization. 190.It "nge%d: watchdog timeout" 191The device has stopped responding to the network, or there is a problem with 192the network connection (cable). 193.El 194.Sh SEE ALSO 195.Xr arp 4 , 196.Xr ifmedia 4 , 197.Xr miibus 4 , 198.Xr netintro 4 , 199.Xr ng_ether 4 , 200.Xr polling 4 , 201.Xr vlan 4 , 202.Xr ifconfig 8 203.Rs 204.%T National Semiconductor DP83820 datasheet 205.%O http://www.national.com 206.Re 207.Rs 208.%T National Semiconductor DP83861 datasheet 209.%O http://www.national.com 210.Re 211.Sh HISTORY 212The 213.Nm 214device driver first appeared in 215.Fx 4.4 . 216.Sh AUTHORS 217The 218.Nm 219driver was written by 220.An Bill Paul Aq wpaul@bsdi.com . 221