]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - share/man/man4/sf.4
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / share / man / man4 / sf.4
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 January 21, 2008
34 .Dt SF 4
35 .Os
36 .Sh NAME
37 .Nm sf
38 .Nd "Adaptec AIC-6915"
39 .Qq Starfire
40 PCI Fast Ethernet adapter driver
41 .Sh SYNOPSIS
42 To compile this driver into the kernel,
43 place the following lines in your
44 kernel configuration file:
45 .Bd -ragged -offset indent
46 .Cd "device miibus"
47 .Cd "device sf"
48 .Ed
49 .Pp
50 Alternatively, to load the driver as a
51 module at boot time, place the following line in
52 .Xr loader.conf 5 :
53 .Bd -literal -offset indent
54 if_sf_load="YES"
55 .Ed
56 .Sh DESCRIPTION
57 The
58 .Nm
59 driver provides support for Adaptec Duralink Fast Ethernet adapters
60 based on the Adaptec AIC-6915 "Starfire" chipset.
61 .Pp
62 The AIC-6915 is a bus master controller with an MII interface.
63 It
64 supports high and low priority transmit and receive queues, TCP/IP
65 checksum offload, multiple DMA descriptor formats and both polling
66 and producer/consumer DMA models.
67 The AIC-6915 receive filtering
68 options include a 16 entry perfect filter, a 512-bit hash table
69 for multicast addresses, a 512-bit hash table for priority address
70 matching and VLAN filtering.
71 An external MII-compliant transceiver
72 is required for media interfacing.
73 .Pp
74 Multiport adapters consist of several AIC-6915 controllers connected
75 via a PCI to PCI bridge.
76 Each controller is treated as a separate
77 interface by the
78 .Nm
79 driver.
80 .Pp
81 The
82 .Nm
83 driver supports the following media types:
84 .Pp
85 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
86 .It autoselect
87 Enable autoselection of the media type and options.
88 The user can manually override
89 the autoselected mode by adding media options to the
90 .Pa /etc/rc.conf
91 file.
92 .It 10baseT/UTP
93 Set 10Mbps operation.
94 The
95 .Ar mediaopt
96 option can also be used to select either
97 .Ar full-duplex
98 or
99 .Ar half-duplex
100 modes.
101 .It 100baseTX
102 Set 100Mbps (Fast Ethernet) operation.
103 The
104 .Ar mediaopt
105 option can also be used to select either
106 .Ar full-duplex
107 or
108 .Ar half-duplex
109 modes.
110 .El
111 .Pp
112 The
113 .Nm
114 driver supports the following media options:
115 .Pp
116 .Bl -tag -width xxxxxxxxxxxxxxxxxxxx
117 .It full-duplex
118 Force full duplex operation
119 .It half-duplex
120 Force half duplex operation.
121 .El
122 .Pp
123 For more information on configuring this device, see
124 .Xr ifconfig 8 .
125 .Sh HARDWARE
126 Adapters supported by the
127 .Nm
128 driver include:
129 .Pp
130 .Bl -bullet -compact
131 .It
132 ANA-62011 64-bit single port 10/100baseTX adapter
133 .It
134 ANA-62022 64-bit dual port 10/100baseTX adapter
135 .It
136 ANA-62044 64-bit quad port 10/100baseTX adapter
137 .It
138 ANA-69011 32-bit single port 10/100baseTX adapter
139 .It
140 ANA-62020 64-bit single port 100baseFX adapter
141 .El
142 .Sh SYSCTL VARIABLES
143 The following variables are available as both
144 .Xr sysctl 8
145 variables and
146 .Xr loader 8
147 tunables:
148 .Bl -tag -width indent
149 .It Va dev.sf.%d.int_mod
150 Maximum amount of time to delay interrupt processing in units of
151 102.4us.
152 The accepted range is 0 to 31, the default value is 1 (102.4us).
153 Value 0 completely disables the interrupt moderation.
154 The interface does not need to be brought down and up again before
155 a change takes effect.
156 .It Va dev.sf.%d.stats
157 Display lots of useful MAC counters maintained in the driver.
158 .El
159 .Sh DIAGNOSTICS
160 .Bl -diag
161 .It "sf%d: couldn't map memory"
162 A fatal initialization error has occurred.
163 This may
164 happen if the PCI BIOS not configured the device, which may be because
165 the BIOS has been configured for a "Plug and Play" operating system.
166 The "Plug and Play OS" setting in the BIOS should be set to "no" or
167 "off" in order for PCI devices to work properly with
168 .Fx .
169 .It "sf%d: couldn't map ports"
170 A fatal initialization error has occurred.
171 This may
172 happen if the PCI BIOS not configured the device, which may be because
173 the BIOS has been configured for a "Plug and Play" operating system.
174 The "Plug and Play OS" setting in the BIOS should be set to "no" or
175 "off" in order for PCI devices to work properly with
176 .Fx .
177 .It "sf%d: couldn't map interrupt"
178 A fatal initialization error has occurred.
179 .It "sf%d: no memory for softc struct!"
180 The driver failed to allocate memory for per-device instance information
181 during initialization.
182 .It "sf%d: failed to enable I/O ports/memory mapping!"
183 The driver failed to initialize PCI I/O port or shared memory access.
184 This might happen if the card is not in a bus-master slot.
185 .It "sf%d: watchdog timeout"
186 The device has stopped responding to the network, or there is a problem with
187 the network connection (cable).
188 .El
189 .Sh SEE ALSO
190 .Xr altq 4 ,
191 .Xr arp 4 ,
192 .Xr miibus 4 ,
193 .Xr netintro 4 ,
194 .Xr ng_ether 4 ,
195 .Xr polling 4 ,
196 .Xr vlan 4 ,
197 .Xr ifconfig 8
198 .Rs
199 .%T The Adaptec AIC-6915 Programmer's Manual
200 .%O http://download.adaptec.com/pdfs/user_guides/aic6915_pg.pdf
201 .Re
202 .Sh HISTORY
203 The
204 .Nm
205 device driver first appeared in
206 .Fx 3.0 .
207 .Sh AUTHORS
208 The
209 .Nm
210 driver was written by
211 .An Bill Paul Aq wpaul@ctr.columbia.edu .