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 <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message