Subject: Re: CVS commit: syssrc/sys/dev/scsipi
To: Matthew Fredette <fredette@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: source-changes
Date: 11/26/2001 22:40:58
On Mon, Nov 26, 2001 at 10:39:30PM +0200, Matthew Fredette wrote:
> 
> Module Name:	syssrc
> Committed By:	fredette
> Date:		Mon Nov 26 20:39:30 UTC 2001
> 
> Modified Files:
> 	syssrc/sys/dev/scsipi: scsiconf.c scsipi_base.c
> 
> Log Message:
> Added quirk entries for Adaptec and Emulex SCSI interposer boards.
> Decode a limited set of SASI/SCSI-1 sense codes, and under sun2
> only, conjure up INQUIRY responses for these boards.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.170 -r1.171 syssrc/sys/dev/scsipi/scsiconf.c
> cvs rdiff -r1.63 -r1.64 syssrc/sys/dev/scsipi/scsipi_base.c

Hi,
I'm not completely happy with the #ifdef sun2 in scsipi_base.c.
What kind of hardware is it ? Is it hardwired in Sun2, or does it
have a regular SCSI interface that could be attached to some other
machine ?
If it's the former, maybe the INQUIRY command could be snooped and
emulated in some MD part of the SCSI driver instead ?
If it's the later, maybe we need something else than #ifdef sun2.

Maybe an 'options SCSI1' to enable support for SCSI1 and older devices ?
For example you may want this if running on a 386 with an old ISA scsi
adapter, but not if you're running on a P4 with Ultra160 hardware ...

--
Manuel Bouyer <bouyer@antioche.eu.org>
--