testing alternate fifo offset
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 3 Apr 2002 05:25:25 +0000 (05:25 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 3 Apr 2002 05:25:25 +0000 (05:25 +0000)
comedi/drivers/cb_pcidas64.c

index 37e542ced3a744a13b930bd9ed20466d8b9ac331..a998ae0b079b08bcd0197ff2e3850d8528aff5dd 100644 (file)
@@ -1237,7 +1237,7 @@ static int ai_rinsn(comedi_device *dev,comedi_subdevice *s,comedi_insn *insn,lsa
                        return -ETIME;
                }
                if(board(dev)->layout == LAYOUT_4020)
-                       data[n] = readl(private(dev)->dio_counter_iobase) & 0xffff;
+                       data[n] = readl(private(dev)->dio_counter_iobase + ADC_FIFO_REG) & 0xffff;
                else
                        data[n] = readw(private(dev)->main_iobase + PIPE1_READ_REG);
        }