* Q:Shared IRQ
@ 2002-03-04 23:48 David Stroupe
2002-03-05 0:17 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: David Stroupe @ 2002-03-04 23:48 UTC (permalink / raw)
To: linux-kernel
I have written a driver for a pci board that uses interrupts. I install
the shared handler with a unique dev_id, or at least it should be unique
as it is the address of my driver's internal data struct for that card.
I get not only my interrupts, but also the interrupts of the shared
device, namely the network card. Is this what I should expect? If I
get a notification for the network card, why is the dev_id the same as
what I passed? If I didn't have an interrupt pending bit on my
hardware, how would I distinguish between the interrupts?
TIA
--
Best regards,
David Stroupe
Keyed-Up Software
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Q:Shared IRQ
2002-03-04 23:48 Q:Shared IRQ David Stroupe
@ 2002-03-05 0:17 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-03-05 0:17 UTC (permalink / raw)
To: David Stroupe; +Cc: linux-kernel
> I get not only my interrupts, but also the interrupts of the shared
> device, namely the network card. Is this what I should expect? If I
Yes.
> get a notification for the network card, why is the dev_id the same as
> what I passed? If I didn't have an interrupt pending bit on my
> hardware, how would I distinguish between the interrupts?
If you don't have an interrupt pending bit you are probably completely screwed.
PCI assumes you can tell if you caused the interrupt or you can service events
even if not needed (which basically comes down to the same thing).
Only your driver knows if you are a possible IRQ cause, its up to you to
handle it
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-05 0:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-04 23:48 Q:Shared IRQ David Stroupe
2002-03-05 0:17 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®