From owner-freebsd-current@FreeBSD.ORG Sun Jun 20 21:44:15 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C14C516A4CE for ; Sun, 20 Jun 2004 21:44:15 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFD6D43D2F for ; Sun, 20 Jun 2004 21:44:14 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru id i5KLfFws055542 for freebsd-current@freebsd.org.checked; (8.12.8/vak/2.1) Mon, 21 Jun 2004 01:41:15 +0400 (MSD) (envelope-from rik@cronyx.ru) Received: from cronyx.ru (rik.cronyx.ru [172.22.4.1]) by hanoi.cronyx.ru with ESMTP id i5KLckSr055372; (8.12.8/vak/2.1) Mon, 21 Jun 2004 01:38:47 +0400 (MSD) (envelope-from rik@cronyx.ru) Message-ID: <40D60279.4060602@cronyx.ru> Date: Mon, 21 Jun 2004 01:32:41 +0400 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.2.1) Gecko/20030426 X-Accept-Language: ru-ru, en MIME-Version: 1.0 To: "M. Warner Losh" References: <40D1D2A8.2070000@cronyx.ru> <20040618093024.X1609@gamplex.bde.org> <40D2E22A.40702@cronyx.ru> <20040620.110816.26780069.imp@bsdimp.com> In-Reply-To: <20040620.110816.26780069.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: How to catch interrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 21:44:15 -0000 M. Warner Losh: >In message: <40D2E22A.40702@cronyx.ru> > Roman Kurakin writes: >: Ok. Thanks for information. I guess I need to remove this code from my >: driver. >: This code is part of cx(4) and ctau(4) drivers. These cards are legacy >: ISA cards, >: IRQ line could be set any (from a definite set). The only reason why we >: probe >: for IRQ is to write to the user messages that IRQ is not functional - >: most probable >: it is assigned fot PCI/PNP. After we add this code calls to our tech >: support with >: question why device is not working (due to this reason) decreased twice. > >You can also use the watchdog timeout to good effect. When the >operation is done, you reset the watchdog. When the timeout happens, >you know that you don't have a working interrupt... It won't happen >at probe time, but will happen at a useful time (the first time the >user tries to use it). > I already use this solution. And it wouldn't help in case of autodetection, since adapter could use almost any IRQ and in this case driver should be smart to take the right one from available. Since sio also need this probably we should have much smarter isa_irq_pending()? rik > >Warner >_______________________________________________ >freebsd-current@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > >