From: Frank Mori Hess Date: Wed, 3 Apr 2002 22:03:47 +0000 (+0000) Subject: added some debug messages to pio fifo drain X-Git-Tag: r0_7_65~122 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a29a083b4dce96acdd3b4c3c98162f5df9b149d8;p=comedi.git added some debug messages to pio fifo drain --- diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index ab54fc4d..1554523a 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -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)