Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1018 → Rev 1019

/shark/trunk/drivers/linuxc26/shark_glue.c
12,7 → 12,7
 
extern int intr_count;
 
#define DEBUG_SHARK_GLUE
//#define DEBUG_SHARK_GLUE
 
/* 1-15 for IRQ and 16-63 for timers */
void *timer_arg_table[MAX_TIMER_TABLE];
/shark/trunk/drivers/linuxc26/int.c
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
}
}