From owner-freebsd-hackers Sun Mar 9 16:14:48 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 00F2C37B401 for ; Sun, 9 Mar 2003 16:14:47 -0800 (PST) Received: from mail.darq.net (phear.darq.net [213.253.1.14]) by mx1.FreeBSD.org (Postfix) with SMTP id 79B2B43F75 for ; Sun, 9 Mar 2003 16:14:45 -0800 (PST) (envelope-from kaneda@darq.net) Received: (qmail 11742 invoked by uid 1010); 10 Mar 2003 00:14:45 -0000 Date: Mon, 10 Mar 2003 00:14:45 +0000 From: Richard Airlie To: Robert Eckardt Cc: hackers@freebsd.org Subject: Re: Guide to writing device drivers sought Message-ID: <20030310001444.GA14554@phear.darq.net> References: <20030309204400.M24984@Robert-Eckardt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030309204400.M24984@Robert-Eckardt.de> User-Agent: Mutt/1.4i X-Url: http://www.darq.net/ 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 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