From owner-freebsd-hackers Fri Nov 8 07:18:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA10484 for hackers-outgoing; Fri, 8 Nov 1996 07:18:11 -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 HAA10473 for ; Fri, 8 Nov 1996 07:18:06 -0800 (PST) Received: by interlock.lexmark.com id AA29714 (InterLock SMTP Gateway 3.0 for hackers@FreeBSD.ORG); Fri, 8 Nov 1996 10:17:49 -0500 Message-Id: <199611081517.AA29714@interlock.lexmark.com> Received: by interlock.lexmark.com (Protected-side Proxy Mail Agent-2); Fri, 8 Nov 1996 10:17:49 -0500 Received: by interlock.lexmark.com (Protected-side Proxy Mail Agent-1); Fri, 8 Nov 1996 10:17:49 -0500 To: "hackers%FreeBSD.ORG" From: Larry S Lile Date: 8 Nov 96 10:16:51 EST Subject: Pinnacle RCD Driver Mime-Version: 1.0 Content-Type: Text/Plain Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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