From owner-freebsd-hackers Fri Nov 8 08:32:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA20538 for hackers-outgoing; Fri, 8 Nov 1996 08:32:45 -0800 (PST) Received: from interlock.lexmark.com (interlock.lexmark.com [192.146.101.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA20532 for ; Fri, 8 Nov 1996 08:32:34 -0800 (PST) Received: by interlock.lexmark.com id AA02293 (InterLock SMTP Gateway 3.0 for hackers@freebsd.org); Fri, 8 Nov 1996 11:32:12 -0500 Message-Id: <199611081632.AA02293@interlock.lexmark.com> Received: by interlock.lexmark.com (Protected-side Proxy Mail Agent-2); Fri, 8 Nov 1996 11:32:12 -0500 Received: by interlock.lexmark.com (Protected-side Proxy Mail Agent-1); Fri, 8 Nov 1996 11:32:12 -0500 To: "hackers%FreeBSD.ORG" From: Larry S Lile Date: 8 Nov 96 11:29:16 EST Subject: Re: Pinnacle RCD Driver Mime-Version: 1.0 Content-Type: Text/Plain Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I apologize for the poor fomatting of this message, and for the waste of bandwidth, but to make it readable I will repost it. ( Lotus Notes / Proportional Fonts / Broken Mail gateway --- Help, help I'm being repressed!! :) > I am currently working on a driver for the Pinnacle RCD 5040i. My > original plan was to attempt to integrate support for this device under > Joerg's worm driver but it differs to much from the HP/Phillips drives > to do this (or at least for me to be able to) I have a pretty good start > on the driver and so far Pinnacle is helping me some of there less > clearly documented scsi commands. > > What I am having trouble with and I know that these are probably > simple questions, but bear with me as I have never had to deal with > Un*x drivers from this side of the street before, are the minor numbers, > (cb)devsw, and the partition information. I am also trying to write the > driver in such a way that I can interface directly back to Julian's cd > driver to give the device full functionality as both an RCD and CD. > > As to minor numbers, I have seen mention of things like "5 bit unit" in > the cd driver, according to documentation Pinnacle sent to me the RCD > is an 8 bit device, but supports all cd commands that the cd driver has > implemented. So do I set up the minor number in the same way Julian > set up the minor number for a cd or should I use the method that Joerg > used for the worm driver as the RCD is a worm device? Or have they > taken two different implementation methods because cd supports both > block and character but worm only currently supports character. > > Second, I have seen what appear to be 2 disperate cdevsw structure > definitions, could some one clarify what exactly the definition of this > should be for me. I have compared the implementation of sd, cd, and > worm but now I am totally confused > > Last, I really don't get the partition stuff in the cd driver whatsoever, > or worse the device filesystem (DEVFS) stuff. > > I am fairly sure that I can write the driver functions to operate the drive, > its just the interface to the kernel and low-level scsi driver that I don't > understand. I have just never had to deal with them before and I don't > have much documentation on what is required to do so. > > Larry Lile > lslile@lexmark.com