Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Feb 2002 10:50:48 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Josef Karthauser <joe@tao.org.uk>
Cc:        Terry Lambert <tlambert2@mindspring.com>, "Eugene M. Kim" <gene@nttmcl.com>, Oliver Fromme <olli@secnetix.de>, FreeBSD Hardware Mailing List <hardware@FreeBSD.org>, FreeBSD Hackers Mailing List <hackers@FreeBSD.org>, =?iso-8859-1?Q?G=E9rard_Roudier?= <groudier@free.fr>, Oliver Fromme <oliver.fromme@secnetix.de>
Subject:   Re: USB "Memorybird" quirks
Message-ID:  <XFMail.020209105048.jhb@FreeBSD.org>
In-Reply-To: <20020209123558.A81896@genius.tao.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

On 09-Feb-02 Josef Karthauser wrote:
> On Sat, Feb 09, 2002 at 01:16:46PM +0100, Oliver Fromme wrote:
> 
>> John Baldwin wrote:
>>  > On 07-Feb-02 Gérard Roudier wrote:
>>  > > A couple of READ/WRITE 6 byte commands are still mandatory for SCSI
>>  > > block
>>  > > devices in order to accomodate softwares as boot software for example
>>  > > that
>>  > > may not be upgradable on systems still in use. Softwares that are
>>  > > maintained should no longer use 6 byte commands, but use the 10 byte
>>  > > commands replacement (for years...).
>>  > 
>>  > Just so you know, I made the umass driver for UFI and ATA translate SCSI
>>  > 6 byte commands to 10 byte commands.  There is a simple function call to
>>  > do the
>>  > change if you wish to do this in for the SCSI transforms as well.
> 
> I'd love the patches if you've got them to hand.

Unless you've spammed the commits I made to umass.c they've been in the tree
for a month or so. :-P  Look at the UFI transform for example:

umass_ufi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
                    unsigned char **rcmd, int *rcmdlen)
{
        ...
        if (umass_scsi_6_to_10(cmd, cmdlen, rcmd, rcmdlen))
                return (1);
        ...
}

Same code is in the atapi_transform function as well.  Just add those two lines
before the big switch() on the command to the scsi_transform function.

> Joe

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020209105048.jhb>