Define the offset for the analog input FIFO register.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
#define APCI3120_START 1
#define APCI3120_STOP 0
-#define APCI3120_RD_FIFO 0x00
-
/* software trigger dummy register */
#define APCI3120_START_CONVERSION 0x02
int i;
for (i = 0; i < cmd->chanlist_len; i++) {
- val = inw(dev->iobase + 0);
+ val = inw(dev->iobase + APCI3120_AI_FIFO_REG);
comedi_buf_write_samples(s, &val, 1);
}
/*
* PCI BAR 1 register map (dev->iobase)
*/
+#define APCI3120_AI_FIFO_REG 0x00
#define APCI3120_CTRL_REG 0x00
#define APCI3120_CTRL_EXT_TRIG (1 << 15)
#define APCI3120_CTRL_GATE(x) (1 << (12 + (x)))
if (ret)
return ret;
- data[i] = inw(dev->iobase + 0);
+ data[i] = inw(dev->iobase + APCI3120_AI_FIFO_REG);
}
return insn->n;