Date: Sat, 30 Mar 1996 01:15:03 -0500 (EST) From: Paul Broome <broome@msiadmin.cit.cornell.edu> To: Frank Seltzer <frankd@yoda.fdt.net> Cc: paulb@online1.magnus1.com, jmb@freefall.freebsd.org, questions@FreeBSD.ORG Subject: Re: Other disks of Pioneer DRM-624X changer Message-ID: <Pine.SUN.3.90.960330010538.1466A-100000@msiadmin> In-Reply-To: <Pine.BSF.3.91.960329233956.178B-100000@Kryten.nina.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 29 Mar 1996, Frank Seltzer wrote:
> A quick look at the kernel config file LINT says:
>
> device ch0 #SCSI media changers
>
> It is not specific in what media changers it is required. I assumed
> (maybe incorrectly) that this applies to all SCSI changers, including CDROMs.
I had claimed earlier:
> > But a message in this group about a month ago said that the ch device is
> > for scsi tape changers and that cd was for cdroms, including changers.
I found the message. I made the fix described here but the
other 5 disks still go unseen. ----------------
Re: CDROM changers, etc
From: j@uriah.heep.sax.de (J Wunsch)
Date: 1996/02/19
MessageID: 4gb182$d34@uriah.heep.sax.de#1/1
reply-to: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
newsgroups: comp.unix.bsd.freebsd.misc
ljg@space.physics.uiowa.edu (Larry Granroth) writes:
> First off, I'm looking for information on using the /dev/ch0 device
> for controlling a Pioneer DRM-1804X CDROM changer. I've found ioctl
> structures in <sys/chio.h>, but was hoping that someone had already
> put together some convenient utilities.
The `ch' driver is for tape changer devices. CDROM changers should be
handled by the regular `cd' driver.
You should get it going well, except that systems up to 2.1R had a
minor bug causing a panic when accessing > 6 drives. Here's the fix
from -current:
Index: /sys/scsi/cd.c
===================================================================
RCS file: /home/cvs/src/sys/scsi/cd.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -u -r1.53 -r1.54
--- cd.c 1995/12/14 09:54:18 1.53
+++ cd.c 1995/12/20 12:02:43 1.54
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
- * $Id: cd.c,v 1.53 1995/12/14 09:54:18 phk Exp $
+ * $Id: cd.c,v 1.54 1995/12/20 12:02:43 dufault Exp $
*/
#define SPLCD splbio
@@ -588,7 +588,7 @@
return;
}
cdqueues++;
- if(cd->dkunit) {
+ if(cd->dkunit >= 0) {
dk_xfer[cd->dkunit]++;
dk_seek[cd->dkunit]++; /* don't know */
dk_wds[cd->dkunit] += bp->b_bcount >> 6;
--
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. ;-)
Paul Broome <broome@msiadmin.cit.cornell.edu>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.90.960330010538.1466A-100000>
