1 .\" Copyright (c) 1997, 1998, 1999
2 .\" Bill Paul <wpaul@ee.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 "DEC/Intel 21143 and clone 10/100 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
48 Alternatively, to load the driver as a
49 module at boot time, place the following line in
51 .Bd -literal -offset indent
57 driver provides support for several PCI Fast Ethernet adapters and
58 embedded controllers based on the the DEC/Intel 21143 chipset and clones.
60 All of supported chipsets have the same general register layout, DMA
61 descriptor format and method of operation.
62 All of the clone chips
63 are based on the 21143 design with various modifications.
65 21143 itself has support for 10baseT, BNC, AUI, MII and symbol
66 media attachments, 10 and 100Mbps speeds in full or half duplex,
67 built in NWAY autonegotiation and wake on LAN.
69 offers several receive filter programming options including
70 perfect filtering, inverse perfect filtering and hash table
73 Some clone chips duplicate the 21143 fairly closely while others
74 only maintain superficial similarities.
77 Others use different receiver filter programming
79 At least one supports only chained DMA descriptors
80 (most support both chained descriptors and contiguously allocated
82 Some chips (especially the PNIC) also have
86 driver does its best to provide generalized support for all
87 of these chipsets in order to keep special case code to a minimum.
89 These chips are used by many vendors which makes it
90 difficult to provide a complete list of all supported cards.
94 driver supports the following media types:
96 .Bl -tag -width ".Cm 10baseT/UTP"
98 Enable autoselection of the media type and options.
99 The user can manually override
100 the autoselected mode by adding media options to the
104 Note: the built-in NWAY autonegotiation on the original PNIC 82c168
105 chip is horribly broken and is not supported by the
107 driver at this time (see the
109 section for details).
110 The original 82c168 appears
111 on very early revisions of the LinkSys LNE100TX and Matrox FastNIC.
113 Set 10Mbps operation.
116 option can also be used to enable
125 Set 100Mbps (Fast Ethernet) operation.
128 option can also be used to enable
140 driver supports the following media options:
142 .Bl -tag -width ".Cm full-duplex"
144 Force full duplex operation.
145 The interface will operate in
146 half duplex mode if this media option is not specified.
149 Note that the 100baseTX media type may not be available on certain
150 Intel 21143 adapters which support 10Mbps media attachments only.
151 For more information on configuring this device, see
156 driver provides support for the following chipsets:
162 ADMtek AL981 Comet, AN985 Centaur, ADM9511 Centaur II and ADM9513
165 ASIX Electronics AX88140A and AX88141
167 Conexant LANfinity RS7112 (miniPCI)
169 Davicom DM9009, DM9100, DM9102 and DM9102A
171 Lite-On 82c168 and 82c169 PNIC
173 Lite-On/Macronix 82c115 PNIC II
175 Macronix 98713, 98713A, 98715, 98715A, 98715AEC-C, 98725, 98727 and 98732
177 Xircom X3201 (cardbus only)
181 following NICs are known to work with the
187 3Com OfficeConnect 10/100B (ADMtek AN985 Centaur-P)
191 Accton EN1217 (98715A)
193 Accton EN2242 MiniPCI
195 Adico AE310TX (98715A)
197 Alfa Inc GFC2204 (ASIX AX88140A)
199 Built in 10Mbps only Ethernet on Compaq Presario 7900 series
200 desktops (21143, non-MII)
202 Built in Sun DMFE 10/100 Mbps Ethernet on Sun Netra X1 and Sun Fire V100
205 Built in Ethernet on LinkSys EtherFast 10/100 Instant GigaDrive (DM9102, MII)
207 CNet Pro110B (ASIX AX88140A)
209 CNet Pro120A (98715A or 98713A) and CNet Pro120B (98715)
211 Compex RL100-TX (98713 or 98713A)
213 D-Link DFE-570TX (21143, MII, quad port)
215 Digital DE500-BA 10/100 (21143, non-MII)
217 ELECOM Laneed LD-CBL/TXA (ADMtek AN985)
219 Hawking CB102 CardBus
221 IBM EtherJet Cardbus Adapter
223 Intel PRO/100 Mobile Cardbus (versions that use the X3201 chipset)
225 Jaton XpressNet (Davicom DM9102)
227 Kingston KNE100TX (21143, MII)
229 Kingston KNE110TX (PNIC 82c169)
231 LinkSys LNE100TX (PNIC 82c168, 82c169)
233 LinkSys LNE100TX v2.0 (PNIC II 82c115)
235 LinkSys LNE100TX v4.0/4.1 (ADMtek AN985 Centaur-P)
237 Matrox FastNIC 10/100 (PNIC 82c168, 82c169)
241 Microsoft MN-120 10/100 CardBus (ADMTek Centaur-C)
243 Microsoft MN-130 10/100 PCI (ADMTek Centaur-P)
245 NDC SOHOware SFA110A (98713A)
247 NDC SOHOware SFA110A Rev B4 (98715AEC-C)
249 NetGear FA310-TX Rev.\& D1, D2 or D3 (PNIC 82c169)
253 PlaneX FNW-3602-T (ADMtek AN985)
255 SMC EZ Card 10/100 1233A-TX (ADMtek AN985)
257 SVEC PN102-TX (98713)
259 Xircom Cardbus Realport
261 Xircom Cardbus Ethernet 10/100
263 Xircom Cardbus Ethernet II 10/100
269 .Va local-mac-address?
270 system configuration variable for the built in Sun DMFE 10/100 Mbps Ethernet
271 interfaces on Sun Netra X1 and Sun Fire V100.
272 This system configuration variable can be set in the Open Firmware boot
281 driver will use the system's default MAC address for both of the built in
285 the unique MAC address of each interface is used rather than the system's
289 .It "dc%d: couldn't map ports/memory"
290 A fatal initialization error has occurred.
291 .It "dc%d: couldn't map interrupt"
292 A fatal initialization error has occurred.
293 .It "dc%d: watchdog timeout"
294 A packet was queued for transmission and a transmit command was
295 issued, but the device failed to acknowledge the transmission
296 before a timeout expired.
297 This can happen if the device is unable
298 to deliver interrupts for some reason, of if there is a problem with
299 the network connection (cable or network equipment) that results in a loss
301 .It "dc%d: no memory for rx list"
302 The driver failed to allocate an mbuf for the receiver ring.
303 .It "dc%d: TX underrun -- increasing TX threshold"
304 The device generated a transmit underrun error while attempting to
305 DMA and transmit a packet.
306 This happens if the host is not able to
307 DMA the packet data into the NIC's FIFO fast enough.
309 will dynamically increase the transmit start threshold so that
310 more data must be DMAed into the FIFO before the NIC will start
311 transmitting it onto the wire.
312 .It "dc%d: TX underrun -- using store and forward mode"
313 The device continued to generate transmit underruns even after all
314 possible transmit start threshold settings had been tried, so the
315 driver programmed the chip for store and forward mode.
317 the NIC will not begin transmission until the entire packet has been
318 transfered into its FIFO memory.
319 .It "dc%d: chip is in D3 power state -- setting to D0"
320 This message applies only to adapters which support power
322 Some operating systems place the controller in low power
323 mode when shutting down, and some PCI BIOSes fail to bring the chip
324 out of this state before configuring it.
325 The controller loses all of
326 its PCI configuration in the D3 state, so if the BIOS does not set
327 it back to full power mode in time, it will not be able to configure it
329 The driver tries to detect this condition and bring
330 the adapter back to the D0 (full power) state, but this may not be
331 enough to return the driver to a fully operational condition.
333 you see this message at boot time and the driver fails to attach
334 the device as a network interface, you will have to perform a second
335 warm boot to have the device properly configured.
337 Note that this condition only occurs when warm booting from another
339 If you power down your system prior to booting
341 the card should be configured correctly.
353 .%T ADMtek AL981, AL983 and AL985 data sheets
354 .%O http://www.admtek.com.tw
357 .%T ASIX Electronics AX88140A and AX88141 data sheets
358 .%O http://www.asix.com.tw
361 .%T Davicom DM9102 data sheet
362 .%O http://www.davicom8.com
365 .%T Intel 21143 Hardware Reference Manual
366 .%O http://developer.intel.com
369 .%T Macronix 98713/A, 98715/A and 98725 data sheets
370 .%O http://www.macronix.com
373 .%T Macronix 98713/A and 98715/A app notes
374 .%O http://www.macronix.com
379 device driver first appeared in
384 driver was written by
385 .An Bill Paul Aq wpaul@ee.columbia.edu .
387 The Macronix application notes claim that in order to put the
388 chips in normal operation, the driver must write a certain magic
389 number into the CSR16 register.
390 The numbers are documented in
391 the app notes, but the exact meaning of the bits is not.
393 The 98713A seems to have a problem with 10Mbps full duplex mode.
394 The transmitter works but the receiver tends to produce many
395 unexplained errors leading to very poor overall performance.
397 98715A does not exhibit this problem.
398 All other modes on the
399 98713A seem to work correctly.
401 The original 82c168 PNIC chip has built in NWAY support which is
402 used on certain early LinkSys LNE100TX and Matrox FastNIC cards,
403 however it is horribly broken and difficult to use reliably.
404 Consequently, autonegotiation is not currently supported for this
405 chipset: the driver defaults the NIC to 10baseT half duplex, and it is
406 up to the operator to manually select a different mode if necessary.
407 (Later cards use an external MII transceiver to implement NWAY
408 autonegotiation and work correctly.)
412 driver programs 82c168 and 82c169 PNIC chips to use the store and
413 forward setting for the transmit start threshold by default.
415 is to work around problems with some NIC/PCI bus combinations where
416 the PNIC can transmit corrupt frames when operating at 100Mbps,
417 probably due to PCI DMA burst transfer errors.
419 The 82c168 and 82c169 PNIC chips also have a receiver bug that
420 sometimes manifests during periods of heavy receive and transmit
421 activity, where the chip will improperly DMA received frames to
423 The chips appear to upload several kilobytes of garbage
424 data along with the received frame data, dirtying several RX buffers
425 instead of just the expected one.
428 driver detects this condition and will salvage the frame; however,
429 it incurs a serious performance penalty in the process.
431 The PNIC chips also sometimes generate a transmit underrun error when
432 the driver attempts to download the receiver filter setup frame, which
433 can result in the receive filter being incorrectly programmed.
436 driver will watch for this condition and requeue the setup frame until
437 it is transfered successfully.
439 The ADMtek AL981 chip (and possibly the AN985 as well) has been observed
440 to sometimes wedge on transmit: this appears to happen when the driver
441 queues a sequence of frames which cause it to wrap from the end of the
442 transmit descriptor ring back to the beginning.
445 driver attempts to avoid this condition by not queuing any frames past
446 the end of the transmit ring during a single invocation of the
449 This workaround has a negligible impact on transmit performance.