From owner-freebsd-hackers Sat Feb 9 7:51:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id B185C37B416 for ; Sat, 9 Feb 2002 07:50:52 -0800 (PST) Received: (qmail 16271 invoked from network); 9 Feb 2002 15:50:50 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([65.91.153.195]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Feb 2002 15:50:50 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020209123558.A81896@genius.tao.org.uk> Date: Sat, 09 Feb 2002 10:50:48 -0500 (EST) From: John Baldwin To: Josef Karthauser Subject: Re: USB "Memorybird" quirks Cc: Terry Lambert , "Eugene M. Kim" , Oliver Fromme , FreeBSD Hardware Mailing List , FreeBSD Hackers Mailing List , =?iso-8859-1?Q?G=E9rard_Roudier?= , Oliver Fromme Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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-hackers" in the body of the message