From owner-freebsd-current Wed Jan 24 17:35:44 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA09695 for current-outgoing; Wed, 24 Jan 1996 17:35:44 -0800 (PST) Received: from Aspen.Woc.Atinc.COM (aspen.woc.atinc.com [198.138.38.205]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA09579 for ; Wed, 24 Jan 1996 17:34:19 -0800 (PST) Received: (from jmb@localhost) by Aspen.Woc.Atinc.COM (8.6.12/8.6.9) id UAA00647; Wed, 24 Jan 1996 20:34:20 -0500 Date: Wed, 24 Jan 1996 20:34:19 -0500 (EST) From: "Jonathan M. Bresler" X-Sender: jmb@Aspen.Woc.Atinc.COM To: bmk@dtr.com cc: "Clarence W. Wilkerson" , brantk@atlas.com, current@FreeBSD.org Subject: Re: NEC changer In-Reply-To: <199601250013.QAA06929@dtr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@FreeBSD.org Precedence: bulk On Wed, 24 Jan 1996 bmk@dtr.com wrote: > > Finally, in the line 278 code there is a "NCR" and in the line 342 > > code there is a "NRC". Is each correct? > > That's the way it is according to the patches obtained from Jonathan > Bresler . mea culpa. my error. here are the original patches. Received: from rmurphy.slip.bcm.tmc.edu (root@RMURPHY.SLIP.BCM.TMC.EDU [128.249.250.138]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA26343 Fri, 22 Dec 1995 15:28:26 -0800 (PST) Received: (from rich@localhost) by rmurphy.slip.bcm.tmc.edu (8.6.12/8.6.9) id RAA02541; Fri, 22 Dec 1995 17:28:19 -0600 Date: Fri, 22 Dec 1995 17:28:19 -0600 Message-Id: <199512222328.RAA02541@rmurphy.slip.bcm.tmc.edu> From: Rich Murphey To: jmb@freebsd.org CC: freebsd-hackers@freebsd.org, freebsd-scsi@freebsd.org, dufault@hda.com, bde@zeta.org.au, hm@altona.hamburg.com, se@mi.uni-koeln.de In-reply-to: (jmb@freebsd.org) Subject: Re: NAKAMICHI cdrom changer Reply-to: rich@lamprey.utmb.edu Status: RO X-Status: I'm using the Nakamichi MBR-7 connected to an adaptek 1742. Julian E. suggested these chages. These are diffs v.s. the 2.1-current code. I still got a panic during this morning's sup which I'm still trying to debug. Rich diff -rub /sys/scsi/scsiconf.c ./scsiconf.c --- /sys/scsi/scsiconf.c Mon Oct 9 21:49:13 1995 +++ ./scsiconf.c Fri Dec 22 00:04:18 1995 @@ -276,6 +276,10 @@ "cd", SC_MORE_LUS }, { + T_READONLY, T_REMOV, "NRC", "MBR-7", "*", + "cd", SC_MORE_LUS + }, + { T_READONLY, T_REMOV, "CHINON", "CD-ROM CDS-535","*", "cd", SC_ONE_LU }, @@ -331,6 +335,10 @@ }, { T_READONLY, T_REMOV, "PIONEER", "CD-ROM DRM-602X" + ,"any", "cd", SC_MORE_LUS + }, + { + T_READONLY, T_REMOV, "NRC", "MBR-7" ,"any", "cd", SC_MORE_LUS }, { diff -rub /sys/scsi/cd.c ./cd.c --- /sys/scsi/cd.c Tue May 30 03:13:20 1995 +++ ./cd.c Fri Dec 22 00:02:51 1995 @@ -533,7 +533,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;