10,6 → 10,8 |
#define NIL -1 /*+ integer unvalid value +*/ |
#endif |
|
//#define DEBUG_LINUX_INT |
|
struct int_handler { |
void (*func)(int, void *dev_id, struct pt_regs *); |
void *data; |
41,7 → 43,9 |
|
intr_count++; |
|
//cprintf("(linux_intr %d)", irq); |
#ifdef DEBUG_LINUX_INT |
printk("(linux_intr %d)", irq); |
#endif |
|
ihp=irq_list[irq].handlers; |
while (ihp) { |
83,7 → 87,9 |
shark_handler_set(irq, linux_intr); |
//shark_handler_set(irq, NULL, NULL); |
|
//cprintf("(request_irq %d)", irq); |
#ifdef DEBUG_LINUX_INT |
printk("(request_irq %d)", irq); |
#endif |
} |
ihp->func = handler; |
ihp->flags = flags; |
118,7 → 124,9 |
{ |
shark_handler_remove(irq); |
|
//cprintf("(free_irq %d)", irq); |
#ifdef DEBUG_LINUX_INT |
printk("(free_irq %d)", irq); |
#endif |
} |
} |
|