1 .\" $NetBSD: le.4,v 1.22 2004/10/04 19:12:52 rumble Exp $
3 .\" Copyright (c) 1992, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" This software was developed by the Computer Systems Engineering group
7 .\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
8 .\" contributed to Berkeley.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
18 .\" 3. Neither the name of the University nor the names of its contributors
19 .\" may be used to endorse or promote products derived from this software
20 .\" without specific prior written permission.
22 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .\" from: Header: le.4,v 1.2 92/10/13 05:31:33 leres Exp
35 .\" from: @(#)le.4 8.1 (Berkeley) 6/9/93
42 .Nd AMD 7990, 79C90, 79C960, 79C970 LANCE Ethernet interface driver
45 .Cd "nele0 at isa? port 0x320 irq 9 drq 7 # NE2100"
47 .Cd "bicc0 at isa? port 0x320 irq 10 drq 7 # BICC Isolan"
49 .Cd "depca0 at isa? port 0x300 iomem 0xc8000 iosiz 0x8000 irq 5 # DEC DEPCA"
51 .Cd "le* at isapnp? # ISA Plug-and-Play adapters"
53 .Cd "depca* at eisa? slot ? # DEC DE422"
56 .Cd "le* at mca? slot ? # SKNET Personal/MC2+"
57 .Ss PCI boards and mainboard adapters
58 .Cd "le* at pci? dev? function ?"
59 .Ss TURBOchannel PMAD-A or onboard (alpha, pmax)
60 .Cd "le* at tc? slot ? offset ?"
62 .Cd "le* at ioasic? offset ?"
66 .Cd "le0 at vme0 irq 4 # BVME410"
67 .Cd "le0 at vme0 irq 5 # Riebl/PAM"
69 .Cd "le* at dio? scode ?"
71 .Cd "le0 at pcc? ipl 3 # MVME147"
73 .Cd "le0 at hb0 addr 0xe0f00000 ipl 4"
75 .Cd "le0 at hb0 addr 0xbff80000 level 1"
77 .Cd "le* at ioasic? offset ?"
78 .Cd "le* at ibus0 addr ?"
80 .Cd "le* at sbus? slot ? offset ?"
81 .Cd "le* at ledma0 slot ? offset ?"
82 .Cd "le* at lebuffer? slot ? offset ?"
84 .Cd "le0 at obio0 addr 0x120000 ipl 3"
85 .Cd "options LANCE_REVC_BUG"
87 .Cd "le0 at vsbus0 csr 0x200e0000"
91 interface provides access to a
95 Am7990 and Am79C90 (CMOS, pin-compatible)
97 (Local Area Network Controller - Ethernet) chip set.
101 driver also supports PCnet-PCI cards based on the
103 chipset, which is a single-chip implementation of a
109 Each of the host's network addresses
110 is specified at boot time with an
115 interface employs the Address Resolution Protocol (ARP) described in
117 to dynamically map between Internet and
119 addresses on the local network.
121 Selective reception of multicast Ethernet frames is provided
122 by a 64-bit mask; multicast destination addresses are hashed to a
123 bit entry using the Ethernet CRC function.
127 encapsulation to minimize copying data on input and output is
128 supported by the interface but offers no advantage on systems with
130 The use of trailers is automatically negotiated with
132 This negotiation may be disabled, on a per-interface basis, with
138 interface supports the following Zorro II expansion cards:
139 .Bl -tag -width "AMERISTAR" -offset indent
141 Commodore's Ethernet card, manufacturer\ 514, product\ 112
143 Ameristar's Ethernet card, manufacturer\ 1053, product\ 1
145 Village Tronic's Ethernet card, manufacturer\ 2167, product\ 201
148 The A2065 and Ameristar Ethernet cards support only manual media selection.
150 The Ariadne card supports a software media selection for its two
151 different connectors:
153 .Bl -tag -width xxxxxxxxxxxxxx
155 also known as thinwire-Ethernet
157 also known as twisted pair
160 The Ariadne card uses an autoselect between UTP and BNC, so it uses
161 UTP when an active UTP line is connected or otherwise BNC.
164 for media selection options for
167 The ISA-bus Ethernet cards supported by the
171 .Bl -tag -width xxxx -offset indent -compact
177 The EISA-bus Ethernet cards supported by the
181 .Bl -tag -width xxxx -offset indent -compact
185 The MCA-bus Ethernet cards supported by the
189 .Bl -tag -width xxxx -offset indent -compact
190 .It SKNET Personal MC2
198 are supported, as are interfaces on
204 No support is provided for switching between media ports.
207 3100 provides both AUI and BNC (thinwire or 10BASE2) connectors.
208 Port selection is via a manual switch and is not software configurable.
214 baseboard device provides only a BNC connector.
218 baseboard devices and the
221 option card provide only an AUI port.
226 cards supported by the
229 .Bl -tag -width xxxx -offset indent -compact
241 .It Antares SBus 10Base-T Ethernet
242 .Tn Buffered Ethernet
243 (antares part 20-050-1007)
246 Interfaces attached to an
248 on SPARC systems typically have two types of connectors:
250 .Bl -tag -offset indent -width xxxxxxxxxxxxxxxxxx
252 Standard 15 pin connector
254 UTP, also known as twisted pair
257 The appropriate connector can be selected by supplying a
261 The supported arguments for
264 .Bl -tag -offset indent -width xxxxxxxxxxxxxxxxxx
266 to select the AUI connector, or
268 to select the UTP connector.
273 parameter is not specified, a default connector is selected for
274 use by examining all media types for carrier.
275 The first connector on which a carrier is detected will be selected.
276 Additionally, if carrier is dropped on a port, the driver will
277 switch between the possible ports until one with carrier is found.
281 More packets came in from the Ethernet than there was space in the
284 .It "le%d: receive buffer error"
285 Ran out of buffer space, packet dropped.
286 .It "le%d: lost carrier"
287 The Ethernet carrier disappeared during an attempt to transmit.
288 It will finish transmitting the current packet,
289 but will not automatically retry transmission if there is a collision.
290 .It "le%d: excessive collisions, tdr %d"
291 Ethernet extremely busy or jammed,
292 outbound packets dropped after 16 attempts to retransmit.
296 .Qq Time Domain Reflectometry .
299 TDR value is an internal counter of the interval between the start
300 of a transmission and the occurrence of a collision.
301 This value can be used to determine the distance from the Ethernet
302 tap to the point on the Ethernet cable that is shorted or open
304 .It "le%d: dropping chained buffer"
305 Packet didn't fit into a single receive buffer, packet dropped.
308 driver allocates buffers large enough to receive the maximum size
310 packet, this means some other station on the LAN transmitted a
311 packet larger than allowed by the
314 .It "le%d: transmit buffer error"
316 ran out of buffer before finishing the transmission of a packet.
317 If this error occurs, the driver software has a bug.
318 .It "le%d: underflow"
320 ran out of buffer before finishing the transmission of a packet.
321 If this error occurs, the driver software has a bug.
322 .It "le%d: controller failed to initialize"
323 Driver failed to start the AM7990
325 This is potentially a hardware failure.
326 .It "le%d: memory error"
328 failed to respond within the timeout when the
330 wanted to read or write it.
331 This is potentially a hardware failure.
332 .It "le%d: receiver disabled"
335 receiver was turned off due to an error.
336 .It "le%d: transmitter disabled"
339 transmitter was turned off due to an error.
349 .%R "Am79C90 - CMOS Local Area Network Controller for Ethernet"
352 .%O Advanced Micro Devices
357 driver is derived from a
359 driver that first appeared in
361 Support for multiple bus attachments first appeared in
367 interface first appeared in
370 The Ariadne Ethernet card first appeared with the
374 and was converted to the
380 The Am7990 Revision C chips have a bug which causes garbage to
381 be inserted in front of the received packet occasionally.
382 The work-around is to ignore packets with an invalid destination
383 address (garbage will usually not match), by double-checking the
384 destination address of every packet in the driver.
385 This work-around is enabled with the
393 driver executes one or two calls to an inline Ethernet address
394 comparison function for every received packet.
397 it is exactly eight instructions of 16 bits each.
398 There is one comparison for each unicast packet, and two
399 comparisons for each broadcast packet.
401 In summary, the cost of the LANCE_REVC_BUG option is:
404 loss of multicast support, and
408 instructions per received packet, sometimes sixteen,
409 depending on both the processor, and the type of packet.
412 All sun3 systems are presumed to have this bad revision of the Am7990,
413 until proven otherwise.
414 Alas, the only way to prove what revision of the chip is in a
415 particular system is inspection of the date code on the chip package,
416 to compare against a list of what chip revisions were fabricated
419 Alas, the Am7990 chip is so old that
423 the production information about it; pending a search elsewhere,
424 we don't know how to identify the revision C chip from the date
427 On all pmax front-ends, performance is impaired by hardware which
428 forces a software copy of packets to and from DMA buffers.
434 copy packets to and from non-contiguous DMA buffers.
439 must copy to and from an onboard SRAM DMA buffer.
440 The CPU overhead is noticeable, but all machines
441 can sustain full 10 Mb/s media speed.