1995-04-23 18:54:40 +00:00
|
|
|
.\" All Rights Reserved, Copyright (C) Fujitsu Limited 1995
|
|
|
|
.\"
|
|
|
|
.\" This document may be used, modified, copied, distributed, and sold, in
|
|
|
|
.\" both source and printed form provided that the above copyright, these
|
|
|
|
.\" terms and the following disclaimer are retained. The name of the author
|
|
|
|
.\" and/or the contributor may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS DOCUMENT IS PROVIDED BY THE AUTHOR AND THE CONTRIBUTOR ``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 AUTHOR OR THE CONTRIBUTOR 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 DOCUMENT, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1996-03-17 11:44:22 +00:00
|
|
|
.\" Contributed by M. Sekiguchi <seki@sysrap.cs.fujitsu.co.jp>.
|
|
|
|
.\" for fe driver.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1996-03-17 11:44:22 +00:00
|
|
|
.Dd March 3, 1996
|
1996-12-29 20:36:04 +00:00
|
|
|
.Dt FE 4 i386
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1995-04-23 18:54:40 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm fe
|
|
|
|
.Nd Fujitsu MB86960A/MB86965A based Ethernet adapters
|
|
|
|
.Sh SYNOPSIS
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device fe 1"
|
|
|
|
.Pp
|
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.fe.0.at="isa"
|
|
|
|
.Cd hint.fe.0.port="0x300"
|
|
|
|
.Cd hint.fe.0.flags="0x0"
|
1995-04-23 18:54:40 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1995-04-23 18:54:40 +00:00
|
|
|
is a network device driver
|
1996-03-17 11:44:22 +00:00
|
|
|
for Ethernet adapters based on Fujitsu MB86960A, MB86965A,
|
2003-08-21 15:18:21 +00:00
|
|
|
or other compatible chips, such as:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2003-08-24 22:38:00 +00:00
|
|
|
Allied Telesis RE1000, RE1000Plus, ME1500 (110-pin)
|
|
|
|
.It
|
|
|
|
CONTEC C-NET(98)P2, C-NET (9N)E (110-pin), C-NET(9N)C (ExtCard)
|
|
|
|
.It
|
2003-08-24 22:39:18 +00:00
|
|
|
CONTEC C-NET(PC)C PCMCIA Ethernet
|
2003-08-21 15:18:21 +00:00
|
|
|
.It
|
2003-08-24 22:39:18 +00:00
|
|
|
Eiger Labs EPX-10BT
|
2003-08-21 15:18:21 +00:00
|
|
|
.It
|
|
|
|
Fujitsu FMV-J182, FMV-J182A
|
|
|
|
.It
|
2003-08-24 22:39:18 +00:00
|
|
|
Fujitsu MBH10303, MBH10302 Ethernet PCMCIA
|
2003-08-24 22:38:00 +00:00
|
|
|
.It
|
2003-08-24 22:39:18 +00:00
|
|
|
Fujitsu Towa LA501 Ethernet
|
2003-08-21 15:18:21 +00:00
|
|
|
.It
|
|
|
|
HITACHI HT-4840-11
|
|
|
|
.It
|
|
|
|
NextCom J Link NC5310
|
|
|
|
.It
|
2003-08-24 22:39:18 +00:00
|
|
|
RATOC REX-5588, REX-9822, REX-4886, and REX-R280
|
|
|
|
.It
|
|
|
|
RATOC REX-9880/9881/9882/9883
|
|
|
|
.It
|
2003-08-24 22:38:00 +00:00
|
|
|
TDK LAC-98012, LAC-98013, LAC-98025, LAC-9N011 (110-pin)
|
|
|
|
.It
|
2003-08-21 15:18:21 +00:00
|
|
|
TDK LAK-CD021, LAK-CD021A, LAK-CD021BX
|
2003-08-24 22:38:00 +00:00
|
|
|
.It
|
|
|
|
Ungermann-Bass Access/PC N98C+(PC85152, PC85142), Access/NOTE
|
|
|
|
N98(PC86132) (110-pin)
|
2003-08-21 15:18:21 +00:00
|
|
|
.El
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
|
|
|
The driver provides automatic I/O port address configuration and
|
|
|
|
automatic IRQ configuration,
|
|
|
|
when used with suitable adapter hardware.
|
|
|
|
.Pp
|
|
|
|
The driver works with program I/O data transfer technique.
|
|
|
|
It gives a fair performance.
|
|
|
|
Shared memory is never used, even if the adapter has one.
|
|
|
|
.Pp
|
|
|
|
It currently works with Fujitsu FMV-180 series for ISA,
|
1996-03-17 11:44:22 +00:00
|
|
|
Allied-Telesis AT1700 series and RE2000 series for ISA,
|
|
|
|
and Fujitsu MBH10302 PC card.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Ss Parameters
|
2001-10-13 09:08:37 +00:00
|
|
|
In the
|
|
|
|
.Pa /boot/device.hints
|
|
|
|
file, two parameters,
|
1995-04-23 18:54:40 +00:00
|
|
|
.Ar port
|
|
|
|
and
|
|
|
|
.Ar irq ,
|
|
|
|
must be specified to reflect adapter hardware settings.
|
|
|
|
Another parameter
|
|
|
|
.Ar flags
|
|
|
|
can be specified to provide additional configuration as an option.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar port
|
|
|
|
parameter specifies a base I/O port address of the adapter.
|
|
|
|
It must match with the hardware setting of the adapter.
|
|
|
|
The
|
|
|
|
.Ar port
|
2001-10-13 09:08:37 +00:00
|
|
|
may be left unspecified by removing
|
|
|
|
.Dl hint.fe.0.port="..."
|
|
|
|
from the file.
|
1995-04-23 18:54:40 +00:00
|
|
|
In that case, the driver tries to detect the hardware setting
|
|
|
|
of the I/O address automatically.
|
|
|
|
This feature may not work with some adapter hardware.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar irq
|
|
|
|
parameter specifies an IRQ number used by the adapter.
|
|
|
|
It must match the hardware setting of the adapter.
|
|
|
|
.Ar Irq
|
2001-10-13 09:08:37 +00:00
|
|
|
may be left unspecified by removing
|
|
|
|
.Dl hint.fe.0.irq="..."
|
|
|
|
from the file.
|
1995-04-23 18:54:40 +00:00
|
|
|
in that case, the driver tries to detect
|
|
|
|
the hardware setting of the IRQ automatically.
|
|
|
|
This feature may not work on some adapters.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Ar flags
|
|
|
|
is a numeric value which consists of a combination of various device settings.
|
|
|
|
The following flags are defined in the current version.
|
|
|
|
To specify two or more settings for a device,
|
|
|
|
use a numeric sum of each flag value.
|
|
|
|
Flag bits not specified below are reserved and must be set to 0.
|
|
|
|
Actually, each bit is either just ignored by the driver,
|
|
|
|
or tested and used to control undocumented features of the driver.
|
|
|
|
Consult the source program for undocumented features.
|
2000-12-29 09:18:45 +00:00
|
|
|
.Bl -tag -width 8n
|
1995-04-23 18:54:40 +00:00
|
|
|
.It Li 0x007F
|
|
|
|
These flag bits are used
|
|
|
|
to initialize DLCR6 register of MB86960A/MB86965A chip,
|
|
|
|
when the
|
|
|
|
.Li 0x0080
|
|
|
|
bit of the
|
|
|
|
.Ar flags
|
|
|
|
is set.
|
|
|
|
See below for more about DLCR6 override feature.
|
|
|
|
The
|
|
|
|
.Li 0x007F
|
|
|
|
flag bits must be 0 unless the
|
|
|
|
.Li 0x0080
|
|
|
|
bit is set,
|
|
|
|
to maintain the compatibility with future versions of the driver.
|
|
|
|
.It Li 0x0080
|
|
|
|
This flag overrides the default setting to the DLCR6 register
|
|
|
|
of MB86960A/MB86965A chip by a user supplied value,
|
|
|
|
which is taken from the lower 7 bits of the flag value.
|
|
|
|
This is a troubleshooting flag and should not be used
|
|
|
|
without understanding of the adapter hardware.
|
|
|
|
Consult the Fujitsu manual for more information
|
|
|
|
on DLCR6 settings.
|
|
|
|
.El
|
|
|
|
.Sh OPTIONS
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1995-04-23 18:54:40 +00:00
|
|
|
driver has some private options,
|
|
|
|
which can be specified with an
|
|
|
|
.Dq option
|
|
|
|
statement in the kernel configuration file.
|
|
|
|
The following lists the private options.
|
|
|
|
The driver also accepts some other undocumented options,
|
|
|
|
all of whose names start with a fixed prefix
|
|
|
|
.Dv "FE_" .
|
|
|
|
Consult the source program for undocumented options.
|
|
|
|
.Bl -tag -width "FE_"
|
|
|
|
.It Dv "FE_DEBUG=" Ns Ar level
|
|
|
|
This option takes a numeric value
|
|
|
|
.Ar level
|
|
|
|
which controls the debugging level for the device and/or the driver.
|
|
|
|
Setting the
|
|
|
|
.Dv "FE_DEBUG"
|
|
|
|
option to a value which is not listed here
|
|
|
|
may cause undocumented behavior.
|
1996-03-17 11:44:22 +00:00
|
|
|
The default setting of this option is 1.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
Setting
|
|
|
|
.Dv "FE_DEBUG=0"
|
|
|
|
makes most of debugging codes,
|
|
|
|
including sanity check,
|
|
|
|
be excluded from the object code of the driver.
|
|
|
|
It generates fastest and smallest object code.
|
|
|
|
Some emergency messages are logged even under this setting, though.
|
|
|
|
.It
|
|
|
|
Setting
|
|
|
|
.Dv "FE_DEBUG=1"
|
|
|
|
makes minimum debugging codes be included,
|
|
|
|
setting the amount of logged messages minimum.
|
|
|
|
Only fatal error messages are logged under this setting.
|
|
|
|
.It
|
|
|
|
Setting
|
|
|
|
.Dv "FE_DEBUG=2"
|
|
|
|
makes standard debugging codes be included,
|
|
|
|
setting the amount of logged messages middle.
|
|
|
|
Messages on lair events and/or questionable conditions
|
|
|
|
are logged under this setting.
|
|
|
|
.It
|
|
|
|
Setting
|
|
|
|
.Dv "FE_DEBUG=3"
|
|
|
|
makes all debugging codes be included,
|
2004-07-07 21:37:30 +00:00
|
|
|
and sets the amount of logged messages to the maximum possible.
|
1995-04-23 18:54:40 +00:00
|
|
|
Redundant messages such as those reporting usual actions
|
|
|
|
or dumping register values
|
|
|
|
are logged under this setting.
|
|
|
|
.El
|
|
|
|
.El
|
1996-03-17 11:44:22 +00:00
|
|
|
.Sh FEATURES SPECIFIC TO HARDWARE MODELS
|
1995-04-23 18:54:40 +00:00
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1996-03-17 11:44:22 +00:00
|
|
|
driver has some features and limitations
|
|
|
|
which depend on adapter hardware models.
|
2004-07-07 21:37:30 +00:00
|
|
|
The following is a summary of these dependencies.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Ss Fujitsu FMV-180 series adapters
|
|
|
|
Both automatic IRQ detection and automatic I/O port address detection
|
|
|
|
is available with these adapters.
|
|
|
|
.Pp
|
1996-03-17 11:44:22 +00:00
|
|
|
Automatic I/O port address detection feature of
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1996-03-17 11:44:22 +00:00
|
|
|
works mostly fine for FMV-180 series.
|
|
|
|
It works even if there are two or more FMV-180s in a system.
|
|
|
|
However, some combination of other adapters may confuse the driver.
|
2001-10-13 09:08:37 +00:00
|
|
|
It is recommended to explicitly specify
|
|
|
|
.Ar port
|
1996-03-17 11:44:22 +00:00
|
|
|
when you experience some difficulties with hardware probe.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
1996-03-17 11:44:22 +00:00
|
|
|
Automatic IRQ detection feature of
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1996-03-17 11:44:22 +00:00
|
|
|
works reliably for FMV-180 series.
|
2001-10-13 09:08:37 +00:00
|
|
|
It is recommended to explicitly specify
|
|
|
|
.Ar irq
|
1996-03-17 11:44:22 +00:00
|
|
|
always for FMV-180.
|
|
|
|
The hardware setting of IRQ is read
|
|
|
|
from the configuration EEPROM on the adapter,
|
|
|
|
even when the kernel config file specifies an IRQ value.
|
|
|
|
The driver will generate a warning message,
|
2001-10-13 09:08:37 +00:00
|
|
|
if the IRQ setting specified in
|
|
|
|
.Pa /boot/device.hints
|
1996-03-17 11:44:22 +00:00
|
|
|
does not match one stored in EEPROM.
|
2001-10-13 09:08:37 +00:00
|
|
|
Then, it will use the value specified in the file.
|
2001-07-14 19:41:16 +00:00
|
|
|
(This behavior has been changed from the previous releases.)
|
1995-04-23 18:54:40 +00:00
|
|
|
.Ss Allied-Telesis AT1700 series and RE2000 series adapters
|
|
|
|
Automatic I/O port address detection
|
1996-03-17 11:44:22 +00:00
|
|
|
is available with Allied-Telesis AT1700 series and RE2000 series,
|
|
|
|
while it is less reliable than FMV-180 series.
|
|
|
|
Using the feature with Allied-Telesis adapters
|
|
|
|
is not recommended.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
1996-03-17 11:44:22 +00:00
|
|
|
Automatic IRQ detection is also available with some limitation.
|
1995-04-23 18:54:40 +00:00
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1995-04-23 18:54:40 +00:00
|
|
|
driver
|
|
|
|
tries to get IRQ setting from the configuration EEPROM on the board,
|
|
|
|
if
|
2001-10-13 09:08:37 +00:00
|
|
|
.Ar irq
|
|
|
|
is not specified in
|
|
|
|
.Pa /boot/device.hints .
|
1995-04-23 18:54:40 +00:00
|
|
|
Unfortunately,
|
|
|
|
AT1700 series and RE2000 series seems to have two types of models;
|
|
|
|
One type allows IRQ selection from 3/4/5/9,
|
|
|
|
while the other from 10/11/12/15.
|
|
|
|
Identification of the models are not well known.
|
|
|
|
Hence, automatic IRQ detection with Allied-Telesis adapters
|
|
|
|
may not be reliable.
|
1996-03-17 11:44:22 +00:00
|
|
|
Specify an exact IRQ number if any troubles are encountered.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
|
|
|
Differences between AT1700 series and RE2000 series
|
|
|
|
or minor models in those series are not recognized.
|
1996-03-17 11:44:22 +00:00
|
|
|
.Ss Fujitsu MBH10302 PC card
|
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1996-03-17 11:44:22 +00:00
|
|
|
driver supports Fujitsu MBH10302 and compatible PC cards.
|
|
|
|
It requires the PC card (PCMCIA) support package.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Sh SEE ALSO
|
1996-02-11 22:38:05 +00:00
|
|
|
.Xr netstat 1 ,
|
1996-12-26 16:16:37 +00:00
|
|
|
.Xr ed 4 ,
|
|
|
|
.Xr netintro 4 ,
|
2000-05-04 17:40:13 +00:00
|
|
|
.Xr ng_ether 4 ,
|
1996-03-17 11:44:22 +00:00
|
|
|
.Xr ifconfig 8 ,
|
2000-05-04 17:40:13 +00:00
|
|
|
.Xr pccardd 8
|
1995-04-23 18:54:40 +00:00
|
|
|
.Sh BUGS
|
1996-03-17 11:44:22 +00:00
|
|
|
Following are major known bugs:
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
|
|
|
Statistics on the number of collisions maintained by the
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1996-03-17 11:44:22 +00:00
|
|
|
driver is not accurate;
|
1995-04-23 18:54:40 +00:00
|
|
|
the
|
2000-12-29 09:18:45 +00:00
|
|
|
.Fl i
|
1995-04-23 18:54:40 +00:00
|
|
|
option of
|
1996-02-11 22:38:05 +00:00
|
|
|
.Xr netstat 1
|
1996-03-17 11:44:22 +00:00
|
|
|
shows slightly less value than true number of collisions.
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
1996-03-17 11:44:22 +00:00
|
|
|
More mbuf clusters are used than expected.
|
1995-04-23 18:54:40 +00:00
|
|
|
The packet receive routine has an intended violation
|
|
|
|
against the mbuf cluster allocation policy.
|
|
|
|
The unnecessarily allocated clusters are freed within short lifetime,
|
|
|
|
and it will not affect long term kernel memory usage.
|
1996-03-17 11:44:22 +00:00
|
|
|
.Pp
|
2004-07-07 21:37:30 +00:00
|
|
|
Although XNS and IPX supports is included in the driver,
|
|
|
|
it has never been tested and it is expected to have a lot of bugs.
|
1998-03-12 07:31:21 +00:00
|
|
|
.Sh AUTHORS, COPYRIGHT AND DISCLAIMER
|
1995-04-23 18:54:40 +00:00
|
|
|
The
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1998-03-12 07:31:21 +00:00
|
|
|
driver was originally written and contributed by
|
|
|
|
.An M. Sekiguchi Aq seki@sysrap.cs.fujitsu.co.jp ,
|
1995-04-23 18:54:40 +00:00
|
|
|
following the
|
|
|
|
.Nm ed
|
1998-03-12 07:31:21 +00:00
|
|
|
driver written by
|
|
|
|
.An David Greenman .
|
1996-03-17 11:44:22 +00:00
|
|
|
PC card support in
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
1998-03-12 07:31:21 +00:00
|
|
|
is written by
|
|
|
|
.An Hidetoshi Kimura Aq h-kimura@tokyo.se.fujitsu.co.jp .
|
|
|
|
This manual page was written by
|
|
|
|
.An M. Sekiguchi .
|
1995-04-23 18:54:40 +00:00
|
|
|
.Pp
|
|
|
|
.Em "All Rights Reserved, Copyright (C) Fujitsu Limited 1995"
|
|
|
|
.Pp
|
1996-03-17 11:44:22 +00:00
|
|
|
This document and the associated software may be used, modified,
|
1995-04-23 18:54:40 +00:00
|
|
|
copied, distributed, and sold, in both source and binary form provided
|
|
|
|
that the above copyright, these terms and the following disclaimer are
|
2004-07-03 18:29:24 +00:00
|
|
|
retained.
|
|
|
|
The name of the author and/or the contributor may not be
|
1995-04-23 18:54:40 +00:00
|
|
|
used to endorse or promote products derived from this document and the
|
|
|
|
associated software without specific prior written permission.
|
|
|
|
.Pp
|
|
|
|
THIS DOCUMENT AND THE ASSOCIATED SOFTWARE IS PROVIDED BY THE AUTHOR
|
|
|
|
AND THE CONTRIBUTOR
|
|
|
|
.Dq AS IS
|
|
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
2004-07-03 18:29:24 +00:00
|
|
|
PURPOSE ARE DISCLAIMED.
|
|
|
|
IN NO EVENT SHALL THE AUTHOR OR THE
|
1995-04-23 18:54:40 +00:00
|
|
|
CONTRIBUTOR 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
|
|
|
|
DOCUMENT AND THE ASSOCIATED SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver appeared in
|
1996-08-22 23:51:58 +00:00
|
|
|
.Fx 2.0.5 .
|