1998-07-20 20:02:32 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1998 Michael Smith
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1998-07-20 20:02:32 +00:00
|
|
|
.\"
|
2005-07-19 00:26:30 +00:00
|
|
|
.Dd July 16, 2005
|
1998-07-20 20:02:32 +00:00
|
|
|
.Dt CS 4 i386
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1998-07-20 20:02:32 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm cs
|
2005-07-19 00:26:30 +00:00
|
|
|
.Nd "Ethernet device driver"
|
1998-07-20 20:02:32 +00:00
|
|
|
.Sh SYNOPSIS
|
2005-10-07 02:32:16 +00:00
|
|
|
To compile this driver into the kernel,
|
2005-11-18 10:56:28 +00:00
|
|
|
place the following line in your
|
2005-07-21 05:02:39 +00:00
|
|
|
kernel configuration file:
|
2005-07-19 00:26:30 +00:00
|
|
|
.Bd -ragged -offset indent
|
2001-10-13 09:08:37 +00:00
|
|
|
.Cd "device cs"
|
2005-07-19 00:26:30 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
2005-10-07 02:32:16 +00:00
|
|
|
Alternatively, to load the driver as a
|
|
|
|
module at boot time, place the following line in
|
2005-07-19 00:26:30 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
if_cs_load="YES"
|
|
|
|
.Ed
|
2001-10-13 09:08:37 +00:00
|
|
|
.Pp
|
|
|
|
In
|
|
|
|
.Pa /boot/device.hints :
|
|
|
|
.Cd hint.cs.0.at="isa"
|
|
|
|
.Cd hint.cs.0.port="0x300"
|
|
|
|
.Cd hint.cs.0.irq="10"
|
|
|
|
.Cd hint.cs.0.maddr="0xd000"
|
1998-07-20 20:02:32 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2004-12-21 01:09:34 +00:00
|
|
|
driver provides support for ISA Ethernet adapters based on the
|
2000-11-20 18:41:33 +00:00
|
|
|
.Tn Crystal Semiconductor CS8900
|
|
|
|
and
|
|
|
|
.Tn CS8920
|
2004-07-03 18:29:24 +00:00
|
|
|
NICs.
|
|
|
|
These devices are used on the
|
2001-07-14 19:41:16 +00:00
|
|
|
.Tn IBM EtherJet ISA
|
|
|
|
adapters and in many embedded applications where the high integration, small
|
1998-07-20 20:02:32 +00:00
|
|
|
size and low cost of the CS89x0 family compensate for their drawbacks.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
2001-10-13 09:08:37 +00:00
|
|
|
driver will obtain configuration parameters either from
|
|
|
|
.Pa /boot/device.hints
|
|
|
|
or from the card.
|
|
|
|
At least the I/O port number must be specified.
|
|
|
|
Other parameters specified in
|
|
|
|
.Pa /boot/device.hints
|
|
|
|
will be used if present;
|
|
|
|
the card may be soft-configured so these may be any valid
|
2004-07-03 18:29:24 +00:00
|
|
|
value.
|
|
|
|
Adapters based on the CS8920 normally offer PnP configuration and the driver
|
2001-07-14 19:41:16 +00:00
|
|
|
will detect the
|
|
|
|
.Tn IBM EtherJet
|
|
|
|
and the
|
|
|
|
.Tn CSC6040
|
1998-07-20 20:02:32 +00:00
|
|
|
adapters automatically.
|
|
|
|
.Pp
|
|
|
|
Note that the CS8900 is limited to 4 IRQ values; these are normally implemented
|
2004-07-03 18:29:24 +00:00
|
|
|
as 5, 10, 11 and 12.
|
|
|
|
The CS8920 has no such limitation.
|
1998-07-20 20:02:32 +00:00
|
|
|
.Pp
|
|
|
|
Memory-mapped and DMA operation are not supported at this time.
|
2005-12-20 23:05:50 +00:00
|
|
|
.Pp
|
|
|
|
In addition to the ISA devices, the PC Card devices based on the CS889x0
|
|
|
|
family are also supported.
|
|
|
|
The IBM EtherJet PCMCIA Card is the only known device based on this
|
|
|
|
chip.
|
2006-02-01 14:33:14 +00:00
|
|
|
The PC Card support does not need the above specific ISA hints to work.
|
2005-12-20 23:05:50 +00:00
|
|
|
The PC Card support may not work for 10base2 (thinnet) connections and may
|
|
|
|
bogusly claim to support 10base5 (there are no known cards that have an
|
|
|
|
AUI necessary for 10base5 support on their dongles).
|
1998-07-20 20:02:32 +00:00
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
.Bl -diag
|
|
|
|
.It "cs%d: full/half duplex negotiation timeout"
|
2004-07-03 18:29:24 +00:00
|
|
|
The attempt to negotiate duplex settings with the hub timed out.
|
|
|
|
This may
|
1998-07-20 20:02:32 +00:00
|
|
|
indicate a cabling problem or a faulty or incompatible hub.
|
|
|
|
.It "cs%d: failed to enable <media>"
|
|
|
|
The CS89x0 failed to select the nominated media, either because it is not
|
|
|
|
present or not operating correctly.
|
|
|
|
.It "cs%d: No EEPROM, assuming defaults"
|
2004-07-03 18:29:24 +00:00
|
|
|
The CS89x0 does not have an EEPROM, or the EEPROM is hopelessly damaged.
|
|
|
|
Operation
|
1998-07-20 20:02:32 +00:00
|
|
|
will only be successful if the configuration entry lists suitable values for
|
|
|
|
the adapter.
|
|
|
|
.It "cs%d: Invalid irq"
|
|
|
|
The IRQ specified in the configuration entry is not valid for the adapter.
|
|
|
|
.It "cs%d: Could not allocate memory for NIC"
|
2004-07-03 18:29:24 +00:00
|
|
|
There is a critical memory shortage.
|
|
|
|
The adapter will not function.
|
1998-07-20 20:02:32 +00:00
|
|
|
.It "cs%d: Adapter has no media"
|
2000-03-03 14:05:08 +00:00
|
|
|
The adapter is not configured for a specific media type.
|
|
|
|
The media type will have
|
1998-07-20 20:02:32 +00:00
|
|
|
to be manually set.
|
|
|
|
.It "This is a %s, but LDN %d is disabled"
|
|
|
|
The PnP probe code found a recognised adapter, but the adapter is disabled.
|
|
|
|
.It "failed to read pnp parms"
|
|
|
|
A PnP adapter was found, but configuration parameters for it could not be read.
|
2002-01-21 12:36:12 +00:00
|
|
|
.It "failed to pnp card parameters"
|
2004-07-03 18:29:24 +00:00
|
|
|
The parameters obtained via PnP were not accepted by the driver.
|
|
|
|
The adapter
|
1998-07-20 20:02:32 +00:00
|
|
|
may not function.
|
2000-12-29 09:18:45 +00:00
|
|
|
.El
|
1998-07-20 20:02:32 +00:00
|
|
|
.Sh CAVEATS
|
2004-07-03 18:29:24 +00:00
|
|
|
The CS89x0 family of adapters have a very small RAM buffer (4K).
|
|
|
|
This may
|
1998-07-20 20:02:32 +00:00
|
|
|
cause problems with extremely high network loads or bursty network traffic.
|
|
|
|
In particular, NFS operations should be limited to 1k read/write transactions
|
|
|
|
in order to avoid overruns.
|
2000-01-25 20:34:43 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr arp 4 ,
|
2001-07-14 19:41:16 +00:00
|
|
|
.Xr netintro 4 ,
|
2000-05-04 17:40:13 +00:00
|
|
|
.Xr ng_ether 4 ,
|
|
|
|
.Xr ifconfig 8
|
1998-07-20 20:02:32 +00:00
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
1998-07-20 20:02:32 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2001-07-14 19:41:16 +00:00
|
|
|
device driver was written by
|
|
|
|
.An Maxim Bolotin
|
|
|
|
and
|
1998-07-20 20:02:32 +00:00
|
|
|
.An Oleg Sharoiko .
|
|
|
|
This manpage was written by
|
|
|
|
.An Michael Smith .
|