From owner-freebsd-scsi Mon Apr 22 2:42:52 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from melchior.cuivre.fr.eu.org (melchior.enst.fr [137.194.161.6]) by hub.freebsd.org (Postfix) with ESMTP id 784F037B428 for ; Mon, 22 Apr 2002 02:42:45 -0700 (PDT) Received: from melusine.cuivre.fr.eu.org (melusine.enst.fr [137.194.160.34]) by melchior.cuivre.fr.eu.org (Postfix) with ESMTP id 27580784E; Mon, 22 Apr 2002 10:09:19 +0200 (CEST) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id C27BC2C3D2; Mon, 22 Apr 2002 10:09:12 +0200 (CEST) Date: Mon, 22 Apr 2002 10:09:12 +0200 From: Thomas Quinot To: Nick Hibma Cc: freebsd-scsi@freebsd.org Subject: Re: Port of NetBSD usscanner Message-ID: <20020422100912.A61658@melusine.cuivre.fr.eu.org> Reply-To: thomas@cuivre.fr.eu.org References: <20020420030300.B5762@melusine.cuivre.fr.eu.org> <001a01c1e9cd$9cac7580$7800420a@vanlaarhoven.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <001a01c1e9cd$9cac7580$7800420a@vanlaarhoven.org>; from n_hibma@van-laarhoven.org on Mon, Apr 22, 2002 at 09:16:24AM +0200 X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Le 2002-04-22, Nick Hibma écrivait : > - What is the difference between this driver and normal SCSI devices that > forces you to write a separate driver? Can't you just > slightly modify the umass driver? (which should in that case be renamed to > ucam or something). It should require no more than a new command layer, just > like umass_{bbb,cbi}_{transfer,state,...}. I was under the impression that the two drivers (umass and usscanner) are using different means of mapping SCSI command and data transfers onto USB transfers, but if this can integrated in umass it would certainly be worthwhile. I just took the least resistance path of porting the stuff as it exists in NetBSD (with a number of ideas liberally stolen from your port of umass). > - xpt_async(AC_FOUND_DEVICE,...) actually works? The device appears all by > itself? Not sure. I have disabled it due to another problem that caused panics all over, and did not have time to re-check it afterwards. > - There is a wrong comment terminator in line 633 (usscanner-20020421.c). Yep, fixed in -20020422. Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message