when building for 2.4 kernel.
comedi_subdevice *subdevice = dev->read_subdev;
comedi_async *async;
unsigned long irq_flags;
- int handled = 1;
async = subdevice->async;
async->events |= COMEDI_CB_ERROR | COMEDI_CB_EOA;
comedi_event (dev, subdevice, async->events);
- return IRQ_RETVAL(handled);
+ return IRQ_HANDLED;
}
if (pci9111_is_fifo_half_full())
comedi_event (dev, subdevice, async->events);
- return IRQ_RETVAL(handled);
+ return IRQ_HANDLED;
}
// ------------------------------------------------------------------
static irqreturn_t interrupt_service_pci1710(int irq, void *d, struct pt_regs *regs)
{
comedi_device *dev = d;
- int retval = 1;
DPRINTK("adv_pci1710 EDBG: BGN: interrupt_service_pci1710(%d,...)\n",irq);
if (!(inw(dev->iobase + PCI171x_STATUS) & Status_IRQ)) // is this interrupt from our board?
outw(devpriv->CntrlReg, dev->iobase+PCI171x_CONTROL);
// start pacer
start_pacer(dev, 1, devpriv->ai_et_div1, devpriv->ai_et_div2);
- return IRQ_RETVAL(retval);
+ return IRQ_HANDLED;
}
if (devpriv->ai_eos) { // We use FIFO half full INT or not?
interrupt_pci1710_every_sample(d);
interrupt_pci1710_half_fifo(d);
}
DPRINTK("adv_pci1710 EDBG: END: interrupt_service_pci1710(...)\n");
- return IRQ_RETVAL(retval);
+ return IRQ_HANDLED;
}
/*
{
comedi_device *dev=d;
comedi_subdevice *s=dev->subdevices+1;
- int retval = 1;
+ int handled;
- if(!pc236_intr_check(dev))
- return IRQ_RETVAL(retval);
-
- comedi_buf_put(s->async,0);
- s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
-
- comedi_event(dev,s,s->async->events);
- return IRQ_RETVAL(retval);
+ handled = pc236_intr_check(dev);
+ if (handled) {
+ comedi_buf_put(s->async,0);
+ s->async->events |= COMEDI_CB_BLOCK | COMEDI_CB_EOS;
+ comedi_event(dev,s,s->async->events);
+ }
+ return IRQ_RETVAL(handled);
}
int status_int;
comedi_device *dev = (comedi_device*) d;
comedi_subdevice *s;
- int retval = 1;
/* Read interrupt status/enable register. */
status_int = inb(devpriv->pci_iobase + PCI230_INT_SCE);
s->async->events = 0;
}
- return IRQ_RETVAL(retval);
+ return IRQ_HANDLED;
}
static void pci230_handle_ao(comedi_device *dev, comedi_subdevice *s) {
unsigned int num_samples, i;
static const int timeout = 10000;
unsigned long flags;
- int retval = 1;
if(dev->attached == 0)
{
comedi_event(dev, s, async->events);
- return IRQ_RETVAL(retval);
+ return IRQ_HANDLED;
}
static void handle_ao_interrupt(comedi_device *dev, unsigned int status)
unsigned short status;
uint32_t plx_status;
uint32_t plx_bits;
- int retval = 1;
plx_status = readl(priv(dev)->plx9080_iobase + PLX_INTRCS_REG);
status = readw(priv(dev)->main_iobase + HW_STATUS_REG);
DEBUG_PRINT("exiting handler\n");
- return IRQ_RETVAL( retval );
+ return IRQ_HANDLED;
}
void abort_dma(comedi_device *dev, unsigned int channel)
int status;
int work = 0;
unsigned int m_status;
- int retval = 1;
status = readb(devpriv->mite->daq_io_addr+Interrupt_And_Window_Status);
flags = readb(devpriv->mite->daq_io_addr+Group_1_Flags);
writeb(0x03,devpriv->mite->daq_io_addr+Master_DMA_And_Interrupt_Control);
}
#endif
- return IRQ_RETVAL(retval);
+ return IRQ_HANDLED;
}
#ifdef DEBUG_FLAGS