8d70d0c0be
MFC after: 3 days
178 lines
4.3 KiB
Groff
178 lines
4.3 KiB
Groff
.\"
|
|
.\" Copyright (c) 2004 Tom Rhodes
|
|
.\" 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.
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd July 28, 2004
|
|
.Dt ESP 4
|
|
.Os
|
|
.Sh NAME
|
|
.Nm esp
|
|
.Nd Qlogic FEPS and FAS366 SCSI driver
|
|
.Sh SYNOPSIS
|
|
.Cd device scbus
|
|
.Cd device esp
|
|
.Sh DESCRIPTION
|
|
The
|
|
.Nm
|
|
driver provides support for the
|
|
.Tn Qlogic
|
|
FAS216 and FAS408
|
|
.Tn SCSI
|
|
controller chips found in a wide variety of systems and peripheral boards.
|
|
This includes the
|
|
.Tn Qlogic
|
|
.Tn SCSI
|
|
cards found in most
|
|
.Tn Sun
|
|
.Tn Ultra 1e
|
|
and
|
|
.Tn Ultra 2
|
|
machines.
|
|
.Pp
|
|
For
|
|
.Tn Qlogic
|
|
.Tn PCI
|
|
.Tn SCSI
|
|
host adapters, the
|
|
.Xr isp 4
|
|
driver should be used in place of the
|
|
.Nm
|
|
driver.
|
|
.Sh IMPLEMENTATION NOTES
|
|
During the boot sequence, the
|
|
.Nm
|
|
driver
|
|
searches the linked list for LUN info by LUN ID.
|
|
At this point the driver will attach on that instance,
|
|
and then attempt to attach every sub-device.
|
|
.Pp
|
|
There are at least 4 variations of the
|
|
configuration 3 register.
|
|
A second config register must be loaded to inquire the chip revision,
|
|
otherwise the
|
|
.Fn ncr53c9x_reset
|
|
function will not set the defaults correctly.
|
|
.Pp
|
|
The drive attach routine attempts to set the appropriate
|
|
bit to put the chip into Fast
|
|
.Tn SCSI
|
|
mode so that it does not
|
|
have to be figured out each time.
|
|
This will then be stored in the
|
|
.Tn NCR
|
|
registers for later use.
|
|
.Pp
|
|
The
|
|
.Nm
|
|
driver makes use of the
|
|
.Tn LSI
|
|
64854
|
|
.Tn DMA
|
|
engine which contains three independent
|
|
channels designed to interface with
|
|
an NCR539X
|
|
.Tn SCSI
|
|
controller;
|
|
an AM7990 Ethernet controller;
|
|
and certain types of parallel port hardware.
|
|
As such this driver may eventually replace the
|
|
.Xr amd 4
|
|
driver for network hardware.
|
|
.Sh DIAGNOSTICS
|
|
The following driver specific error messages
|
|
may be reported:
|
|
.Bl -diag
|
|
.It "esp: cannot map %d segments"
|
|
The device was unable to map segments while mapping the
|
|
.Tn SCSI
|
|
devices in
|
|
.Tn DMA
|
|
mode.
|
|
.It "unknown variant %d, devices not attached"
|
|
An unknown version of the card was found and devices will
|
|
not be attached.
|
|
.It "Unhandled function code %d"
|
|
The device returned a function code which the driver is
|
|
unable to handle, most likely during negotiation.
|
|
.It "esp:%d:%d: selection failed %d left in FIFO"
|
|
The target left the command phase prematurely.
|
|
If a command did not reach the device then it will
|
|
be reported as shown above.
|
|
.It "invalid state: %d"
|
|
The device has reached an invalid state.
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Xr amd 4 ,
|
|
.Xr isp 4 ,
|
|
.Xr scbus 4 ,
|
|
.Xr camcontrol 8
|
|
.Pp
|
|
.Bl -item -compact
|
|
.It
|
|
.Pa http://www.qlc.com/
|
|
.It
|
|
.Pa http://www.sun.com/
|
|
.El
|
|
.Sh HISTORY
|
|
The
|
|
.Nm
|
|
driver was written for
|
|
.Nx
|
|
by
|
|
.An Eric S. Hvozda .
|
|
The
|
|
.Nm
|
|
driver was then ported to
|
|
.Fx 5.3
|
|
by
|
|
.An Scott Long Aq scottl@FreeBSD.org .
|
|
.Sh AUTHORS
|
|
This manual page was written by
|
|
.An Tom Rhodes Aq trhodes@FreeBSD.org
|
|
instead of porting the original from
|
|
.Nx .
|
|
.Sh BUGS
|
|
The
|
|
.Nm
|
|
driver includes the sbus front-end but lacks the
|
|
.Tn PCI
|
|
front-end.
|
|
Thus it can only support the
|
|
.Tn FEPS/FAS366
|
|
.Tn SCSI
|
|
found in
|
|
.Tn Sun
|
|
.Tn Ultra 1e
|
|
and
|
|
.Tn Ultra 2
|
|
machines at this time.
|
|
.Pp
|
|
This driver should eventually replace the
|
|
.Xr amd 4
|
|
driver, but that requires porting the
|
|
.Tn PCI
|
|
front-end mentioned above.
|