static void c4_interrupt(int interrupt, void *devptr, struct pt_regs *regs) { avmcard *card; card = (avmcard *) devptr; if (!card) { printk(KERN_WARNING "%s: interrupt: wrong device\n", card->name); return; } if (card->interrupt) { printk(KERN_ERR "%s: reentering interrupt hander\n", card->name); return; } card->interrupt = 1; c4_handle_interrupt(card); card->interrupt = 0; }
static irqreturn_t c4_interrupt(int interrupt, void *devptr) { avmcard *card = devptr; return c4_handle_interrupt(card); }
static irqreturn_t c4_interrupt(int interrupt, void *devptr, struct pt_regs *regs) { avmcard *card = devptr; return c4_handle_interrupt(card); }