Date: Sun, 20 Feb 2000 17:18:13 +0000 (GMT) From: Nick Hibma <n_hibma@calcaphon.com> To: James Housley <jim@thehousleys.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Device driver & KLD module Message-ID: <Pine.BSF.4.20.0002201713060.10559-100000@localhost> In-Reply-To: <38AD5055.6300B6DF@thehousleys.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0002201713060.10559-100000>