xref: /freebsd/share/man/man4/nge.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
172fb5ff3SRuslan Ermilov.\" Copyright (c) 2001 Wind River Systems
2ce4946daSBill Paul.\" Copyright (c) 1997, 1998, 1999, 2000, 2001
3ce4946daSBill Paul.\"	Bill Paul <wpaul@bsdi.com>. All rights reserved.
4ce4946daSBill Paul.\"
5ce4946daSBill Paul.\" Redistribution and use in source and binary forms, with or without
6ce4946daSBill Paul.\" modification, are permitted provided that the following conditions
7ce4946daSBill Paul.\" are met:
8ce4946daSBill Paul.\" 1. Redistributions of source code must retain the above copyright
9ce4946daSBill Paul.\"    notice, this list of conditions and the following disclaimer.
10ce4946daSBill Paul.\" 2. Redistributions in binary form must reproduce the above copyright
11ce4946daSBill Paul.\"    notice, this list of conditions and the following disclaimer in the
12ce4946daSBill Paul.\"    documentation and/or other materials provided with the distribution.
13ce4946daSBill Paul.\" 3. All advertising materials mentioning features or use of this software
14ce4946daSBill Paul.\"    must display the following acknowledgement:
15ce4946daSBill Paul.\"	This product includes software developed by Bill Paul.
16ce4946daSBill Paul.\" 4. Neither the name of the author nor the names of any co-contributors
17ce4946daSBill Paul.\"    may be used to endorse or promote products derived from this software
18ce4946daSBill Paul.\"   without specific prior written permission.
19ce4946daSBill Paul.\"
20ce4946daSBill Paul.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
21ce4946daSBill Paul.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22ce4946daSBill Paul.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23ce4946daSBill Paul.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
24ce4946daSBill Paul.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25ce4946daSBill Paul.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26ce4946daSBill Paul.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27ce4946daSBill Paul.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28ce4946daSBill Paul.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29ce4946daSBill Paul.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30ce4946daSBill Paul.\" THE POSSIBILITY OF SUCH DAMAGE.
31ce4946daSBill Paul.\"
32496b5146SMarius Strobl.Dd November 23, 2010
33ce4946daSBill Paul.Dt NGE 4
3472fb5ff3SRuslan Ermilov.Os
35ce4946daSBill Paul.Sh NAME
36ce4946daSBill Paul.Nm nge
37a0fca272SChristian Brueffer.Nd "National Semiconductor PCI Gigabit Ethernet adapter driver"
38ce4946daSBill Paul.Sh SYNOPSIS
3916d78bb8STom RhodesTo compile this driver into the kernel,
4016d78bb8STom Rhodesplace the following lines in your
4190296834STom Rhodeskernel configuration file:
4286e3186eSTom Rhodes.Bd -ragged -offset indent
43ce4946daSBill Paul.Cd "device miibus"
44ce4946daSBill Paul.Cd "device nge"
4586e3186eSTom Rhodes.Ed
4686e3186eSTom Rhodes.Pp
4716d78bb8STom RhodesAlternatively, to load the driver as a
4816d78bb8STom Rhodesmodule at boot time, place the following line in
4986e3186eSTom Rhodes.Xr loader.conf 5 :
5086e3186eSTom Rhodes.Bd -literal -offset indent
5186e3186eSTom Rhodesif_nge_load="YES"
5286e3186eSTom Rhodes.Ed
53ce4946daSBill Paul.Sh DESCRIPTION
54ce4946daSBill PaulThe
55ce4946daSBill Paul.Nm
56ce4946daSBill Pauldriver provides support for various NICs based on the National Semiconductor
57a0fca272SChristian BruefferDP83820 and DP83821 Gigabit Ethernet controller chips.
58ce4946daSBill Paul.Pp
5972fb5ff3SRuslan ErmilovThe DP83820 supports TBI (ten bit interface) and GMII
60fe7f6459SBruce A. Mahtransceivers, which means it can be used with either copper or 1000baseX
6172fb5ff3SRuslan Ermilovfiber applications.
6272fb5ff3SRuslan ErmilovThe DP83820 supports TCP/IP checksum offload and
63ce4946daSBill PaulVLAN tagging/insertion as well as a 2048-bit multicast hash filter
64ce4946daSBill Pauland up to 4 pattern match buffers.
65ce4946daSBill Paul.Pp
66f87717faSMike PritchardMost cards also use the DP83861 10/100/1000 copper gigabit transceiver
671d705c5cSColin Percivalchip, which supports autonegotiation of 10, 100 and 1000Mbps modes in
68ce4946daSBill Paulfull or half duplex.
69ce4946daSBill Paul.Pp
70e222fbb6SPyun YongHyeonThe DP83820 and DP83821 also support jumbo frames, which can be
71e222fbb6SPyun YongHyeonconfigured via the interface MTU setting.
72ce4946daSBill PaulSelecting an MTU larger than 1500 bytes with the
73ce4946daSBill Paul.Xr ifconfig 8
74ce4946daSBill Paulutility configures the adapter to receive and transmit jumbo frames.
75c92a454eSBill PaulUsing jumbo frames can greatly improve performance for certain tasks,
76ce4946daSBill Paulsuch as file transfers and data streaming.
77ce4946daSBill Paul.Pp
78ce4946daSBill PaulThe
79ce4946daSBill Paul.Nm
80ce4946daSBill Pauldriver supports the following media types:
81ce4946daSBill Paul.Bl -tag -width 10baseTXUTP
8272fb5ff3SRuslan Ermilov.It Cm autoselect
83ce4946daSBill PaulEnable autoselection of the media type and options.
84ce4946daSBill PaulThe user can manually override
85ce4946daSBill Paulthe autoselected mode by adding media options to
86ce4946daSBill Paul.Xr rc.conf 5 .
8772fb5ff3SRuslan Ermilov.It Cm 10baseT/UTP
88ce4946daSBill PaulSet 10Mbps operation.
89ce4946daSBill PaulThe
90ce4946daSBill Paul.Xr ifconfig 8
9172fb5ff3SRuslan Ermilov.Ic mediaopt
92ce4946daSBill Pauloption can also be used to select either
9372fb5ff3SRuslan Ermilov.Cm full-duplex
94ce4946daSBill Paulor
9572fb5ff3SRuslan Ermilov.Cm half-duplex
96ce4946daSBill Paulmodes.
9772fb5ff3SRuslan Ermilov.It Cm 100baseTX
98a0fca272SChristian BruefferSet 100Mbps (Fast Ethernet) operation.
99ce4946daSBill PaulThe
100ce4946daSBill Paul.Xr ifconfig 8
10172fb5ff3SRuslan Ermilov.Ic mediaopt
102ce4946daSBill Pauloption can also be used to select either
10372fb5ff3SRuslan Ermilov.Cm full-duplex
104ce4946daSBill Paulor
10572fb5ff3SRuslan Ermilov.Cm half-duplex
106ce4946daSBill Paulmodes.
10772fb5ff3SRuslan Ermilov.It Cm 1000baseTX
108ce4946daSBill PaulSet 1000baseTX operation over twisted pair.
10972fb5ff3SRuslan Ermilov.Cm full-duplex
110ce4946daSBill Pauland
11172fb5ff3SRuslan Ermilov.Cm half-duplex
112ce4946daSBill Paulmodes are supported.
11372fb5ff3SRuslan Ermilov.It Cm 1000baseSX
114a0fca272SChristian BruefferSet 1000Mbps (Gigabit Ethernet) operation.
115ce4946daSBill PaulBoth
11672fb5ff3SRuslan Ermilov.Cm full-duplex
117ce4946daSBill Pauland
11872fb5ff3SRuslan Ermilov.Cm half-duplex
119ce4946daSBill Paulmodes are supported.
120ce4946daSBill Paul.El
121ce4946daSBill Paul.Pp
122ce4946daSBill PaulThe
123ce4946daSBill Paul.Nm
124ce4946daSBill Pauldriver supports the following media options:
12572fb5ff3SRuslan Ermilov.Bl -tag -width full-duplex
12672fb5ff3SRuslan Ermilov.It Cm full-duplex
12772fb5ff3SRuslan ErmilovForce full duplex operation.
12872fb5ff3SRuslan Ermilov.It Cm half-duplex
129ce4946daSBill PaulForce half duplex operation.
130ce4946daSBill Paul.El
131ce4946daSBill Paul.Pp
132ce4946daSBill PaulFor more information on configuring this device, see
133ce4946daSBill Paul.Xr ifconfig 8 .
134a0fca272SChristian Brueffer.Sh HARDWARE
135a0fca272SChristian BruefferThe
136a0fca272SChristian Brueffer.Nm
137a0fca272SChristian Bruefferdriver supports National Semiconductor DP83820 and DP83821 based
138a0fca272SChristian BruefferGigabit Ethernet adapters including:
139a0fca272SChristian Brueffer.Pp
140a0fca272SChristian Brueffer.Bl -bullet -compact
141a0fca272SChristian Brueffer.It
14205307345SChristian BruefferAddtron AEG320T
143a0fca272SChristian Brueffer.It
14405307345SChristian BruefferArk PC SOHO-GA2500T (32-bit PCI) and SOHO-GA2000T (64-bit PCI)
145a0fca272SChristian Brueffer.It
146a0fca272SChristian BruefferAsante FriendlyNet GigaNIX 1000TA and 1000TPC
147a0fca272SChristian Brueffer.It
14805307345SChristian BruefferD-Link DGE-500T
149a0fca272SChristian Brueffer.It
15082a2b989STom RhodesLinksys EG1032, revision 1
15182a2b989STom Rhodes.It
15205307345SChristian BruefferNetgear GA621
153a0fca272SChristian Brueffer.It
154a0fca272SChristian BruefferNetgear GA622T
155a0fca272SChristian Brueffer.It
15605307345SChristian BruefferSMC EZ Card 1000 (SMC9462TX)
157a0fca272SChristian Brueffer.It
15805307345SChristian BruefferSurecom Technology EP-320G-TX
159a0fca272SChristian Brueffer.It
160a0fca272SChristian BruefferTrendware TEG-PCITX (32-bit PCI) and TEG-PCITX2 (64-bit PCI)
161a0fca272SChristian Brueffer.El
162ecf900c6SPyun YongHyeon.Sh SYSCTL VARIABLES
163ecf900c6SPyun YongHyeonThe following variables are available as both
164ecf900c6SPyun YongHyeon.Xr sysctl 8
165ecf900c6SPyun YongHyeonvariables and
166ecf900c6SPyun YongHyeon.Xr loader 8
167ecf900c6SPyun YongHyeontunables:
168ecf900c6SPyun YongHyeon.Bl -tag -width "xxxxxx"
169ecf900c6SPyun YongHyeon.It Va dev.nge.%d.int_holdoff
170ecf900c6SPyun YongHyeonMaximum amount of time to delay interrupt processing in units of
171ecf900c6SPyun YongHyeon100us.
172ecf900c6SPyun YongHyeonThe accepted range is 0 to 255, the default is 1(100us).
173ecf900c6SPyun YongHyeonValue 0 completely disables the interrupt moderation.
174ecf900c6SPyun YongHyeonThe interface has to be brought down and up again before a change
175ecf900c6SPyun YongHyeontakes effect.
176ecf900c6SPyun YongHyeon.El
177ce4946daSBill Paul.Sh DIAGNOSTICS
178ce4946daSBill Paul.Bl -diag
179ce4946daSBill Paul.It "nge%d: couldn't map memory"
180ce4946daSBill PaulA fatal initialization error has occurred.
181ce4946daSBill Paul.It "nge%d: couldn't map ports"
182ce4946daSBill PaulA fatal initialization error has occurred.
183ce4946daSBill Paul.It "nge%d: couldn't map interrupt"
184ce4946daSBill PaulA fatal initialization error has occurred.
185ce4946daSBill Paul.It "nge%d: no memory for softc struct!"
186ce4946daSBill PaulThe driver failed to allocate memory for per-device instance information
187ce4946daSBill Paulduring initialization.
188ce4946daSBill Paul.It "nge%d: failed to enable memory mapping!"
189ce4946daSBill PaulThe driver failed to initialize PCI shared memory mapping.
190ce4946daSBill PaulThis might
191ce4946daSBill Paulhappen if the card is not in a bus-master slot.
192ce4946daSBill Paul.It "nge%d: no memory for jumbo buffers!"
193ce4946daSBill PaulThe driver failed to allocate memory for jumbo frames during
194ce4946daSBill Paulinitialization.
195ce4946daSBill Paul.It "nge%d: watchdog timeout"
196ce4946daSBill PaulThe device has stopped responding to the network, or there is a problem with
197ce4946daSBill Paulthe network connection (cable).
198ce4946daSBill Paul.El
199ce4946daSBill Paul.Sh SEE ALSO
200fe060748SPyun YongHyeon.Xr altq 4 ,
201ce4946daSBill Paul.Xr arp 4 ,
202130b84f5SChristian Brueffer.Xr miibus 4 ,
203ce4946daSBill Paul.Xr netintro 4 ,
204ce4946daSBill Paul.Xr ng_ether 4 ,
205a6c410e7SChristian Brueffer.Xr polling 4 ,
20672fb5ff3SRuslan Ermilov.Xr vlan 4 ,
207ce4946daSBill Paul.Xr ifconfig 8
208ce4946daSBill Paul.Rs
209ce4946daSBill Paul.%T National Semiconductor DP83820 datasheet
210ce4946daSBill Paul.Re
211ce4946daSBill Paul.Rs
212ce4946daSBill Paul.%T National Semiconductor DP83861 datasheet
213ce4946daSBill Paul.Re
214ce4946daSBill Paul.Sh HISTORY
215ce4946daSBill PaulThe
216ce4946daSBill Paul.Nm
217ce4946daSBill Pauldevice driver first appeared in
21886f47875SSheldon Hearn.Fx 4.4 .
219ce4946daSBill Paul.Sh AUTHORS
220ce4946daSBill PaulThe
221ce4946daSBill Paul.Nm
222ce4946daSBill Pauldriver was written by
223*6c899950SBaptiste Daroussin.An Bill Paul Aq Mt wpaul@bsdi.com .
224