Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1006 → Rev 1007

/shark/trunk/drivers/linuxc26/int.c
4,11 → 4,8
#include <asm-generic/errno-base.h>
#include <linux/kernel.h>
 
extern void *int_arg_table[MAX_INT_TABLE];
extern void *int_func_table[MAX_INT_TABLE];
#define MAX_IRQS (NR_IRQS +1)
 
#define MAX_IRQS 16
 
#ifndef NIL
#define NIL -1 /*+ integer unvalid value +*/
#endif
44,7 → 41,7
 
intr_count++;
 
//cprintf("(Int %d)", irq);
//cprintf("(linux_intr %d)", irq);
 
ihp=irq_list[irq].handlers;
while (ihp) {
66,8 → 63,6
*headp=ihp;
}
 
#define USE_IRQ_SERVER
 
/*
* Attach a handler to an IRQ.
*/
84,12 → 79,11
 
if (irq_list[irq].handlers == NULL)
{
//* Warning: check if irq is used from somebody that doesn't share!
#ifdef USE_IRQ_SERVER
shark_handler_set(irq, NULL, NULL);
#else
handler_set(irq, linux_intr, NIL, TRUE);
#endif
//* Warning: check if irq is used from somebody that doesn't share! (Claudio ?!?)
shark_handler_set(irq, linux_intr);
//shark_handler_set(irq, NULL, NULL);
 
//cprintf("(request_irq %d)", irq);
}
ihp->func = handler;
ihp->flags = flags;
122,7 → 116,9
 
if (irq_list[irq].handlers == NULL)
{
handler_remove(irq);
shark_handler_remove(irq);
 
//cprintf("(free_irq %d)", irq);
}
}