83xx: requesting external interrupts

Ben Warren bwarren at qstreams.com
Sat May 12 06:29:25 EST 2007


On Fri, 2007-05-11 at 15:15 -0500, Kumar Gala wrote:

> 
> I assume you're code doesn't look exactly like this.  You'll need to  
> use the virq in the request_irq()... its most likely just random luck  
> if things are working and you aren't using the virq returned from  
> irq_create_mapping()
> 
> (Well its more than random luck, its because most 83xx systems only  
> have one PIC and this hw_irq # == virq)
> 
> - k

In the code that registers the ISR I do this:

virq = irq_find_mapping(NULL, MY_IRQ);
request_irq(virq ...)

Since I only have one interrupt controller, host is NULL, right?

regards,
Ben




More information about the Linuxppc-embedded mailing list