From owner-freebsd-hackers Sun Dec 10 16:27:44 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA06449 for hackers-outgoing; Sun, 10 Dec 1995 16:27:44 -0800 (PST) Received: from werple.net.au (werple.mira.net.au [203.9.190.18]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id QAA06431 for ; Sun, 10 Dec 1995 16:27:40 -0800 (PST) Received: from cimaxp1.UUCP (Ucimlogi@localhost) by werple.net.au (8.7/8.7.1) with UUCP id LAA03040 for hackers@FreeBSD.org; Mon, 11 Dec 1995 11:04:17 +1100 (EST) Message-Id: <199512110004.LAA03040@werple.net.au> X-Authentication-Warning: werple.net.au: Ucimlogi set sender to cimaxp1!jb using -f Received: by cimaxp1.cimlogic.com.au; (5.65/1.1.8.2/10Sep95-0953AM) id AA03609; Mon, 11 Dec 1995 11:04:33 +1100 From: John Birrell Subject: Handling hardware interrupts in lkm device drivers. To: hackers@FreeBSD.org Date: Mon, 11 Dec 1995 11:04:32 +1100 (EST) Cc: jb@cimlogic.com.au X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.org Precedence: bulk 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