xref: /dflybsd-src/share/man/man4/vge.4 (revision 265a14288b8a0c83c58af038128303ea7cd83c94)
113bca4c6SSepherosa Ziehau.\" Copyright (c) 2004
213bca4c6SSepherosa Ziehau.\"	Bill Paul <wpaul@windriver.com>. All rights reserved.
313bca4c6SSepherosa Ziehau.\"
413bca4c6SSepherosa Ziehau.\" Redistribution and use in source and binary forms, with or without
513bca4c6SSepherosa Ziehau.\" modification, are permitted provided that the following conditions
613bca4c6SSepherosa Ziehau.\" are met:
713bca4c6SSepherosa Ziehau.\" 1. Redistributions of source code must retain the above copyright
813bca4c6SSepherosa Ziehau.\"    notice, this list of conditions and the following disclaimer.
913bca4c6SSepherosa Ziehau.\" 2. Redistributions in binary form must reproduce the above copyright
1013bca4c6SSepherosa Ziehau.\"    notice, this list of conditions and the following disclaimer in the
1113bca4c6SSepherosa Ziehau.\"    documentation and/or other materials provided with the distribution.
1213bca4c6SSepherosa Ziehau.\" 3. All advertising materials mentioning features or use of this software
1313bca4c6SSepherosa Ziehau.\"    must display the following acknowledgement:
1413bca4c6SSepherosa Ziehau.\"	This product includes software developed by Bill Paul.
1513bca4c6SSepherosa Ziehau.\" 4. Neither the name of the author nor the names of any co-contributors
1613bca4c6SSepherosa Ziehau.\"    may be used to endorse or promote products derived from this software
1713bca4c6SSepherosa Ziehau.\"   without specific prior written permission.
1813bca4c6SSepherosa Ziehau.\"
1913bca4c6SSepherosa Ziehau.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
2013bca4c6SSepherosa Ziehau.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2113bca4c6SSepherosa Ziehau.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2213bca4c6SSepherosa Ziehau.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
2313bca4c6SSepherosa Ziehau.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2413bca4c6SSepherosa Ziehau.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2513bca4c6SSepherosa Ziehau.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2613bca4c6SSepherosa Ziehau.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2713bca4c6SSepherosa Ziehau.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2813bca4c6SSepherosa Ziehau.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
2913bca4c6SSepherosa Ziehau.\" THE POSSIBILITY OF SUCH DAMAGE.
3013bca4c6SSepherosa Ziehau.\"
3113bca4c6SSepherosa Ziehau.\" $FreeBSD: src/share/man/man4/vge.4,v 1.10 2005/10/07 02:32:15 trhodes Exp $
3213bca4c6SSepherosa Ziehau.\"
3313bca4c6SSepherosa Ziehau.Dd May 20, 2006
3413bca4c6SSepherosa Ziehau.Dt VGE 4
3513bca4c6SSepherosa Ziehau.Os
3613bca4c6SSepherosa Ziehau.Sh NAME
3713bca4c6SSepherosa Ziehau.Nm vge
3813bca4c6SSepherosa Ziehau.Nd "VIA Networking Technologies VT6122 PCI Gigabit Ethernet adapter driver"
3913bca4c6SSepherosa Ziehau.Sh SYNOPSIS
4013bca4c6SSepherosa ZiehauTo compile this driver into the kernel,
4113bca4c6SSepherosa Ziehauplace the following lines in your
4213bca4c6SSepherosa Ziehaukernel configuration file:
4313bca4c6SSepherosa Ziehau.Bd -ragged -offset indent
4413bca4c6SSepherosa Ziehau.Cd "device miibus"
4513bca4c6SSepherosa Ziehau.Cd "device vge"
4613bca4c6SSepherosa Ziehau.Ed
4713bca4c6SSepherosa Ziehau.Pp
4813bca4c6SSepherosa ZiehauAlternatively, to load the driver as a
4913bca4c6SSepherosa Ziehaumodule at boot time, place the following line in
5013bca4c6SSepherosa Ziehau.Xr loader.conf 5 :
5113bca4c6SSepherosa Ziehau.Bd -literal -offset indent
5213bca4c6SSepherosa Ziehauif_vge_load="YES"
5313bca4c6SSepherosa Ziehau.Ed
5413bca4c6SSepherosa Ziehau.Sh DESCRIPTION
5513bca4c6SSepherosa ZiehauThe
5613bca4c6SSepherosa Ziehau.Nm
5713bca4c6SSepherosa Ziehaudriver provides support for various NICs and embedded Ethernet interfaces
5813bca4c6SSepherosa Ziehaubased on the VIA Networking Technologies VT6122 Gigabit Ethernet
5913bca4c6SSepherosa Ziehaucontroller chips.
6013bca4c6SSepherosa Ziehau.Pp
6113bca4c6SSepherosa ZiehauThe VT6122 is a 33/66Mhz 64-bit PCI device which combines a tri-speed MAC with
6213bca4c6SSepherosa Ziehauan integrated 10/100/1000 copper PHY.
6313bca4c6SSepherosa Ziehau(Some older cards use an external PHY.)
6413bca4c6SSepherosa ZiehauThe MAC supports TCP/IP hardware
6513bca4c6SSepherosa Ziehauchecksums (IPv4 only), TCP large send, VLAN tag insertion and stripping,
6613bca4c6SSepherosa Ziehauas well as VLAN filtering, a 64-entry CAM filter and a 64-entry VLAN filter,
6713bca4c6SSepherosa Ziehau64-bit multicast hash filter, 4 separate transmit DMA queues, flow control
6813bca4c6SSepherosa Ziehauand jumbo frames up to 16K in size.
6913bca4c6SSepherosa ZiehauThe VT6122 has a 16K receive FIFO and 48K transmit FIFO.
7013bca4c6SSepherosa Ziehau.Pp
7113bca4c6SSepherosa ZiehauThe
7213bca4c6SSepherosa Ziehau.Nm
7313bca4c6SSepherosa Ziehaudriver takes advantage of the VT6122's checksum offload and VLAN
7413bca4c6SSepherosa Ziehautagging features, as well as the jumbo frame and CAM filter support.
7513bca4c6SSepherosa ZiehauThe CAM filter is used for multicast address filtering to provide
7613bca4c6SSepherosa Ziehau64 perfect multicast address filter support.
7713bca4c6SSepherosa ZiehauIf it is necessary for the interface to join more than 64 multicast
7813bca4c6SSepherosa Ziehaugroups, the driver will switch over to using the hash filter.
7913bca4c6SSepherosa Ziehau.Pp
8013bca4c6SSepherosa ZiehauThe jumbo frame support can be enabled by setting the interface MTU
8113bca4c6SSepherosa Ziehauto any value larger than the default of 1500 bytes, up to a maximum
8213bca4c6SSepherosa Ziehauof 9000 bytes.
8313bca4c6SSepherosa ZiehauThe receive and transmit checksum offload support
8413bca4c6SSepherosa Ziehaucan be toggled on and off using the
8513bca4c6SSepherosa Ziehau.Xr ifconfig 8
8613bca4c6SSepherosa Ziehauutility.
8713bca4c6SSepherosa Ziehau.Pp
8813bca4c6SSepherosa ZiehauThe
8913bca4c6SSepherosa Ziehau.Nm
9013bca4c6SSepherosa Ziehaudriver supports the following media types:
9113bca4c6SSepherosa Ziehau.Bl -tag -width ".Cm 10baseT/UTP"
9213bca4c6SSepherosa Ziehau.It Cm autoselect
9313bca4c6SSepherosa ZiehauEnable autoselection of the media type and options.
9413bca4c6SSepherosa ZiehauThe user can manually override
9513bca4c6SSepherosa Ziehauthe autoselected mode by adding media options to
9613bca4c6SSepherosa Ziehau.Xr rc.conf 5 .
9713bca4c6SSepherosa Ziehau.It Cm 10baseT/UTP
9813bca4c6SSepherosa ZiehauSet 10Mbps operation.
9913bca4c6SSepherosa ZiehauThe
10013bca4c6SSepherosa Ziehau.Xr ifconfig 8
10113bca4c6SSepherosa Ziehau.Cm mediaopt
10213bca4c6SSepherosa Ziehauoption can also be used to select either
10313bca4c6SSepherosa Ziehau.Cm full-duplex
10413bca4c6SSepherosa Ziehauor
10513bca4c6SSepherosa Ziehau.Cm half-duplex
10613bca4c6SSepherosa Ziehaumodes.
10713bca4c6SSepherosa Ziehau.It Cm 100baseTX
10813bca4c6SSepherosa ZiehauSet 100Mbps (Fast Ethernet) operation.
10913bca4c6SSepherosa ZiehauThe
11013bca4c6SSepherosa Ziehau.Xr ifconfig 8
11113bca4c6SSepherosa Ziehau.Cm mediaopt
11213bca4c6SSepherosa Ziehauoption can also be used to select either
11313bca4c6SSepherosa Ziehau.Cm full-duplex
11413bca4c6SSepherosa Ziehauor
11513bca4c6SSepherosa Ziehau.Cm half-duplex
11613bca4c6SSepherosa Ziehaumodes.
1179bbc5585SHasso Tepper.It Cm 1000baseT
1189bbc5585SHasso TepperSet 1000baseT operation over twisted pair.
11913bca4c6SSepherosa ZiehauThe
12013bca4c6SSepherosa Ziehau.Xr ifconfig 8
12113bca4c6SSepherosa Ziehau.Cm mediaopt
12213bca4c6SSepherosa Ziehauoption can also be used to select either
12313bca4c6SSepherosa Ziehau.Cm full-duplex
12413bca4c6SSepherosa Ziehauor
12513bca4c6SSepherosa Ziehau.Cm half-duplex
12613bca4c6SSepherosa Ziehaumodes.
12713bca4c6SSepherosa Ziehau.El
12813bca4c6SSepherosa Ziehau.Pp
12913bca4c6SSepherosa ZiehauThe
13013bca4c6SSepherosa Ziehau.Nm
13113bca4c6SSepherosa Ziehaudriver supports the following media options:
13213bca4c6SSepherosa Ziehau.Bl -tag -width ".Cm full-duplex"
13313bca4c6SSepherosa Ziehau.It Cm full-duplex
13413bca4c6SSepherosa ZiehauForce full duplex operation.
13513bca4c6SSepherosa Ziehau.It Cm half-duplex
13613bca4c6SSepherosa ZiehauForce half duplex operation.
13713bca4c6SSepherosa Ziehau.El
13813bca4c6SSepherosa Ziehau.Pp
13913bca4c6SSepherosa ZiehauThe
14013bca4c6SSepherosa Ziehau.Nm
1419bbc5585SHasso Tepperdriver also supports one special link option for 1000baseT cards:
14213bca4c6SSepherosa Ziehau.Bl -tag -width ".Cm link0"
14313bca4c6SSepherosa Ziehau.It Cm link0
1449bbc5585SHasso TepperWith 1000baseT cards, establishing a link between two ports requires
14513bca4c6SSepherosa Ziehauthat one port be configured as a master and the other a slave.
14613bca4c6SSepherosa ZiehauWith autonegotiation,
14713bca4c6SSepherosa Ziehauthe master/slave settings will be chosen automatically.
14813bca4c6SSepherosa ZiehauHowever when manually selecting the link state, it is necessary to
14913bca4c6SSepherosa Ziehauforce one side of the link to be a master and the other a slave.
15013bca4c6SSepherosa ZiehauThe
15113bca4c6SSepherosa Ziehau.Nm
15213bca4c6SSepherosa Ziehaudriver configures the ports as slaves by default.
15313bca4c6SSepherosa ZiehauSetting the
15413bca4c6SSepherosa Ziehau.Cm link0
15513bca4c6SSepherosa Ziehauflag with
15613bca4c6SSepherosa Ziehau.Xr ifconfig 8
15713bca4c6SSepherosa Ziehauwill set a port as a master instead.
15813bca4c6SSepherosa Ziehau.El
15913bca4c6SSepherosa Ziehau.Pp
16013bca4c6SSepherosa ZiehauFor more information on configuring this device, see
16113bca4c6SSepherosa Ziehau.Xr ifconfig 8 .
162d0569bf9SThomas NikolajsenThe
163d0569bf9SThomas Nikolajsen.Nm
164d0569bf9SThomas Nikolajsendriver supports
165d0569bf9SThomas Nikolajsen.Xr polling 4 .
16613bca4c6SSepherosa Ziehau.Sh HARDWARE
16713bca4c6SSepherosa ZiehauThe
16813bca4c6SSepherosa Ziehau.Nm
16913bca4c6SSepherosa Ziehaudriver supports VIA Networking VT3119 and VT6122 based
17013bca4c6SSepherosa ZiehauGigabit Ethernet adapters including:
17113bca4c6SSepherosa Ziehau.Pp
17213bca4c6SSepherosa Ziehau.Bl -bullet -compact
17313bca4c6SSepherosa Ziehau.It
17413bca4c6SSepherosa ZiehauVIA Networking LAN-on-motherboard Gigabit Ethernet
17513bca4c6SSepherosa Ziehau.It
17613bca4c6SSepherosa ZiehauZyXEL GN650-T 64-bit PCI Gigabit Ethernet NIC (ZX1701)
17713bca4c6SSepherosa Ziehau.It
17813bca4c6SSepherosa ZiehauZyXEL GN670-T 32-bit PCI Gigabit Ethernet NIC (ZX1702)
17913bca4c6SSepherosa Ziehau.El
18013bca4c6SSepherosa Ziehau.Sh DIAGNOSTICS
18113bca4c6SSepherosa Ziehau.Bl -diag
18213bca4c6SSepherosa Ziehau.It "vge%d: couldn't map memory"
18313bca4c6SSepherosa ZiehauA fatal initialization error has occurred.
18413bca4c6SSepherosa Ziehau.It "vge%d: couldn't map ports"
18513bca4c6SSepherosa ZiehauA fatal initialization error has occurred.
18613bca4c6SSepherosa Ziehau.It "vge%d: couldn't map interrupt"
18713bca4c6SSepherosa ZiehauA fatal initialization error has occurred.
18813bca4c6SSepherosa Ziehau.It "vge%d: failed to enable memory mapping!"
18913bca4c6SSepherosa ZiehauThe driver failed to initialize PCI shared memory mapping.
19013bca4c6SSepherosa ZiehauThis might
19113bca4c6SSepherosa Ziehauhappen if the card is not in a bus-master slot.
19213bca4c6SSepherosa Ziehau.It "vge%d: watchdog timeout"
19313bca4c6SSepherosa ZiehauThe device has stopped responding to the network, or there is a problem with
19413bca4c6SSepherosa Ziehauthe network connection (cable).
19513bca4c6SSepherosa Ziehau.El
19613bca4c6SSepherosa Ziehau.Sh SEE ALSO
19713bca4c6SSepherosa Ziehau.Xr arp 4 ,
1988985f72fSSascha Wildner.Xr ifmedia 4 ,
19913bca4c6SSepherosa Ziehau.Xr miibus 4 ,
20013bca4c6SSepherosa Ziehau.Xr netintro 4 ,
20113bca4c6SSepherosa Ziehau.Xr ng_ether 4 ,
20213bca4c6SSepherosa Ziehau.Xr polling 4 ,
20313bca4c6SSepherosa Ziehau.Xr vlan 4 ,
20413bca4c6SSepherosa Ziehau.Xr ifconfig 8
20513bca4c6SSepherosa Ziehau.Sh HISTORY
20613bca4c6SSepherosa ZiehauThe
20713bca4c6SSepherosa Ziehau.Nm
20813bca4c6SSepherosa Ziehaudevice driver first appeared in
20913bca4c6SSepherosa Ziehau.Fx 5.3 .
21013bca4c6SSepherosa ZiehauIt was imported into
21113bca4c6SSepherosa Ziehau.Dx 1.5 .
21213bca4c6SSepherosa Ziehau.Sh AUTHORS
21313bca4c6SSepherosa ZiehauThe
21413bca4c6SSepherosa Ziehau.Nm
21513bca4c6SSepherosa Ziehaudriver was written by
216e18a87e3SFranco Fichtner.An Bill Paul Aq Mt wpaul@windriver.com .
21713bca4c6SSepherosa Ziehau.Sh BUGS
21813bca4c6SSepherosa Ziehau.Xr polling 4
21913bca4c6SSepherosa Ziehaumay not work with
220*265a1428SSascha Wildner.Nm .
221