devpriv->ctrl = 0;
outw(devpriv->ctrl, dev->iobase + APCI3120_CTRL_REG);
- apci3120_ai_reset_fifo(dev);
inw(dev->iobase + APCI3120_STATUS_REG);
return 0;
devpriv->mode = 0;
outb(devpriv->mode, dev->iobase + APCI3120_MODE_REG);
- apci3120_ai_reset_fifo(dev);
inw(dev->iobase + APCI3120_STATUS_REG);
devpriv->ui_DmaActualBuffer = 0;
outl(APCI3120_CLEAR_WRITE_TC_INT,
devpriv->amcc + APCI3120_AMCC_OP_REG_INTCSR);
- apci3120_ai_reset_fifo(dev);
-
devpriv->ui_DmaActualBuffer = 0;
/* load chanlist for command scan */
outw(val, dev->iobase + APCI3120_CHANLIST_REG);
}
+
+ apci3120_ai_reset_fifo(dev);
}
#include "addi-data/hwdrv_apci3120.c"
/* fixed conversion time of 10 us */
divisor = apci3120_ns_to_timer(dev, 0, 10000, CMDF_ROUND_NEAREST);
- apci3120_ai_reset_fifo(dev);
-
for (i = 0; i < insn->n; i++) {
/* trigger conversion */
apci3120_timer_write(dev, 0, divisor);