I have written one device driver of parallel port driver with IRQ handler.
Now, first i must have to access IRQ7 because my parallel port gives interrupt on it(I had seen that on /proc/interrupts).
Now, the problem that i faced is my request_irq() function fails whenever i am trying to request for irq7.
Also, my cat /proc/interrupt is looks like::
CPU0 CPU1
0: 98 0 IO-APIC-edge timer
1: 11764 2178 IO-APIC-edge i8042
3: 2 0 IO-APIC-edge
4: 2 0 IO-APIC-edge
7: 8 0 IO-APIC-edge parport0
8: 1 0 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
Where i don't know what is parport0. As per my thinking, because of this parport0 my request_irq fails.
I had read that: The `parport' code provides parallel-port support under Linux. This includes the ability to share one port between multiple device drivers. You can pass parameters to the parport code to override its automatic detection of your hardware. This is particularly useful if you want to use IRQs, since in general these can't be autoprobed successfully. By default IRQs are not used even if they can be probed. This is because there are a lot of people using the same IRQ for their parallel port and a sound card or network card.
So, how can i register my interrupt handler on irq7 so that i can manage interrupts from parallel port?