Date: Mon, 11 Dec 1995 11:04:32 +1100 (EST) From: John Birrell <cimaxp1!jb@werple.net.au> To: hackers@FreeBSD.org Cc: jb@cimlogic.com.au Subject: Handling hardware interrupts in lkm device drivers. Message-ID: <199512110004.LAA03040@werple.net.au>
next in thread | raw e-mail | index | archive | help
G'day, I've got an ISA bus card that is capable of giving me an interrupt (if I want it to - which I do) when is has processed a command. I want to load the driver as a lkm because the information that allows me to write the driver is the subject of a licensing agreement so I can't give out source. I've written a simple lkm which I can modload, open(), close(), ioctl(), and communicate with the card (without enabling hardware interrupts). Now I'm up to the point where I want to register an interrupt handler that will wakeup() my ioctl() that is tsleep()'ing. When I look at (the zillions of) drivers in FreeBSD, they all look like they're config'ed in so that they appear in the isa device array. I was thinking about trying to register_intr() my interrupt function, but I see that register_intr() wants to know a device_id and I don't have one to give it. Am I barking up the wrong tree? Hope someone can help. Regards, -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au 119 Cecil Street Ph +61 3 9690 9600 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512110004.LAA03040>