#define APCI3120_COUNTER 3
-static int apci3120_ai_insn_config(struct comedi_device *dev,
- struct comedi_subdevice *s,
- struct comedi_insn *insn,
- unsigned int *data)
-{
- struct apci3120_private *devpriv = dev->private;
-
- if (data[0] != APCI3120_EOC_MODE)
- return -1;
-
- devpriv->b_InterruptMode = APCI3120_EOC_MODE;
-
- return insn->n;
-}
-
static int apci3120_setup_chan_list(struct comedi_device *dev,
struct comedi_subdevice *s,
int n_chan, unsigned int *chanlist)
s->n_chan = 16;
s->maxdata = this_board->ai_is_16bit ? 0xffff : 0x0fff;
s->range_table = &apci3120_ai_range;
- s->insn_config = apci3120_ai_insn_config;
s->insn_read = apci3120_ai_insn_read;
if (0 /* dev->irq */) {
dev->read_subdev = s;