From owner-freebsd-hackers Mon Dec 3 10:24:41 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by hub.freebsd.org (Postfix) with ESMTP id 7538237B405; Mon, 3 Dec 2001 10:24:37 -0800 (PST) Received: from isi.edu (gyb2p1ufzaoe8c9e@hbo.isi.edu [128.9.160.75]) by boreas.isi.edu (8.11.6/8.11.2) with ESMTP id fB3IObN13363; Mon, 3 Dec 2001 10:24:37 -0800 (PST) Message-ID: <3C0BC364.9080904@isi.edu> Date: Mon, 03 Dec 2001 10:24:36 -0800 From: Lars Eggert User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.4) Gecko/20011127 X-Accept-Language: en, de MIME-Version: 1.0 To: n_hibma@freebsd.org, hackers@freebsd.org Subject: umass & ATAPI Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Hi, is anyone working on extending umass.c for ATAPI devices? My new digital camera identifies itself as an ATAPI device, but the corresponding code is commented out in umass.c, because it isn't complete and/or tested. (I'm running 4.4-RELEASE, but it doesn't look like -current is any different.) I've enabled the disabled code, and the camera probes and attaches correctly as da0. However, mounting it fails, because the ATAPI code in umass.c does not translate some commands that the mount tries to execute (cache sync, and some read_6 command - from memory, may be wrong). I'm kinda at loss on how to add the missing command translations (I poke around in the network stack normally), but I'd give it a shot if I had a little more background info on how to translate from ATAPI to SCSI. Any pointers? And I'd of course happily test whatever patches more qualified hackers come up with... :-) Lars -- Lars Eggert Information Sciences Institute http://www.isi.edu/larse/ University of Southern California To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message