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