From owner-freebsd-scsi Fri Jan 26 01:35:51 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA26399 for freebsd-scsi-outgoing; Fri, 26 Jan 1996 01:35:51 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id BAA25572 for ; Fri, 26 Jan 1996 01:23:54 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA03310; Fri, 26 Jan 1996 10:22:15 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id KAA26545; Fri, 26 Jan 1996 10:22:14 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id KAA19025; Fri, 26 Jan 1996 10:05:03 +0100 (MET) From: J Wunsch Message-Id: <199601260905.KAA19025@uriah.heep.sax.de> Subject: Re: scsiconf.c To: faubus@fastlane.net (James Faubus) Date: Fri, 26 Jan 1996 10:05:03 +0100 (MET) Cc: freebsd-scsi@FreeBSD.ORG Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <31085C0C.7DA9@fastlane.net> from "James Faubus" at Jan 25, 96 11:43:56 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk As James Faubus wrote: (Peter:) > >I don't know if I'm the culprit or not, but scsi_probedev is using > >scsi_selectdev to find the bestmatch in the scsi_devs table, and > >then it uses the type field in scsi_devs to override the type > >returned by the device. Look at the very end of scsi_probedev. > >So if you change "T_OPTICAL" to "T_DIRECT" to fake your device out > >as a direct device and hook your device up to the sd driver. The > >"mx1" entries in scsiconf can't be working correctly. I've changed this in current, and added actually two fields to the struct. One is used to match the device, and the second one to assign an actual driver for it. This was necessary in order to get the CD-R's probed, and the list archive will have a record from our discussion about dating back around October, 1995. The tenor has been then ``Yes, we should change the matching algorithm.'' > Well I too was able to get the PD to work by making similar changes > to scsi_device_register(). Please, try the `od' driver instead. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)