From owner-freebsd-hackers Sun Mar 9 17:16: 9 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B01537B401 for ; Sun, 9 Mar 2003 17:16:08 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9FF543F85 for ; Sun, 9 Mar 2003 17:16:07 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP id <2003031001160605200d3g6fe>; Mon, 10 Mar 2003 01:16:07 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA99931; Sun, 9 Mar 2003 17:16:06 -0800 (PST) Date: Sun, 9 Mar 2003 17:16:05 -0800 (PST) From: Julian Elischer To: Richard Airlie Cc: Robert Eckardt , hackers@freebsd.org Subject: Re: Guide to writing device drivers sought In-Reply-To: <20030310001444.GA14554@phear.darq.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At one stage the example driver in -current (/usr/share/examples/drivers) was correct for 4.x but I don't know if that is true any more as so many things have changed.. It's a shellscript that generates a skeleton driver for you. On Mon, 10 Mar 2003, Richard Airlie wrote: > hi, > > On Sun, Mar 09, 2003 at 09:44:00PM +0100, Robert Eckardt wrote: > > long ago I used the joy-driver as an example to integrate my own device > > driver. I'm now trying (once again :-) to do the same in FreeBSD-4.7. > > Unfortunately, joy no longer functions correctly (since 4.1) and so it is an > > inappropriate example. > > i have submitted a PR including a patch for this problem: > > > > (it would be really nice if someone could look at this and give it the 'thumbs > up' if its ok). > > the patch allows for /dev/joy0 and /dev/joy1 to both exist, attached to the > same I/O port (0x201). > > if you look at the patch you'll see there are only minor changes required to > achieve this.. its quite straightforward. > > hope this is some use to you - > > regards, > richard. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message