From owner-freebsd-hardware Wed Apr 10 22:43:11 2002 Delivered-To: freebsd-hardware@freebsd.org Received: from van-laarhoven.org (ap-z-5ab8.adsl.wanadoo.nl [212.129.218.184]) by hub.freebsd.org (Postfix) with SMTP id 08E2C37B400 for ; Wed, 10 Apr 2002 22:43:07 -0700 (PDT) Received: (qmail 30863 invoked from network); 11 Apr 2002 05:43:05 -0000 Received: from heather.van-laarhoven.org (10.66.0.2) by uitsmijter.van-laarhoven.org with SMTP; 11 Apr 2002 05:43:05 -0000 Date: Thu, 11 Apr 2002 07:43:05 +0200 (CEST) From: Nick Hibma To: "Kenneth D. Merry" Cc: FreeBSD Hardware Mailing List , FreeBSD Hackers Mailing List Subject: Re: USB "Memorybird" quirks In-Reply-To: <20020410143558.A31045@panzer.kdm.org> Message-ID: <20020411074142.U31033-100000@heather.van-laarhoven.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I saw the NEW_TRANS code and that seems definitely the way to code. A lot of work though. > There are other commands that can get sent, though -- inquiry, test unit > ready, and start/stop unit are all 6 byte commands, and there are no 10 > byte SCSI equivalents. So how do you handle those now? The problem is only there for commands that have a 10 byte equivalent. The ATAPI spec seems to have dropped the 6 byte ones. So inquiry is not a problem. The end of the command is padded with zeroes. > > And then the third one would be to have a look at for example scsi_cd.c > > and friends and make similar changes there. > > The CD driver already uses 10 byte read and write commands, since the 6 > byte read/write commands are not required for CD type devices. It does use > a 6 byte mode sense/mode select, but since it rolls its own (can't remember > why at the moment), that can be easily modified to look at the transport > type and optionally use a 10 byte command. Ok. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message