From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 15 08:23:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FE8816A4CE for ; Tue, 15 Jun 2004 08:23:12 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FA7643D5D for ; Tue, 15 Jun 2004 08:23:11 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru id i5F8K3d9028559 for freebsd-hackers@freebsd.org.checked; (8.12.8/vak/2.1) Tue, 15 Jun 2004 12:20:03 +0400 (MSD) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (hi.cronyx.ru [144.206.181.94]) by hanoi.cronyx.ru with ESMTP id i5F8JAxi028524 for ; (8.12.8/vak/2.1) Tue, 15 Jun 2004 12:19:10 +0400 (MSD) (envelope-from rik@cronyx.ru) Message-ID: <40CEB0BE.5020604@cronyx.ru> Date: Tue, 15 Jun 2004 12:18:06 +0400 From: Roman Kurakin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: activation of interrupt X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 08:23:12 -0000 Hi, I have problem with activation/deactivation of interrupts. I have a device driver for one ISA card. Since it is legacy ISA it's interrupt line (or it's possible interrupt lines if we were loaded with autodetection) could be assigned for PNP devices. The simplest way to find out if we able to work with this interrupt line to try to generate it and check if we see it (for example via isa_irq_pending()). Now about my proble :-). At first load of my driver all is ok. I able to work with interrupt. But at second one this interrupt is detected as non-functional. If I ignore this test, it seems that all work Ok. So problem only while I am at attach code. More over system tells me about stray irq. So I guess that this interrupt was blocked after it was unregistered. Since I don't have any more ideas what to do with this situation I ask for help and open for any advices. rik