On Fri, 11 Feb 2011 17:15:47 -0500
Kenny Ho <k...@belairnetworks.com> wrote:

> Thanks Scott.
> 
> Do you know the logic of the hwirq <-> virq mapping?

It's dynamic.

> When I was digging into the GPIO interrupt, the hwirq seems to be the same as 
> the virq

The allocator tries that if it's available, but if that virq is already
taken, or is in the legacy ISA region under 16, you'll get a different
number.

> (both are 47 which is 16 (external interrupt) + 31 (internal interrupt).
> If I want to use external interrupt 7 and 8, should the virq also be 7
> and 8?

No.

> For some reason I am getting 41 for virq... may be I am still
> doing something wrong.

It's correct.  Pass what you receive into request_irq().

-Scott

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to