From: EXTERNAL B. M. (P. ST-FIR/Eng) <ext...@de...> - 2007-08-23 09:46:35
|
Hi, > Basicly how do I calculate the IRQ number using the INTC table in setup-sh770x.c. > For instance I want to know where IRQ4 ends up, If I check how the RTC IRQ's are calculated and use the I end up at IRQ 30. > Not sure If I understand it properly. The hexadecimal numbers in the CPU setup are the intevt values of the intevt register of the interrupt controller. There is a fixed mapping from the intevt value to the irq-source in the datasheet. Thats the intc_vect struct in the CPU setup. The mapping from an intevt value to the irq-number linux uses is done with the evt2irq macro in asm-sh/irq.h. There you find also the macro which does it the other way round. See the attached table for a precomputed list. Markus |