[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Re: [uClinux-dev] interrupts - how to use for user IP




Hi,

This is the portion of Interrupt Controller for irqs...

BEGIN opb_intc
 PARAMETER INSTANCE = InterruptController
 PARAMETER HW_VER = 1.00.c
 PARAMETER C_BASEADDR = 0xFFFF_3000
 PARAMETER C_HIGHADDR = 0xFFFF_30FF
 BUS_INTERFACE SOPB = myopb
 PORT OPB_Clk = sys_clk
 PORT Intr = ps2irq & ethernet_int & uart_int1 & uart_int & xtimer_Interrupt
 PORT Irq = mb_irq
END

Is the change in request_irq alone will suffice or should i increase no. of interrupts...
 
Thanks & Regards,
Devi

Hi Devi,
>
>
>devi wrote:
>> i am integrating my ps2 controller as an user IP. this has an irq line mapped to INTC. should i change the following line in xparamters.h to increase the number of interrupts.
>> 
>> #define XPAR_INTC_MAX_NUM_INTR_INPUTS 3.
>> 
>> how does the above parameter affect the design. when i download uclinux kernel image with the PS2 driver, i am not able to receive the scancodes? so can anyone please help me in deciding the interrupts....
>
>Can you please post the fragment of your MHS file that describes the 
>interrupt controller?
>
>In your keyboard driver, you register your interrupt handler with a call 
>to request_irq().
>
> From your MHS file, you can determine which IRQ number is connected to 
>the PS2 controller - you then use that value in the request_irq call.
>
>Regards,
>
>John
>___________________________
>microblaze-uclinux mailing list
>microblaze-uclinux@itee.uq.edu.au
>Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/