added some debug messages to pio fifo drain
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 3 Apr 2002 22:03:47 +0000 (22:03 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 3 Apr 2002 22:03:47 +0000 (22:03 +0000)
comedi/drivers/cb_pcidas64.c

index ab54fc4d2f534f09e790b944827826d8249b4a0c..1554523a76422391b7667b0ad4ddf3cfda287431 100644 (file)
@@ -89,8 +89,8 @@ TODO:
 #include "8255.h"
 #include "plx9080.h"
 
-#undef PCIDAS64_DEBUG  // disable debugging code
-//#define PCIDAS64_DEBUG       // enable debugging code
+//#undef PCIDAS64_DEBUG        // disable debugging code
+#define PCIDAS64_DEBUG // enable debugging code
 
 #ifdef PCIDAS64_DEBUG
 #define DEBUG_PRINT(format, args...)  printk("comedi: " format , ## args )
@@ -1659,6 +1659,11 @@ static void pio_drain_ai_fifo(comedi_device *dev)
                read_index = readw(private(dev)->main_iobase + ADC_READ_PNTR_REG) & 0x7fff;
                write_index = readw(private(dev)->main_iobase + ADC_WRITE_PNTR_REG) & 0x7fff;
 
+               DEBUG_PRINT("rd seg 0x%x\n", read_segment);
+               DEBUG_PRINT("rd inx 0x%x\n", read_index);
+               DEBUG_PRINT("wrt seg 0x%x\n", write_segment);
+               DEBUG_PRINT("wrt inx 0x%x\n", write_index);
+
                /* if read and write pointers are not on the same fifo segment, read to the
                * end of the read segment */
                if(read_segment != write_segment)