Adding an external interrupt controller

Liu Dave-r63238 DaveLiu at freescale.com
Wed Jun 21 19:57:21 EST 2006



> -----Original Message-----
> Hi everybody,
> 
> I'm trying to write a driver for a custom extension bus 
> mapped in my MPC8248 
> memory space.
> 
> The bus has 32 interrupt lines which are handled by an 
> interrupt controller 
> connected to a single external interrupt on the MPC8248.
> 
> I've had a look at the Linux interrupt management code, but 
> haven't found any 
> easy API to add an external interrupt controller. Could 

No, the linux kernel has this feature.

> someone give me a few 
> pointers regarding how to proceed ? I would like to 
> "register" the interrupt 
> controller with the interrupt management core, so that 
> request_irq()/free_irq() could be used with the extra interrupts.
> 
Need define the struct hw_interrupt_type <your_interrupt_controller>
and the struct irqaction <your_irqaction>, and 
implement member function and hook your interrupt controller to
The interrupt controller of MPC8248 with setup_irq.

-Dave



More information about the Linuxppc-embedded mailing list