1995-08-09 00:18:53 +04:00
|
|
|
.\" Copyright (c) 1992, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This software was developed by the Computer Systems Engineering group
|
|
|
|
.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
|
|
|
|
.\" contributed to Berkeley.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" from: Header: le.4,v 1.2 92/10/13 05:31:33 leres Exp
|
|
|
|
.\" from: @(#)le.4 8.1 (Berkeley) 6/9/93
|
1998-06-08 15:17:58 +04:00
|
|
|
.\" $NetBSD: le.4,v 1.3 1998/06/08 11:20:09 lukem Exp $
|
1995-08-09 00:18:53 +04:00
|
|
|
.\"
|
|
|
|
.Dd June 9, 1993
|
|
|
|
.Dt LE 4 sun3
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm le
|
1998-06-07 13:55:49 +04:00
|
|
|
.Nd AMD 7990 LANCE ethernet interface driver
|
1995-08-09 00:18:53 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "le* at obio0 addr ? level ?"
|
1998-06-07 13:55:49 +04:00
|
|
|
.Cd "option LANCE_REVC_BUG"
|
1995-08-09 00:18:53 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
1998-06-07 13:55:49 +04:00
|
|
|
interface provides access to a 10 Mb/s
|
|
|
|
.Tn Ethernet
|
|
|
|
network via the
|
1995-08-09 00:18:53 +04:00
|
|
|
.Tn AMD
|
|
|
|
7990
|
|
|
|
.Tn LANCE
|
1998-06-07 13:55:49 +04:00
|
|
|
(Local Area Network Controller - Ethernet) chip set.
|
1995-08-09 00:18:53 +04:00
|
|
|
.Pp
|
|
|
|
Each of the host's network addresses
|
|
|
|
is specified at boot time with an
|
|
|
|
.Dv SIOCSIFADDR
|
1998-06-07 13:55:49 +04:00
|
|
|
.Xr ioctl 2 .
|
1995-08-09 00:18:53 +04:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
interface employs the address resolution protocol described in
|
|
|
|
.Xr arp 4
|
|
|
|
to dynamically map between Internet and Ethernet addresses on the local
|
|
|
|
network.
|
1998-06-07 13:55:49 +04:00
|
|
|
.Sh BUGS
|
|
|
|
The old
|
|
|
|
.Tn LANCE
|
|
|
|
Revision C chips have a bug which causes garbage to be inserted in
|
|
|
|
front of the received packet occasionally.
|
|
|
|
The work-around is to ignore packets with an invalid destination
|
|
|
|
address (garbage will usually not match), by double-checking the
|
|
|
|
destination address of every packet in the driver.
|
|
|
|
This work-around is enabled with the
|
|
|
|
.Cd LANCE_REVC_BUG
|
|
|
|
kernel option.
|
|
|
|
It is unfortunately computationally costly, and
|
|
|
|
this precludes multicast support on Ethernet interfaces with that
|
|
|
|
chip in them.
|
|
|
|
.Pp
|
|
|
|
All sun3 systems are presumed to have this revision of the AM7990,
|
|
|
|
until proven otherwise.
|
|
|
|
Alas, the only way to prove what revision of the chip is in a particular
|
|
|
|
system is inspection of the date code on the chip package, with a list of
|
|
|
|
what chip revisions were fabricated between which dates.
|
|
|
|
A request has been sent to
|
|
|
|
.Tn AMD
|
|
|
|
for this information.
|
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
.Bl -diag
|
|
|
|
.It "le%d: overflow"
|
|
|
|
More packets came in from the Ethernet than there was space in the
|
|
|
|
receive buffers.
|
|
|
|
Packets were missed.
|
|
|
|
.It "le%d: receive buffer error"
|
|
|
|
Ran out of buffer space, packet dropped.
|
|
|
|
.It "le%d: lost carrier"
|
|
|
|
The Ethernet carrier disappeared during an attempt to transmit.
|
|
|
|
It will finish transmitting the current packet,
|
|
|
|
but will not automatically retry transmission if there is a collision.
|
|
|
|
.It "le%d: excessive collisions, tdr %d"
|
|
|
|
Ethernet extremely busy or jammed,
|
|
|
|
outbound packets dropped after 16 attempts to retransmit.
|
|
|
|
.Pp
|
|
|
|
TDR is
|
|
|
|
.Qq Time Domain Reflectometry .
|
|
|
|
The
|
|
|
|
.Tn LANCE
|
|
|
|
TDR value is an internal counter of the interval between the start
|
|
|
|
of a transmission, and the occurrence of a collision.
|
|
|
|
This value can be used to determine the distance from the Ethernet
|
|
|
|
tap to the point on the Ethernet cable that is shorted or open
|
|
|
|
(unterminated).
|
|
|
|
.It "le%d: dropping chained buffer"
|
|
|
|
Packet didn't fit into a single receive buffer, packet dropped.
|
|
|
|
.It "le%d: transmit buffer error"
|
|
|
|
.Tn LANCE
|
|
|
|
ran out of buffer before finishing the transmission of a packet.
|
|
|
|
If this error occurrs, the driver software has a bug.
|
|
|
|
.It "le%d: underflow"
|
|
|
|
.Tn LANCE
|
|
|
|
ran out of buffer before finishing the transmission of a packet.
|
|
|
|
If this error occurrs, the driver software has a bug.
|
|
|
|
.It "le%d: controller failed to initialize"
|
|
|
|
Driver failed to start the AM7990
|
|
|
|
.Tn LANCE .
|
|
|
|
This is potentially a hardware failure.
|
|
|
|
.It "le%d: memory error"
|
|
|
|
.Tn RAM
|
|
|
|
failed to respond within the timeout when the
|
|
|
|
.Tn LANCE
|
|
|
|
wanted to read or write it.
|
|
|
|
This is potentially a hardware failure.
|
|
|
|
.It "le%d: receiver disabled"
|
|
|
|
The
|
|
|
|
.Tn LANCE
|
|
|
|
receiver was turned off due to an error.
|
|
|
|
.It "le%d: transmitter disabled"
|
|
|
|
The
|
|
|
|
.Tn LANCE
|
|
|
|
transmitter was turned off due to an error.
|
|
|
|
.El
|
1995-08-09 00:18:53 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ie 4 ,
|
|
|
|
.Xr intro 4 ,
|
|
|
|
.Xr inet 4 ,
|
|
|
|
.Xr arp 4
|
1998-06-07 13:55:49 +04:00
|
|
|
.Rs
|
|
|
|
.%R "Am79C90 - CMOS Local Area Network Controller for Ethernet"
|
|
|
|
.%D May 1994
|
|
|
|
.%N 17881
|
|
|
|
.%O Advanced Micro Devices
|
|
|
|
.Re
|