From owner-freebsd-questions Fri Mar 29 22:15:16 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA16710 for questions-outgoing; Fri, 29 Mar 1996 22:15:16 -0800 (PST) Received: from msiadmin.cit.cornell.edu (MSIADMIN.CIT.CORNELL.EDU [128.253.216.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA16702 for ; Fri, 29 Mar 1996 22:15:13 -0800 (PST) Received: by msiadmin.cit.cornell.edu (4.1/1.5) id AA01471; Sat, 30 Mar 96 01:15:06 EST Date: Sat, 30 Mar 1996 01:15:03 -0500 (EST) From: Paul Broome To: Frank Seltzer Cc: paulb@online1.magnus1.com, jmb@freefall.freebsd.org, questions@FreeBSD.ORG Subject: Re: Other disks of Pioneer DRM-624X changer In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 , 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