From owner-freebsd-stable@FreeBSD.ORG Sun Dec 5 15:36:23 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B13E16A4CE for ; Sun, 5 Dec 2004 15:36:23 +0000 (GMT) Received: from smartmx-07.inode.at (smartmx-07.inode.at [213.229.60.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DBFB43D60 for ; Sun, 5 Dec 2004 15:36:23 +0000 (GMT) (envelope-from h.mayer@inode.at) Received: from [213.229.63.159] (port=34003 helo=[213.229.63.159]) by smartmx-07.inode.at with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1CayQv-0004dK-VL for freebsd-stable@freebsd.org; Sun, 05 Dec 2004 16:36:22 +0100 Message-ID: <41B32A1F.9000205@inode.at> Date: Sun, 05 Dec 2004 16:32:47 +0100 From: Hannes Mayer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 X-Accept-Language: en-us, de-at, de, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Parallel Port Interrupt Handler in Kernel Module X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Dec 2004 15:36:23 -0000 Hi all! I'm new to FreeBSD - installed it 3 days ago :-) I'm trying to capture the parallel port interrupt in a kernel module. First I compiled the "skeleton" from: http://freebsd.active-venture.com/arch-handbook/driverbasics-kld.html and it works well. Then I googled on how to setup the interrupt handler, also looked at the device driver sources of the parallel port driver and I found that BUS_SETUP_INTR is used to setup the handler. But now after 5 hours and more googling I'm still clueless on how to implement BUS_SETUP_INTR in the "skeleton". Is anyone willing to share an example of a kernel module with basic interrupt handling ? In linux it was pretty easy (even with RTAI in hard real time) (see: http://www.captain.at/programming/rtai/parportint.php ) but here I'm lost. Thanks a lot in advance & best regards, Hannes.