xref: /dragonfly/share/man/man4/vge.4 (revision d8082429)
1.\" Copyright (c) 2004
2.\"	Bill Paul <wpaul@windriver.com>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by Bill Paul.
15.\" 4. Neither the name of the author nor the names of any co-contributors
16.\"    may be used to endorse or promote products derived from this software
17.\"   without specific prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
23.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29.\" THE POSSIBILITY OF SUCH DAMAGE.
30.\"
31.\" $FreeBSD: src/share/man/man4/vge.4,v 1.10 2005/10/07 02:32:15 trhodes Exp $
32.\"
33.Dd May 20, 2006
34.Dt VGE 4
35.Os
36.Sh NAME
37.Nm vge
38.Nd "VIA Networking Technologies VT6122 PCI Gigabit Ethernet adapter driver"
39.Sh SYNOPSIS
40To compile this driver into the kernel,
41place the following lines in your
42kernel configuration file:
43.Bd -ragged -offset indent
44.Cd "device miibus"
45.Cd "device vge"
46.Ed
47.Pp
48Alternatively, to load the driver as a
49module at boot time, place the following line in
50.Xr loader.conf 5 :
51.Bd -literal -offset indent
52if_vge_load="YES"
53.Ed
54.Sh DESCRIPTION
55The
56.Nm
57driver provides support for various NICs and embedded Ethernet interfaces
58based on the VIA Networking Technologies VT6122 Gigabit Ethernet
59controller chips.
60.Pp
61The VT6122 is a 33/66Mhz 64-bit PCI device which combines a tri-speed MAC with
62an integrated 10/100/1000 copper PHY.
63(Some older cards use an external PHY.)
64The MAC supports TCP/IP hardware
65checksums (IPv4 only), TCP large send, VLAN tag insertion and stripping,
66as well as VLAN filtering, a 64-entry CAM filter and a 64-entry VLAN filter,
6764-bit multicast hash filter, 4 separate transmit DMA queues, flow control
68and jumbo frames up to 16K in size.
69The VT6122 has a 16K receive FIFO and 48K transmit FIFO.
70.Pp
71The
72.Nm
73driver takes advantage of the VT6122's checksum offload and VLAN
74tagging features, as well as the jumbo frame and CAM filter support.
75The CAM filter is used for multicast address filtering to provide
7664 perfect multicast address filter support.
77If it is necessary for the interface to join more than 64 multicast
78groups, the driver will switch over to using the hash filter.
79.Pp
80The jumbo frame support can be enabled by setting the interface MTU
81to any value larger than the default of 1500 bytes, up to a maximum
82of 9000 bytes.
83The receive and transmit checksum offload support
84can be toggled on and off using the
85.Xr ifconfig 8
86utility.
87.Pp
88The
89.Nm
90driver supports the following media types:
91.Bl -tag -width ".Cm 10baseT/UTP"
92.It Cm autoselect
93Enable autoselection of the media type and options.
94The user can manually override
95the autoselected mode by adding media options to
96.Xr rc.conf 5 .
97.It Cm 10baseT/UTP
98Set 10Mbps operation.
99The
100.Xr ifconfig 8
101.Cm mediaopt
102option can also be used to select either
103.Cm full-duplex
104or
105.Cm half-duplex
106modes.
107.It Cm 100baseTX
108Set 100Mbps (Fast Ethernet) operation.
109The
110.Xr ifconfig 8
111.Cm mediaopt
112option can also be used to select either
113.Cm full-duplex
114or
115.Cm half-duplex
116modes.
117.It Cm 1000baseT
118Set 1000baseT operation over twisted pair.
119The
120.Xr ifconfig 8
121.Cm mediaopt
122option can also be used to select either
123.Cm full-duplex
124or
125.Cm half-duplex
126modes.
127.El
128.Pp
129The
130.Nm
131driver supports the following media options:
132.Bl -tag -width ".Cm full-duplex"
133.It Cm full-duplex
134Force full duplex operation.
135.It Cm half-duplex
136Force half duplex operation.
137.El
138.Pp
139The
140.Nm
141driver also supports one special link option for 1000baseT cards:
142.Bl -tag -width ".Cm link0"
143.It Cm link0
144With 1000baseT cards, establishing a link between two ports requires
145that one port be configured as a master and the other a slave.
146With autonegotiation,
147the master/slave settings will be chosen automatically.
148However when manually selecting the link state, it is necessary to
149force one side of the link to be a master and the other a slave.
150The
151.Nm
152driver configures the ports as slaves by default.
153Setting the
154.Cm link0
155flag with
156.Xr ifconfig 8
157will set a port as a master instead.
158.El
159.Pp
160For more information on configuring this device, see
161.Xr ifconfig 8 .
162The
163.Nm
164driver supports
165.Xr polling 4 .
166.Sh HARDWARE
167The
168.Nm
169driver supports VIA Networking VT3119 and VT6122 based
170Gigabit Ethernet adapters including:
171.Pp
172.Bl -bullet -compact
173.It
174VIA Networking LAN-on-motherboard Gigabit Ethernet
175.It
176ZyXEL GN650-T 64-bit PCI Gigabit Ethernet NIC (ZX1701)
177.It
178ZyXEL GN670-T 32-bit PCI Gigabit Ethernet NIC (ZX1702)
179.El
180.Sh DIAGNOSTICS
181.Bl -diag
182.It "vge%d: couldn't map memory"
183A fatal initialization error has occurred.
184.It "vge%d: couldn't map ports"
185A fatal initialization error has occurred.
186.It "vge%d: couldn't map interrupt"
187A fatal initialization error has occurred.
188.It "vge%d: failed to enable memory mapping!"
189The driver failed to initialize PCI shared memory mapping.
190This might
191happen if the card is not in a bus-master slot.
192.It "vge%d: watchdog timeout"
193The device has stopped responding to the network, or there is a problem with
194the network connection (cable).
195.El
196.Sh SEE ALSO
197.Xr arp 4 ,
198.Xr ifmedia 4 ,
199.Xr miibus 4 ,
200.Xr netintro 4 ,
201.Xr ng_ether 4 ,
202.Xr polling 4 ,
203.Xr vlan 4 ,
204.Xr ifconfig 8
205.Sh HISTORY
206The
207.Nm
208device driver first appeared in
209.Fx 5.3 .
210It was imported into
211.Dx 1.5 .
212.Sh AUTHORS
213The
214.Nm
215driver was written by
216.An Bill Paul Aq Mt wpaul@windriver.com .
217.Sh BUGS
218.Xr polling 4
219may not work with
220.Nm .
221