xref: /freebsd/share/man/man4/nge.4 (revision ecf900c60c7e8128febbaed2a174cf6a49ba2d5e)
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.\"
32ce4946daSBill Paul.\" $FreeBSD$
33ce4946daSBill Paul.\"
34ecf900c6SPyun YongHyeon.Dd May 21, 2009
35ce4946daSBill Paul.Dt NGE 4
3672fb5ff3SRuslan Ermilov.Os
37ce4946daSBill Paul.Sh NAME
38ce4946daSBill Paul.Nm nge
39a0fca272SChristian Brueffer.Nd "National Semiconductor PCI Gigabit Ethernet adapter driver"
40ce4946daSBill Paul.Sh SYNOPSIS
4116d78bb8STom RhodesTo compile this driver into the kernel,
4216d78bb8STom Rhodesplace the following lines in your
4390296834STom Rhodeskernel configuration file:
4486e3186eSTom Rhodes.Bd -ragged -offset indent
45ce4946daSBill Paul.Cd "device miibus"
46ce4946daSBill Paul.Cd "device nge"
4786e3186eSTom Rhodes.Ed
4886e3186eSTom Rhodes.Pp
4916d78bb8STom RhodesAlternatively, to load the driver as a
5016d78bb8STom Rhodesmodule at boot time, place the following line in
5186e3186eSTom Rhodes.Xr loader.conf 5 :
5286e3186eSTom Rhodes.Bd -literal -offset indent
5386e3186eSTom Rhodesif_nge_load="YES"
5486e3186eSTom Rhodes.Ed
55ce4946daSBill Paul.Sh DESCRIPTION
56ce4946daSBill PaulThe
57ce4946daSBill Paul.Nm
58ce4946daSBill Pauldriver provides support for various NICs based on the National Semiconductor
59a0fca272SChristian BruefferDP83820 and DP83821 Gigabit Ethernet controller chips.
60ce4946daSBill Paul.Pp
6172fb5ff3SRuslan ErmilovThe DP83820 supports TBI (ten bit interface) and GMII
62fe7f6459SBruce A. Mahtransceivers, which means it can be used with either copper or 1000baseX
6372fb5ff3SRuslan Ermilovfiber applications.
6472fb5ff3SRuslan ErmilovThe DP83820 supports TCP/IP checksum offload and
65ce4946daSBill PaulVLAN tagging/insertion as well as a 2048-bit multicast hash filter
66ce4946daSBill Pauland up to 4 pattern match buffers.
67ce4946daSBill Paul.Pp
68f87717faSMike PritchardMost cards also use the DP83861 10/100/1000 copper gigabit transceiver
691d705c5cSColin Percivalchip, which supports autonegotiation of 10, 100 and 1000Mbps modes in
70ce4946daSBill Paulfull or half duplex.
71ce4946daSBill Paul.Pp
72ce4946daSBill PaulThe DP83820 also supports jumbo frames, which can be configured
7372fb5ff3SRuslan Ermilovvia the interface MTU setting.
74ce4946daSBill PaulSelecting an MTU larger than 1500 bytes with the
75ce4946daSBill Paul.Xr ifconfig 8
76ce4946daSBill Paulutility configures the adapter to receive and transmit jumbo frames.
77c92a454eSBill PaulUsing jumbo frames can greatly improve performance for certain tasks,
78ce4946daSBill Paulsuch as file transfers and data streaming.
79ce4946daSBill Paul.Pp
80ce4946daSBill PaulThe
81ce4946daSBill Paul.Nm
82ce4946daSBill Pauldriver supports the following media types:
83ce4946daSBill Paul.Bl -tag -width 10baseTXUTP
8472fb5ff3SRuslan Ermilov.It Cm autoselect
85ce4946daSBill PaulEnable autoselection of the media type and options.
86ce4946daSBill PaulThe user can manually override
87ce4946daSBill Paulthe autoselected mode by adding media options to
88ce4946daSBill Paul.Xr rc.conf 5 .
8972fb5ff3SRuslan Ermilov.It Cm 10baseT/UTP
90ce4946daSBill PaulSet 10Mbps operation.
91ce4946daSBill PaulThe
92ce4946daSBill Paul.Xr ifconfig 8
9372fb5ff3SRuslan Ermilov.Ic mediaopt
94ce4946daSBill Pauloption can also be used to select either
9572fb5ff3SRuslan Ermilov.Cm full-duplex
96ce4946daSBill Paulor
9772fb5ff3SRuslan Ermilov.Cm half-duplex
98ce4946daSBill Paulmodes.
9972fb5ff3SRuslan Ermilov.It Cm 100baseTX
100a0fca272SChristian BruefferSet 100Mbps (Fast Ethernet) operation.
101ce4946daSBill PaulThe
102ce4946daSBill Paul.Xr ifconfig 8
10372fb5ff3SRuslan Ermilov.Ic mediaopt
104ce4946daSBill Pauloption can also be used to select either
10572fb5ff3SRuslan Ermilov.Cm full-duplex
106ce4946daSBill Paulor
10772fb5ff3SRuslan Ermilov.Cm half-duplex
108ce4946daSBill Paulmodes.
10972fb5ff3SRuslan Ermilov.It Cm 1000baseTX
110ce4946daSBill PaulSet 1000baseTX operation over twisted pair.
11172fb5ff3SRuslan Ermilov.Cm full-duplex
112ce4946daSBill Pauland
11372fb5ff3SRuslan Ermilov.Cm half-duplex
114ce4946daSBill Paulmodes are supported.
11572fb5ff3SRuslan Ermilov.It Cm 1000baseSX
116a0fca272SChristian BruefferSet 1000Mbps (Gigabit Ethernet) operation.
117ce4946daSBill PaulBoth
11872fb5ff3SRuslan Ermilov.Cm full-duplex
119ce4946daSBill Pauland
12072fb5ff3SRuslan Ermilov.Cm half-duplex
121ce4946daSBill Paulmodes are supported.
122ce4946daSBill Paul.El
123ce4946daSBill Paul.Pp
124ce4946daSBill PaulThe
125ce4946daSBill Paul.Nm
126ce4946daSBill Pauldriver supports the following media options:
12772fb5ff3SRuslan Ermilov.Bl -tag -width full-duplex
12872fb5ff3SRuslan Ermilov.It Cm full-duplex
12972fb5ff3SRuslan ErmilovForce full duplex operation.
13072fb5ff3SRuslan Ermilov.It Cm half-duplex
131ce4946daSBill PaulForce half duplex operation.
132ce4946daSBill Paul.El
133ce4946daSBill Paul.Pp
134ce4946daSBill PaulThe
135ce4946daSBill Paul.Nm
136ce4946daSBill Pauldriver also supports one special link option for 1000baseTX cards:
13772fb5ff3SRuslan Ermilov.Bl -tag -width link0
13872fb5ff3SRuslan Ermilov.It Cm link0
139ce4946daSBill PaulWith 1000baseTX cards, establishing a link between two ports requires
140ce4946daSBill Paulthat one port be configured as a master and the other a slave.
141ce4946daSBill PaulWith autonegotiation,
142ce4946daSBill Paulthe master/slave settings will be chosen automatically.
143ce4946daSBill PaulHowever when manually selecting the link state, it is necessary to
144ce4946daSBill Paulforce one side of the link to be a master and the other a slave.
145ce4946daSBill PaulThe
146ce4946daSBill Paul.Nm
147ce4946daSBill Pauldriver configures the ports as slaves by default.
148ce4946daSBill PaulSetting the
14972fb5ff3SRuslan Ermilov.Cm link0
150ce4946daSBill Paulflag with
151ce4946daSBill Paul.Xr ifconfig 8
152ce4946daSBill Paulwill set a port as a master instead.
153ce4946daSBill Paul.El
154ce4946daSBill Paul.Pp
155ce4946daSBill PaulFor more information on configuring this device, see
156ce4946daSBill Paul.Xr ifconfig 8 .
157a0fca272SChristian Brueffer.Sh HARDWARE
158a0fca272SChristian BruefferThe
159a0fca272SChristian Brueffer.Nm
160a0fca272SChristian Bruefferdriver supports National Semiconductor DP83820 and DP83821 based
161a0fca272SChristian BruefferGigabit Ethernet adapters including:
162a0fca272SChristian Brueffer.Pp
163a0fca272SChristian Brueffer.Bl -bullet -compact
164a0fca272SChristian Brueffer.It
16505307345SChristian BruefferAddtron AEG320T
166a0fca272SChristian Brueffer.It
16705307345SChristian BruefferArk PC SOHO-GA2500T (32-bit PCI) and SOHO-GA2000T (64-bit PCI)
168a0fca272SChristian Brueffer.It
169a0fca272SChristian BruefferAsante FriendlyNet GigaNIX 1000TA and 1000TPC
170a0fca272SChristian Brueffer.It
17105307345SChristian BruefferD-Link DGE-500T
172a0fca272SChristian Brueffer.It
17382a2b989STom RhodesLinksys EG1032, revision 1
17482a2b989STom Rhodes.It
17505307345SChristian BruefferNetgear GA621
176a0fca272SChristian Brueffer.It
177a0fca272SChristian BruefferNetgear GA622T
178a0fca272SChristian Brueffer.It
17905307345SChristian BruefferSMC EZ Card 1000 (SMC9462TX)
180a0fca272SChristian Brueffer.It
18105307345SChristian BruefferSurecom Technology EP-320G-TX
182a0fca272SChristian Brueffer.It
183a0fca272SChristian BruefferTrendware TEG-PCITX (32-bit PCI) and TEG-PCITX2 (64-bit PCI)
184a0fca272SChristian Brueffer.El
185ecf900c6SPyun YongHyeon.Sh SYSCTL VARIABLES
186ecf900c6SPyun YongHyeonThe following variables are available as both
187ecf900c6SPyun YongHyeon.Xr sysctl 8
188ecf900c6SPyun YongHyeonvariables and
189ecf900c6SPyun YongHyeon.Xr loader 8
190ecf900c6SPyun YongHyeontunables:
191ecf900c6SPyun YongHyeon.Bl -tag -width "xxxxxx"
192ecf900c6SPyun YongHyeon.It Va dev.nge.%d.int_holdoff
193ecf900c6SPyun YongHyeonMaximum amount of time to delay interrupt processing in units of
194ecf900c6SPyun YongHyeon100us.
195ecf900c6SPyun YongHyeonThe accepted range is 0 to 255, the default is 1(100us).
196ecf900c6SPyun YongHyeonValue 0 completely disables the interrupt moderation.
197ecf900c6SPyun YongHyeonThe interface has to be brought down and up again before a change
198ecf900c6SPyun YongHyeontakes effect.
199ecf900c6SPyun YongHyeon.El
200ce4946daSBill Paul.Sh DIAGNOSTICS
201ce4946daSBill Paul.Bl -diag
202ce4946daSBill Paul.It "nge%d: couldn't map memory"
203ce4946daSBill PaulA fatal initialization error has occurred.
204ce4946daSBill Paul.It "nge%d: couldn't map ports"
205ce4946daSBill PaulA fatal initialization error has occurred.
206ce4946daSBill Paul.It "nge%d: couldn't map interrupt"
207ce4946daSBill PaulA fatal initialization error has occurred.
208ce4946daSBill Paul.It "nge%d: no memory for softc struct!"
209ce4946daSBill PaulThe driver failed to allocate memory for per-device instance information
210ce4946daSBill Paulduring initialization.
211ce4946daSBill Paul.It "nge%d: failed to enable memory mapping!"
212ce4946daSBill PaulThe driver failed to initialize PCI shared memory mapping.
213ce4946daSBill PaulThis might
214ce4946daSBill Paulhappen if the card is not in a bus-master slot.
215ce4946daSBill Paul.It "nge%d: no memory for jumbo buffers!"
216ce4946daSBill PaulThe driver failed to allocate memory for jumbo frames during
217ce4946daSBill Paulinitialization.
218ce4946daSBill Paul.It "nge%d: watchdog timeout"
219ce4946daSBill PaulThe device has stopped responding to the network, or there is a problem with
220ce4946daSBill Paulthe network connection (cable).
221ce4946daSBill Paul.El
222ce4946daSBill Paul.Sh SEE ALSO
223ce4946daSBill Paul.Xr arp 4 ,
224130b84f5SChristian Brueffer.Xr miibus 4 ,
225ce4946daSBill Paul.Xr netintro 4 ,
226ce4946daSBill Paul.Xr ng_ether 4 ,
227a6c410e7SChristian Brueffer.Xr polling 4 ,
22872fb5ff3SRuslan Ermilov.Xr vlan 4 ,
229ce4946daSBill Paul.Xr ifconfig 8
230ce4946daSBill Paul.Rs
231ce4946daSBill Paul.%T National Semiconductor DP83820 datasheet
232ce4946daSBill Paul.%O http://www.national.com
233ce4946daSBill Paul.Re
234ce4946daSBill Paul.Rs
235ce4946daSBill Paul.%T National Semiconductor DP83861 datasheet
236ce4946daSBill Paul.%O http://www.national.com
237ce4946daSBill Paul.Re
238ce4946daSBill Paul.Sh HISTORY
239ce4946daSBill PaulThe
240ce4946daSBill Paul.Nm
241ce4946daSBill Pauldevice driver first appeared in
24286f47875SSheldon Hearn.Fx 4.4 .
243ce4946daSBill Paul.Sh AUTHORS
244ce4946daSBill PaulThe
245ce4946daSBill Paul.Nm
246ce4946daSBill Pauldriver was written by
247ce4946daSBill Paul.An Bill Paul Aq wpaul@bsdi.com .
248