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:
119 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
121 Enable autoselection of the media type and options.
122 The user can manually override
123 the autoselected mode by adding media options to the
127 Set 10Mbps operation.
130 option can also be used to select either
136 Set 100Mbps (Fast Ethernet) operation.
139 option can also be used to select either
145 Set 1000Mbps (Gigabit Ethernet) operation.
148 mode is supported at this speed.
153 driver supports the following media options:
154 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
156 Force full duplex operation
158 Force half duplex operation.
161 For more information on configuring this device, see
166 driver supports Gigabit Ethernet adapters based on the
167 Alteon Tigon I and II chips.
170 driver has been tested with the following adapters:
174 3Com 3c985-SX Gigabit Ethernet adapter (Tigon 1)
176 3Com 3c985B-SX Gigabit Ethernet adapter (Tigon 2)
178 Alteon AceNIC V Gigabit Ethernet adapter (1000baseSX)
180 Alteon AceNIC V Gigabit Ethernet adapter (1000baseT)
182 Digital EtherWORKS 1000SX PCI Gigabit adapter
184 Netgear GA620 Gigabit Ethernet adapter (1000baseSX)
186 Netgear GA620T Gigabit Ethernet adapter (1000baseT)
189 The following adapters should also be supported but have
194 Asante GigaNIX1000T Gigabit Ethernet adapter
196 Asante PCI 1000BASE-SX Gigabit Ethernet adapter
198 Farallon PN9000SX Gigabit Ethernet adapter
202 Silicon Graphics PCI Gigabit Ethernet adapter
205 In addition to the standard
208 calls implemented by most network drivers, the
210 driver also includes a character device interface that can be used for
211 additional diagnostics, configuration and debugging.
213 device interface, and a specially patched version of
216 debug firmware running on the Tigon board.
218 These ioctls and their arguments are defined in the
221 .Bl -tag -width ".Dv ALT_WRITE_TG_MEM"
223 Return card statistics DMAed from the card into kernel memory approximately
225 (That time interval can be changed via the
229 .Vt "struct ti_stats" .
230 .It Dv TIIOCGETPARAMS
231 Get various performance-related firmware parameters that largely affect how
232 interrupts are coalesced.
234 .Vt "struct ti_params" .
235 .It Dv TIIOCSETPARAMS
236 Set various performance-related firmware parameters that largely affect how
237 interrupts are coalesced.
239 .Vt "struct ti_params" .
241 Tell the NIC to trace the requested types of information.
245 Dump the trace buffer from the card.
247 .Vt "struct ti_trace_buf" .
249 This ioctl is used for compatibility with Alteon's Solaris driver.
250 They apparently only have one character interface for debugging, so they have
251 to tell it which Tigon instance they want to debug.
252 This ioctl is a noop for
254 .It Dv ALT_READ_TG_MEM
255 Read the requested memory region from the Tigon board.
257 .Vt "struct tg_mem" .
258 .It Dv ALT_WRITE_TG_MEM
259 Write to the requested memory region on the Tigon board.
261 .Vt "struct tg_mem" .
262 .It Dv ALT_READ_TG_REG
263 Read the requested register on the Tigon board.
265 .Vt "struct tg_reg" .
266 .It Dv ALT_WRITE_TG_REG
267 Write to the requested register on the Tigon board.
269 .Vt "struct tg_reg" .
272 .Bl -tag -width ".Pa /dev/ti[0-255]" -compact
273 .It Pa /dev/ti[0-255]
274 Tigon driver character interface.
278 .It "ti%d: couldn't map memory"
279 A fatal initialization error has occurred.
280 .It "ti%d: couldn't map interrupt"
281 A fatal initialization error has occurred.
282 .It "ti%d: no memory for softc struct!"
283 The driver failed to allocate memory for per-device instance information
284 during initialization.
285 .It "ti%d: failed to enable memory mapping!"
286 The driver failed to initialize PCI shared memory mapping.
288 happen if the card is not in a bus-master slot.
289 .It "ti%d: no memory for jumbo buffers!"
290 The driver failed to allocate memory for jumbo frames during
292 .It "ti%d: bios thinks we're in a 64 bit slot, but we aren't"
293 The BIOS has programmed the NIC as though it had been installed in
294 a 64-bit PCI slot, but in fact the NIC is in a 32-bit slot.
296 as a result of a bug in some BIOSes.
297 This can be worked around on the
298 Tigon II, but on the Tigon I initialization will fail.
299 .It "ti%d: board self-diagnostics failed!"
300 The ROMFAIL bit in the CPU state register was set after system
301 startup, indicating that the on-board NIC diagnostics failed.
302 .It "ti%d: unknown hwrev"
303 The driver detected a board with an unsupported hardware revision.
306 driver supports revision 4 (Tigon 1) and revision 6 (Tigon 2) chips
307 and has firmware only for those devices.
308 .It "ti%d: watchdog timeout"
309 The device has stopped responding to the network, or there is a problem with
310 the network connection (cable).
323 device driver first appeared in
329 driver was written by
330 .An Bill Paul Aq wpaul@bsdi.com .
331 The header splitting firmware modifications, character
333 interface and debugging support were written by
334 .An Kenneth Merry Aq ken@FreeBSD.org .
335 Initial zero copy support was written by
336 .An Andrew Gallatin Aq gallatin@FreeBSD.org .