Skip to contentSkip to conversation

irq in Linux

DISCUSSION Khai Trinh 2 participants 2 messages Jul 17, 2002 – Jul 18, 2002

lore
Share & tools
lore

Khai Trinh

author
#0 lore raw

Hi folks,

Can I register two devices irq numbers in a single device driver? If that's possible, then I can write a smart isr to figure out the interrupt is from which device and handle the irq accordingly.

Any inputs would be appreciated...

Thanks,
--Khai

Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Hi guys,

U are right. U can have two or more than that irq in a device driver. Let' say if u have

request_irq(irq no(17), handle1.....) request_irq(irq no(18), handle2.....)
For os it does not matter from where u have registered.
So whenever interrupt 17 will occur handle1 will be executed...
in another case handle2......

So u can always do that...i guess so
bye
Bhupi

Deep into Silicon with linux...

www.gdatech.com
[email protected]
[email protected]

Quoted 9 lines · --- Khai Trinh

Hi folks,

Can I register two devices irq numbers in a single device driver? If that's possible, then I can write a
smart isr to figure out the interrupt is from which device and handle the irq accordingly.

Quoted 7 lines

Any inputs would be appreciated...

Thanks,
--Khai

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/