1 .\" Copyright (c) 1997, 1998, 1999
2 .\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
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.
38 .Nd "Alteon Networks Tigon I and Tigon II Gigabit Ethernet driver"
40 To compile this driver into the kernel,
41 place the following lines in your
42 kernel configuration file:
43 .Bd -ragged -offset indent
45 .Cd "options TI_PRIVATE_JUMBOS"
46 .Cd "options TI_JUMBO_HDRSPLIT"
49 Alternatively, to load the driver as a
50 module at boot time, place the following line in
52 .Bd -literal -offset indent
58 driver provides support for PCI Gigabit Ethernet adapters based on
59 the Alteon Networks Tigon Gigabit Ethernet controller chip.
61 contains an embedded R4000 CPU, gigabit MAC, dual DMA channels and
63 The Tigon II contains two R4000 CPUs and other
65 Either chip can be used in either a 32-bit or 64-bit PCI
67 Communication with the chip is achieved via PCI shared memory
69 The Tigon I and II support hardware multicast
70 address filtering, VLAN tag extraction and insertion, and jumbo
71 Ethernet frames sizes up to 9000 bytes.
72 Note that the Tigon I chipset
73 is no longer in active production: all new adapters should come equipped
74 with Tigon II chipsets.
76 While the Tigon chipset supports 10, 100 and 1000Mbps speeds, support for
77 10 and 100Mbps speeds is only available on boards with the proper
79 Most adapters are only designed to work at 1000Mbps,
80 however the driver should support those NICs that work at lower speeds
83 Support for jumbo frames is provided via the interface MTU setting.
84 Selecting an MTU larger than 1500 bytes with the
86 utility configures the adapter to receive and transmit jumbo frames.
87 Using jumbo frames can greatly improve performance for certain tasks,
88 such as file transfers and data streaming.
90 Header splitting support for Tigon 2 boards (this option has no effect for
91 the Tigon 1) can be turned on with the
96 for more discussion on zero copy receive and header splitting.
100 driver normally uses jumbo receive buffers allocated by the
102 buffer allocator, but can be configured to use its own private pool of
103 jumbo buffers that are contiguous instead of buffers from the jumbo
104 allocator, which are made up of multiple page sized chunks.
105 To turn on private jumbos, use the
106 .Dv TI_PRIVATE_JUMBOS
109 Support for vlans is also available using the
114 man page for more details.
118 driver supports the following media types:
120 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
122 Enable autoselection of the media type and options.
123 The user can manually override
124 the autoselected mode by adding media options to the
128 Set 10Mbps operation.
131 option can also be used to select either
137 Set 100Mbps (Fast Ethernet) operation.
140 option can also be used to select either
146 Set 1000Mbps (Gigabit Ethernet) operation.
149 mode is supported at this speed.
154 driver supports the following media options:
156 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
158 Force full duplex operation
160 Force half duplex operation.
163 For more information on configuring this device, see
168 driver supports Gigabit Ethernet adapters based on the
169 Alteon Tigon I and II chips.
172 driver has been tested with the following adapters:
176 3Com 3c985-SX Gigabit Ethernet adapter (Tigon 1)
178 3Com 3c985B-SX Gigabit Ethernet adapter (Tigon 2)
180 Alteon AceNIC V Gigabit Ethernet adapter (1000baseSX)
182 Alteon AceNIC V Gigabit Ethernet adapter (1000baseT)
184 Digital EtherWORKS 1000SX PCI Gigabit adapter
186 Netgear GA620 Gigabit Ethernet adapter (1000baseSX)
188 Netgear GA620T Gigabit Ethernet adapter (1000baseT)
191 The following adapters should also be supported but have
196 Asante GigaNIX1000T Gigabit Ethernet adapter
198 Asante PCI 1000BASE-SX Gigabit Ethernet adapter
200 Farallon PN9000SX Gigabit Ethernet adapter
204 Silicon Graphics PCI Gigabit Ethernet adapter
207 In addition to the standard
210 calls implemented by most network drivers, the
212 driver also includes a character device interface that can be used for
213 additional diagnostics, configuration and debugging.
215 device interface, and a specially patched version of
218 debug firmware running on the Tigon board.
220 These ioctls and their arguments are defined in the
223 .Bl -tag -width ".Dv ALT_WRITE_TG_MEM"
225 Return card statistics DMAed from the card into kernel memory approximately
227 (That time interval can be changed via the
231 .Vt "struct ti_stats" .
232 .It Dv TIIOCGETPARAMS
233 Get various performance-related firmware parameters that largely affect how
234 interrupts are coalesced.
236 .Vt "struct ti_params" .
237 .It Dv TIIOCSETPARAMS
238 Set various performance-related firmware parameters that largely affect how
239 interrupts are coalesced.
241 .Vt "struct ti_params" .
243 Tell the NIC to trace the requested types of information.
247 Dump the trace buffer from the card.
249 .Vt "struct ti_trace_buf" .
251 This ioctl is used for compatibility with Alteon's Solaris driver.
252 They apparently only have one character interface for debugging, so they have
253 to tell it which Tigon instance they want to debug.
254 This ioctl is a noop for
256 .It Dv ALT_READ_TG_MEM
257 Read the requested memory region from the Tigon board.
259 .Vt "struct tg_mem" .
260 .It Dv ALT_WRITE_TG_MEM
261 Write to the requested memory region on the Tigon board.
263 .Vt "struct tg_mem" .
264 .It Dv ALT_READ_TG_REG
265 Read the requested register on the Tigon board.
267 .Vt "struct tg_reg" .
268 .It Dv ALT_WRITE_TG_REG
269 Write to the requested register on the Tigon board.
271 .Vt "struct tg_reg" .
274 .Bl -tag -width ".Pa /dev/ti[0-255]" -compact
275 .It Pa /dev/ti[0-255]
276 Tigon driver character interface.
280 .It "ti%d: couldn't map memory"
281 A fatal initialization error has occurred.
282 .It "ti%d: couldn't map interrupt"
283 A fatal initialization error has occurred.
284 .It "ti%d: no memory for softc struct!"
285 The driver failed to allocate memory for per-device instance information
286 during initialization.
287 .It "ti%d: failed to enable memory mapping!"
288 The driver failed to initialize PCI shared memory mapping.
290 happen if the card is not in a bus-master slot.
291 .It "ti%d: no memory for jumbo buffers!"
292 The driver failed to allocate memory for jumbo frames during
294 .It "ti%d: bios thinks we're in a 64 bit slot, but we aren't"
295 The BIOS has programmed the NIC as though it had been installed in
296 a 64-bit PCI slot, but in fact the NIC is in a 32-bit slot.
298 as a result of a bug in some BIOSes.
299 This can be worked around on the
300 Tigon II, but on the Tigon I initialization will fail.
301 .It "ti%d: board self-diagnostics failed!"
302 The ROMFAIL bit in the CPU state register was set after system
303 startup, indicating that the on-board NIC diagnostics failed.
304 .It "ti%d: unknown hwrev"
305 The driver detected a board with an unsupported hardware revision.
308 driver supports revision 4 (Tigon 1) and revision 6 (Tigon 2) chips
309 and has firmware only for those devices.
310 .It "ti%d: watchdog timeout"
311 The device has stopped responding to the network, or there is a problem with
312 the network connection (cable).
325 device driver first appeared in
331 driver was written by
332 .An Bill Paul Aq wpaul@bsdi.com .
333 The header splitting firmware modifications, character
335 interface and debugging support were written by
336 .An Kenneth Merry Aq ken@FreeBSD.org .
337 Initial zero copy support was written by
338 .An Andrew Gallatin Aq gallatin@FreeBSD.org .