xref: /freebsd/share/man/man4/vge.4 (revision 6af83ee0d2941d18880b6aaa2b4facd1d30c6106)
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$
32.\"
33.Dd November 24, 2004
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
40.Cd "device miibus"
41.Cd "device vge"
42.Sh DESCRIPTION
43The
44.Nm
45driver provides support for various NICs and embedded Ethernet interfaces
46based on the VIA Networking Technologies VT6122 Gigabit Ethernet
47controller chips.
48.Pp
49The VT6122 is a 33/66Mhz 64-bit PCI device which combines a tri-speed MAC with
50an integrated 10/100/1000 copper PHY.
51(Some older cards use an external PHY.)
52The MAC supports TCP/IP hardware
53checksums (IPv4 only), TCP large send, VLAN tag insertion and stripping,
54as well as VLAN filtering, a 64-entry CAM filter and a 64-entry VLAN filter,
5564-bit multicast hash filter, 4 separate transmit DMA queues, flow control
56and jumbo frames up to 16K in size.
57The VT6122 has a 16K receive FIFO and 48K transmit FIFO.
58.Pp
59The
60.Nm
61driver takes advantage of the VT6122's checksum offload and VLAN
62tagging features, as well as the jumbo frame and CAM filter support.
63The CAM filter is used for multicast address filtering to provide
6464 perfect multicast address filter support.
65If it is necessary for the interface to join more than 64 multicast
66groups, the driver will switch over to using the hash filter.
67.Pp
68The jumbo frame support can be enabled by setting the interface MTU
69to any value larger than the default of 1500 bytes, up to a maximum
70of 9000 bytes.
71The receive and transmit checksum offload support
72can be toggled on and off using the
73.Xr ifconfig 8
74utility.
75.Pp
76The
77.Nm
78driver supports the following media types:
79.Bl -tag -width ".Cm 10baseT/UTP"
80.It Cm autoselect
81Enable autoselection of the media type and options.
82The user can manually override
83the autoselected mode by adding media options to
84.Xr rc.conf 5 .
85.It Cm 10baseT/UTP
86Set 10Mbps operation.
87The
88.Xr ifconfig 8
89.Cm mediaopt
90option can also be used to select either
91.Cm full-duplex
92or
93.Cm half-duplex
94modes.
95.It Cm 100baseTX
96Set 100Mbps (Fast Ethernet) operation.
97The
98.Xr ifconfig 8
99.Cm mediaopt
100option can also be used to select either
101.Cm full-duplex
102or
103.Cm half-duplex
104modes.
105.It Cm 1000baseTX
106Set 1000baseTX operation over twisted pair.
107The
108.Xr ifconfig 8
109.Cm mediaopt
110option can also be used to select either
111.Cm full-duplex
112or
113.Cm half-duplex
114modes.
115.El
116.Pp
117The
118.Nm
119driver supports the following media options:
120.Bl -tag -width ".Cm full-duplex"
121.It Cm full-duplex
122Force full duplex operation.
123.It Cm half-duplex
124Force half duplex operation.
125.El
126.Pp
127The
128.Nm
129driver also supports one special link option for 1000baseTX cards:
130.Bl -tag -width ".Cm link0"
131.It Cm link0
132With 1000baseTX cards, establishing a link between two ports requires
133that one port be configured as a master and the other a slave.
134With autonegotiation,
135the master/slave settings will be chosen automatically.
136However when manually selecting the link state, it is necessary to
137force one side of the link to be a master and the other a slave.
138The
139.Nm
140driver configures the ports as slaves by default.
141Setting the
142.Cm link0
143flag with
144.Xr ifconfig 8
145will set a port as a master instead.
146.El
147.Pp
148For more information on configuring this device, see
149.Xr ifconfig 8 .
150.Sh HARDWARE
151The
152.Nm
153driver supports VIA Networking VT3119 and VT6122 based
154Gigabit Ethernet adapters including:
155.Pp
156.Bl -bullet -compact
157.It
158VIA Networking LAN-on-motherboard Gigabit Ethernet
159.It
160ZyXEL GN650-T 64-bit PCI Gigabit Ethernet NIC (ZX1701)
161.It
162ZyXEL GN670-T 32-bit PCI Gigabit Ethernet NIC (ZX1702)
163.El
164.Sh DIAGNOSTICS
165.Bl -diag
166.It "vge%d: couldn't map memory"
167A fatal initialization error has occurred.
168.It "vge%d: couldn't map ports"
169A fatal initialization error has occurred.
170.It "vge%d: couldn't map interrupt"
171A fatal initialization error has occurred.
172.It "vge%d: failed to enable memory mapping!"
173The driver failed to initialize PCI shared memory mapping.
174This might
175happen if the card is not in a bus-master slot.
176.It "vge%d: watchdog timeout"
177The device has stopped responding to the network, or there is a problem with
178the network connection (cable).
179.El
180.Sh SEE ALSO
181.Xr arp 4 ,
182.Xr miibus 4 ,
183.Xr netintro 4 ,
184.Xr ng_ether 4 ,
185.Xr polling 4 ,
186.Xr vlan 4 ,
187.Xr ifconfig 8
188.Sh HISTORY
189The
190.Nm
191device driver first appeared in
192.Fx 5.3 .
193.Sh AUTHORS
194The
195.Nm
196driver was written by
197.An Bill Paul Aq wpaul@windriver.com .
198