From owner-freebsd-hackers Sun Feb 20 9:26:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from bluebottle.calcaphon.com (calcaphon.demon.co.uk [193.237.19.5]) by hub.freebsd.org (Postfix) with ESMTP id AB41637BEE3 for ; Sun, 20 Feb 2000 09:26:27 -0800 (PST) (envelope-from n_hibma@calcaphon.com) Received: from henny.webweaving.org (dhcp36.calcaphon.com [10.0.1.36]) by bluebottle.calcaphon.com (8.9.3/8.9.1) with ESMTP id RAA66085; Sun, 20 Feb 2000 17:26:12 GMT (envelope-from n_hibma@calcaphon.com) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.9.3/8.9.3) with ESMTP id RAA10566; Sun, 20 Feb 2000 17:18:14 GMT (envelope-from n_hibma@calcaphon.com) Date: Sun, 20 Feb 2000 17:18:13 +0000 (GMT) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: James Housley Cc: freebsd-hackers@freebsd.org Subject: Re: Device driver & KLD module In-Reply-To: <38AD5055.6300B6DF@thehousleys.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG First of all the joy module is not a good example as it has been made to work, but nothing beyond that. Second, you are still using lkm-isms, which you shouldn't. Any use of lkm* is wrong and should be converted to kld*. It should be fairly straightforward to create an ISA driver that loads as a module based on for example the USB mouse driver or another simple driver. The only fishy thing is the isa probe, which might not start to reprobe on module load. Third, you can drop the SYSINIT. You can handle that in the mod_load. Hope this helps. I'm spoiled as I have only been working with PCI devices, no ISA. Nick On Fri, 18 Feb 2000, James Housley wrote: > History: > I had a device driver for a BDM (Background Debug Module for > Motorola 683xx CPUs) that worked fine as a kernel device and a LKM. It > was based upon the LPT driver, because it attached to the parallel port, > and the JOY LKM, cause it was simple. > > Present: > I have updated the driver, it does work as a kernel device. It does > not work as a KLD. It does not print its startup nor create a device. > It was updated to match the current JOY KLD. It also appears the JOY > KLD may not be working. > > Questions: > 1) Does the JOY KLD actually work? What is the simplest way to test > it. I have a joystick, but not sure how to read info from it. > 2) If not I will fix it, if possible, while fixing my BDM. > 3) Looking around it would seem that the VESA KLD might be the > simplest KLD to look at. Is this true, or is there a better one? > > My source for the BDM driver is available, for anyone who wants to peek, > is at: http://bdm.thehousleys.net/bdm.tgz . The full page with some > more info is at: http://bdm.thehousleys.net . > > Thanks for all help. > > Jim > -- > microsoft: "where do you want to go today?" > linux: "where do you want to go tomorrow?" > BSD: "are you guys coming, or what?" > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message