xref: /freebsd/share/man/man4/ti.4 (revision a3e8fd0b7f663db7eafff527d5c3ca3bcfa8a537)
1.\" Copyright (c) 1997, 1998, 1999
2.\"	Bill Paul <wpaul@ctr.columbia.edu>. 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 June 26, 2002
34.Dt TI 4
35.Os
36.Sh NAME
37.Nm ti
38.Nd "Alteon Networks Tigon I and Tigon II gigabit ethernet driver"
39.Sh SYNOPSIS
40.Cd "device ti"
41.Cd "options TI_PRIVATE_JUMBOS"
42.Cd "options TI_JUMBO_HDRSPLIT"
43.Sh DESCRIPTION
44The
45.Nm
46driver provides support for PCI gigabit ethernet adapters based on
47the Alteon Networks Tigon gigabit ethernet controller chip.
48The Tigon
49contains an embedded R4000 CPU, gigabit MAC, dual DMA channels and
50a PCI interface unit.
51The Tigon II contains two R4000 CPUs and other
52refinements.
53Either chip can be used in either a 32-bit or 64-bit PCI
54slot.
55Communication with the chip is achieved via PCI shared memory
56and bus master DMA.
57The Tigon I and II support hardware multicast
58address filtering, VLAN tag extraction and insertion, and jumbo
59ethernet frames sizes up to 9000 bytes.
60Note that the Tigon I chipset
61is no longer in active production: all new adapters should come equipped
62with Tigon II chipsets.
63.Pp
64There are several PCI boards available from both Alteon and other
65vendors that use the Tigon chipset under OEM contract.
66The
67.Nm
68driver has been tested with the following Tigon-based adapters:
69.Pp
70.Bl -bullet -compact -offset indent
71.It
72The Alteon AceNIC V gigabit ethernet adapter (1000baseSX)
73.It
74The Alteon AceNIC V gigabit ethernet adapter (1000baseT)
75.It
76The 3Com 3c985-SX gigabit ethernet adapter (Tigon 1)
77.It
78The 3Com 3c985B-SX gigabit ethernet adapter (Tigon 2)
79.It
80The Netgear GA620 gigabit ethernet adapter (1000baseSX)
81.It
82The Netgear GA620T gigabit ethernet adapter (1000baseT)
83.El
84.Pp
85The following should also be supported but have not yet been tested:
86.Pp
87.Bl -bullet -compact -offset indent
88.It
89The Digital EtherWORKS 1000SX PCI Gigabit Adapter
90.It
91Silicon Graphics PCI gigabit ethernet adapter
92.It
93Farallon PN9000SX Gigabit Ethernet adapter
94.It
95Asante PCI 1000BASE-SX Gigabit Ethernet Adapter
96.It
97Asante GigaNIX1000T Gigabit Ethernet Adapter
98.El
99.Pp
100While the Tigon chipset supports 10, 100 and 1000Mbps speeds, support for
10110 and 100Mbps speeds is only available on boards with the proper
102transceivers.
103Most adapters are only designed to work at 1000Mbps,
104however the driver should support those NICs that work at lower speeds
105as well.
106.Pp
107Support for jumbo frames is provided via the interface MTU setting.
108Selecting an MTU larger than 1500 bytes with the
109.Xr ifconfig 8
110utility configures the adapter to receive and transmit jumbo frames.
111Using jumbo frames can greatly improve performance for certain tasks,
112such as file transfers and data streaming.
113.Pp
114Header splitting support for Tigon 2 boards (this option has no effect for
115the Tigon 1) can be turned on with the
116.Dv TI_JUMBO_HDRSPLIT
117option.  See
118.Xr zero_copy 9
119for more discussion on zero copy receive and header splitting.
120.Pp
121The
122.Nm
123driver normally uses jumbo receive buffers allocated by the
124.Xr jumbo 9
125buffer allocator, but can be configured to use its own private pool of
126jumbo buffers that are contiguous instead of buffers from the jumbo
127allocator, which are made up of multiple page sized chunks.  To turn on
128private jumbos, use the
129.Dv TI_PRIVATE_JUMBOS
130option.
131.Pp
132Support for vlans is also available using the
133.Xr vlan 4
134mechanism.
135See the
136.Xr vlan 4
137man page for more details.
138.Pp
139The
140.Nm
141driver supports the following media types:
142.Pp
143.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
144.It autoselect
145Enable autoselection of the media type and options.
146The user can manually override
147the autoselected mode by adding media options to the
148.Pa /etc/rc.conf
149file.
150.It 10baseT/UTP
151Set 10Mbps operation.
152The
153.Ar mediaopt
154option can also be used to select either
155.Ar full-duplex
156or
157.Ar half-duplex
158modes.
159.It 100baseTX
160Set 100Mbps (fast ethernet) operation.
161The
162.Ar mediaopt
163option can also be used to select either
164.Ar full-duplex
165or
166.Ar half-duplex
167modes.
168.It 1000baseSX
169Set 1000Mbps (gigabit ethernet) operation.
170Only full
171.Ar full-duplex
172mode is supported at this speed.
173.El
174.Pp
175The
176.Nm
177driver supports the following media options:
178.Pp
179.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
180.It full-duplex
181Force full duplex operation
182.It half-duplex
183Force half duplex operation.
184.El
185.Pp
186For more information on configuring this device, see
187.Xr ifconfig 8 .
188.Sh IOCTLS
189In addition to the standard
190.Xr socket 2
191.Xr ioctl 2
192calls implemented by most network drivers, the
193.Nm
194driver also includes a character device interface that can be used for
195additional diagnostics, configuration and debugging.  With this character
196device interface, and a specially patched version of
197.Xr gdb 1 ,
198the user can
199debug firmware running on the Tigon board.
200.Pp
201These ioctls and their arguments are defined in the
202.Aq Pa sys/tiio.h
203header file.
204.Bl -tag -width ".Dv ALT_WRITE_TG_MEM"
205.It Dv TIIOCGETSTATS
206Return card statistics DMAed from the card into kernel memory approximately
207every 2 seconds.  (That time interval can be changed via the
208.Dv TIIOCSETPARAMS
209ioctl.)  The argument is
210.Vt "struct ti_stats" .
211.It Dv TIIOCGETPARAMS
212Get various performance-related firmware parameters that largely affect how
213interrupts are coalesced.  The argument is
214.Vt "struct ti_params" .
215.It Dv TIIOCSETPARAMS
216Set various performance-related firmware parameters that largely affect how
217interrupts are coalesced.  The argument is
218.Vt "struct ti_params" .
219.It Dv TIIOCSETTRACE
220Tell the NIC to trace the requested types of information.
221The argument is
222.Vt ti_trace_type .
223.It Dv TIIOCGETTRACE
224Dump the trace buffer from the card.  The argument is
225.Vt "struct ti_trace_buf" .
226.It Dv ALT_ATTACH
227This ioctl is used for compatibility with Alteon's Solaris driver.  They
228apparantly only have one character interface for debugging, so they have
229to tell it which Tigon instance they want to debug.  This ioctl is a noop
230for
231.Fx .
232.It Dv ALT_READ_TG_MEM
233Read the requested memory region from the Tigon board.  The argument is
234.Vt "struct tg_mem" .
235.It Dv ALT_WRITE_TG_MEM
236Write to the requested memory region on the Tigon board.  The argument is
237.Vt "struct tg_mem" .
238.It Dv ALT_READ_TG_REG
239Read the requested register on the Tigon board.  The argument is
240.Vt "struct tg_reg" .
241.It Dv ALT_WRITE_TG_REG
242Write to the requested register on the Tigon board.  The argument is
243.Vt "struct tg_reg" .
244.El
245.Sh FILES
246.Bl -tag -width ".Pa /dev/ti[0-255]" -compact
247.It Pa /dev/ti[0-255]
248Tigon driver character interface.
249.El
250.Sh DIAGNOSTICS
251.Bl -diag
252.It "ti%d: couldn't map memory"
253A fatal initialization error has occurred.
254.It "ti%d: couldn't map interrupt"
255A fatal initialization error has occurred.
256.It "ti%d: no memory for softc struct!"
257The driver failed to allocate memory for per-device instance information
258during initialization.
259.It "ti%d: failed to enable memory mapping!"
260The driver failed to initialize PCI shared memory mapping.
261This might
262happen if the card is not in a bus-master slot.
263.It "ti%d: no memory for jumbo buffers!"
264The driver failed to allocate memory for jumbo frames during
265initialization.
266.It "ti%d: bios thinks we're in a 64 bit slot, but we aren't"
267The BIOS has programmed the NIC as though it had been installed in
268a 64-bit PCI slot, but in fact the NIC is in a 32-bit slot.
269This happens
270as a result of a bug in some BIOSes.
271This can be worked around on the
272Tigon II, but on the Tigon I initialization will fail.
273.It "ti%d: board self-diagnostics failed!"
274The ROMFAIL bit in the CPU state register was set after system
275startup, indicating that the on-board NIC diagnostics failed.
276.It "ti%d: unknown hwrev"
277The driver detected a board with an unsupported hardware revision.
278The
279.Nm
280driver supports revision 4 (Tigon 1) and revision 6 (Tigon 2) chips
281and has firmware only for those devices.
282.It "ti%d: watchdog timeout"
283The device has stopped responding to the network, or there is a problem with
284the network connection (cable).
285.El
286.Sh SEE ALSO
287.Xr arp 4 ,
288.Xr netintro 4 ,
289.Xr ng_ether 4 ,
290.Xr vlan 4 ,
291.Xr ifconfig 8 ,
292.Xr jumbo 9 ,
293.Xr zero_copy 9
294.Rs
295.%T Alteon Gigabit Ethernet/PCI NIC manuals
296.%O http://sanjose.alteon.com/open.shtml
297.Re
298.Sh HISTORY
299The
300.Nm
301device driver first appeared in
302.Fx 3.0 .
303.Sh AUTHORS
304.An -nosplit
305The
306.Nm
307driver was written by
308.An Bill Paul Aq wpaul@bsdi.com .
309The header splitting firmware modifications, character
310.Xr ioctl 2
311interface and debugging support were written by
312.An Kenneth Merry Aq ken@FreeBSD.org .
313Initial zero copy support was written by
314.An Andrew Gallatin Aq gallatin@FreeBSD.org .
315