From owner-freebsd-hackers Tue Nov 3 05:22:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA06692 for freebsd-hackers-outgoing; Tue, 3 Nov 1998 05:22:28 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from Thingol.KryptoKom.DE (Thingol.KryptoKom.DE [194.245.91.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA06687 for ; Tue, 3 Nov 1998 05:22:26 -0800 (PST) (envelope-from Etienne.Debruin@KryptoKom.DE) Received: (from mail@localhost) by Thingol.KryptoKom.DE (8.8.7/8.8.4) id OAA21637; Tue, 3 Nov 1998 14:21:18 +0100 Received: from cirdan.kryptokom.de by via smtpp (Version 1.1.1beta6) id kwa21627; Tue Nov 03 14:20:58 1998 Received: by Cirdan.KryptoKom.DE (8.8.5/8.8.5) with ESMTP id OAA11376; Tue, 3 Nov 1998 14:19:18 +0100 Received: (from debruin@localhost) by borg.kryptokom.de (8.8.8/8.8.8) id OAA01476; Tue, 3 Nov 1998 14:21:57 +0100 (CET) (envelope-from debruin) From: Etienne de Bruin Message-Id: <199811031321.OAA01476@borg.kryptokom.de> Subject: Re: chaining interrupt handler In-Reply-To: <199811031228.OAA20788@zibbi.mikom.csir.co.za> from John Hay at "Nov 3, 1998 2:28:57 pm" To: jhay@mikom.csir.co.za (John Hay) Date: Tue, 3 Nov 1998 14:21:57 +0100 (CET) Cc: freebsd-hackers@FreeBSD.ORG (Hackers FreeBSD) X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > void fc_pci_intr() > > { > > if certain flags set { > > handle interupt > > } > > else { > > chain interrupt > > } > > } > > You shouldn't need the else part. The generic pci handler should do that > for you. That way you don't even have to know which device is sharing > the interrupt with you. the reason i ask because the following happens: on a system with one pci network card and my pci device, my device driver's interrupt handler gets called without anyproblems when i issue an interrupt. but on a system with two pci network cards, it seems like my interrupt handler never gets called when i issue my interrupt... any idea as to why this happens? eT -- Etienne de Bruin, KryptoKom(R), Germany, http://www.kryptokom.de/ eT@kryptokom.de or edebruin@iname.com +49 241 963 2635(w) "the promise of love is hard to ignore" - crowded house, private universe. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message