xref: /freebsd/share/man/man4/nge.4 (revision 1d705c5cf07ff146160782bd4d27c7fedcf05b24)
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.\"
34fae6989eSBill Paul.Dd May 11, 2001
35ce4946daSBill Paul.Dt NGE 4
3672fb5ff3SRuslan Ermilov.Os
37ce4946daSBill Paul.Sh NAME
38ce4946daSBill Paul.Nm nge
39ce4946daSBill Paul.Nd "National Semiconductor PCI gigabit ethernet adapter driver"
40ce4946daSBill Paul.Sh SYNOPSIS
41ce4946daSBill Paul.Cd "device miibus"
42ce4946daSBill Paul.Cd "device nge"
43ce4946daSBill Paul.Sh DESCRIPTION
44ce4946daSBill PaulThe
45ce4946daSBill Paul.Nm
46ce4946daSBill Pauldriver provides support for various NICs based on the National Semiconductor
47ce4946daSBill PaulDP83820 and DP83821 gigabit ethernet controller chips, including the
48ce4946daSBill Paulfollowing:
49ce4946daSBill Paul.Pp
5072fb5ff3SRuslan Ermilov.Bl -bullet -compact
51ce4946daSBill Paul.It
52ce4946daSBill PaulSMC EZ Card 1000 (SMC9462TX)
53ce4946daSBill Paul.It
54ce4946daSBill PaulD-Link DGE-500T
55ce4946daSBill Paul.It
56ce4946daSBill PaulAsante FriendlyNet GigaNIX 1000TA and 1000TPC
57ce4946daSBill Paul.It
5801019292SBill PaulAddtron AEG320T
5901019292SBill Paul.It
6001019292SBill PaulLinkSys EG1032 (32-bit PCI) and EG1064 (64-bit PCI)
6101019292SBill Paul.It
6201019292SBill PaulSurecom Technology EP-320G-TX
63660e0297SBill Paul.It
64660e0297SBill PaulNetgear GA622T
6555a49b00SBill Paul.It
662b739dc1SDoug AmbriskoNetgear GA621
672b739dc1SDoug Ambrisko.It
6855a49b00SBill PaulArk PC SOHO-GA2500T (32-bit PCI) and SOHO-GA2000T (64-bit PCI)
6955a49b00SBill Paul.It
7055a49b00SBill PaulTrendware TEG-PCITX (32-bit PCI) and TEG-PCITX2 (64-bit PCI)
71ce4946daSBill Paul.El
72ce4946daSBill Paul.Pp
731d705c5cSColin PercivalAll of these NICs are capable of 10, 100 and 1000Mbps speeds over CAT5
7472fb5ff3SRuslan Ermilovcopper cable.
7572fb5ff3SRuslan ErmilovThe DP83820 supports TBI (ten bit interface) and GMII
76fe7f6459SBruce A. Mahtransceivers, which means it can be used with either copper or 1000baseX
7772fb5ff3SRuslan Ermilovfiber applications.
7872fb5ff3SRuslan ErmilovThe DP83820 supports TCP/IP checksum offload and
79ce4946daSBill PaulVLAN tagging/insertion as well as a 2048-bit multicast hash filter
80ce4946daSBill Pauland up to 4 pattern match buffers.
81ce4946daSBill Paul.Pp
82f87717faSMike PritchardMost cards also use the DP83861 10/100/1000 copper gigabit transceiver
831d705c5cSColin Percivalchip, which supports autonegotiation of 10, 100 and 1000Mbps modes in
84ce4946daSBill Paulfull or half duplex.
85ce4946daSBill Paul.Pp
86ce4946daSBill PaulThe DP83820 also supports jumbo frames, which can be configured
8772fb5ff3SRuslan Ermilovvia the interface MTU setting.
88ce4946daSBill PaulSelecting an MTU larger than 1500 bytes with the
89ce4946daSBill Paul.Xr ifconfig 8
90ce4946daSBill Paulutility configures the adapter to receive and transmit jumbo frames.
91c92a454eSBill PaulUsing jumbo frames can greatly improve performance for certain tasks,
92ce4946daSBill Paulsuch as file transfers and data streaming.
93ce4946daSBill Paul.Pp
94ce4946daSBill PaulThe
95ce4946daSBill Paul.Nm
96ce4946daSBill Pauldriver supports the following media types:
97ce4946daSBill Paul.Bl -tag -width 10baseTXUTP
9872fb5ff3SRuslan Ermilov.It Cm autoselect
99ce4946daSBill PaulEnable autoselection of the media type and options.
100ce4946daSBill PaulThe user can manually override
101ce4946daSBill Paulthe autoselected mode by adding media options to
102ce4946daSBill Paul.Xr rc.conf 5 .
10372fb5ff3SRuslan Ermilov.It Cm 10baseT/UTP
104ce4946daSBill PaulSet 10Mbps operation.
105ce4946daSBill PaulThe
106ce4946daSBill Paul.Xr ifconfig 8
10772fb5ff3SRuslan Ermilov.Ic mediaopt
108ce4946daSBill Pauloption can also be used to select either
10972fb5ff3SRuslan Ermilov.Cm full-duplex
110ce4946daSBill Paulor
11172fb5ff3SRuslan Ermilov.Cm half-duplex
112ce4946daSBill Paulmodes.
11372fb5ff3SRuslan Ermilov.It Cm 100baseTX
114ce4946daSBill PaulSet 100Mbps (fast ethernet) operation.
115ce4946daSBill PaulThe
116ce4946daSBill Paul.Xr ifconfig 8
11772fb5ff3SRuslan Ermilov.Ic mediaopt
118ce4946daSBill Pauloption can also be used to select either
11972fb5ff3SRuslan Ermilov.Cm full-duplex
120ce4946daSBill Paulor
12172fb5ff3SRuslan Ermilov.Cm half-duplex
122ce4946daSBill Paulmodes.
12372fb5ff3SRuslan Ermilov.It Cm 1000baseTX
124ce4946daSBill PaulSet 1000baseTX operation over twisted pair.
12572fb5ff3SRuslan Ermilov.Cm full-duplex
126ce4946daSBill Pauland
12772fb5ff3SRuslan Ermilov.Cm half-duplex
128ce4946daSBill Paulmodes are supported.
12972fb5ff3SRuslan Ermilov.It Cm 1000baseSX
130ce4946daSBill PaulSet 1000Mbps (gigabit ethernet) operation.
131ce4946daSBill PaulBoth
13272fb5ff3SRuslan Ermilov.Cm full-duplex
133ce4946daSBill Pauland
13472fb5ff3SRuslan Ermilov.Cm half-duplex
135ce4946daSBill Paulmodes are supported.
136ce4946daSBill Paul.El
137ce4946daSBill Paul.Pp
138ce4946daSBill PaulThe
139ce4946daSBill Paul.Nm
140ce4946daSBill Pauldriver supports the following media options:
14172fb5ff3SRuslan Ermilov.Bl -tag -width full-duplex
14272fb5ff3SRuslan Ermilov.It Cm full-duplex
14372fb5ff3SRuslan ErmilovForce full duplex operation.
14472fb5ff3SRuslan Ermilov.It Cm half-duplex
145ce4946daSBill PaulForce half duplex operation.
146ce4946daSBill Paul.El
147ce4946daSBill Paul.Pp
148ce4946daSBill PaulThe
149ce4946daSBill Paul.Nm
150ce4946daSBill Pauldriver also supports one special link option for 1000baseTX cards:
15172fb5ff3SRuslan Ermilov.Bl -tag -width link0
15272fb5ff3SRuslan Ermilov.It Cm link0
153ce4946daSBill PaulWith 1000baseTX cards, establishing a link between two ports requires
154ce4946daSBill Paulthat one port be configured as a master and the other a slave.
155ce4946daSBill PaulWith autonegotiation,
156ce4946daSBill Paulthe master/slave settings will be chosen automatically.
157ce4946daSBill PaulHowever when manually selecting the link state, it is necessary to
158ce4946daSBill Paulforce one side of the link to be a master and the other a slave.
159ce4946daSBill PaulThe
160ce4946daSBill Paul.Nm
161ce4946daSBill Pauldriver configures the ports as slaves by default.
162ce4946daSBill PaulSetting the
16372fb5ff3SRuslan Ermilov.Cm link0
164ce4946daSBill Paulflag with
165ce4946daSBill Paul.Xr ifconfig 8
166ce4946daSBill Paulwill set a port as a master instead.
167ce4946daSBill Paul.El
168ce4946daSBill Paul.Pp
169ce4946daSBill PaulFor more information on configuring this device, see
170ce4946daSBill Paul.Xr ifconfig 8 .
171ce4946daSBill Paul.Sh DIAGNOSTICS
172ce4946daSBill Paul.Bl -diag
173ce4946daSBill Paul.It "nge%d: couldn't map memory"
174ce4946daSBill PaulA fatal initialization error has occurred.
175ce4946daSBill Paul.It "nge%d: couldn't map ports"
176ce4946daSBill PaulA fatal initialization error has occurred.
177ce4946daSBill Paul.It "nge%d: couldn't map interrupt"
178ce4946daSBill PaulA fatal initialization error has occurred.
179ce4946daSBill Paul.It "nge%d: no memory for softc struct!"
180ce4946daSBill PaulThe driver failed to allocate memory for per-device instance information
181ce4946daSBill Paulduring initialization.
182ce4946daSBill Paul.It "nge%d: failed to enable memory mapping!"
183ce4946daSBill PaulThe driver failed to initialize PCI shared memory mapping.
184ce4946daSBill PaulThis might
185ce4946daSBill Paulhappen if the card is not in a bus-master slot.
186ce4946daSBill Paul.It "nge%d: no memory for jumbo buffers!"
187ce4946daSBill PaulThe driver failed to allocate memory for jumbo frames during
188ce4946daSBill Paulinitialization.
189ce4946daSBill Paul.It "nge%d: watchdog timeout"
190ce4946daSBill PaulThe device has stopped responding to the network, or there is a problem with
191ce4946daSBill Paulthe network connection (cable).
192ce4946daSBill Paul.El
193ce4946daSBill Paul.Sh SEE ALSO
194ce4946daSBill Paul.Xr arp 4 ,
195130b84f5SChristian Brueffer.Xr miibus 4 ,
196ce4946daSBill Paul.Xr netintro 4 ,
197ce4946daSBill Paul.Xr ng_ether 4 ,
19872fb5ff3SRuslan Ermilov.Xr vlan 4 ,
199ce4946daSBill Paul.Xr ifconfig 8
200ce4946daSBill Paul.Rs
201ce4946daSBill Paul.%T National Semiconductor DP83820 datasheet
202ce4946daSBill Paul.%O http://www.national.com
203ce4946daSBill Paul.Re
204ce4946daSBill Paul.Rs
205ce4946daSBill Paul.%T National Semiconductor DP83861 datasheet
206ce4946daSBill Paul.%O http://www.national.com
207ce4946daSBill Paul.Re
208ce4946daSBill Paul.Sh HISTORY
209ce4946daSBill PaulThe
210ce4946daSBill Paul.Nm
211ce4946daSBill Pauldevice driver first appeared in
21286f47875SSheldon Hearn.Fx 4.4 .
213ce4946daSBill Paul.Sh AUTHORS
214ce4946daSBill PaulThe
215ce4946daSBill Paul.Nm
216ce4946daSBill Pauldriver was written by
217ce4946daSBill Paul.An Bill Paul Aq wpaul@bsdi.com .
218