Tim Ousley 4/10/01: added comments explaining how to modify
authorTim Ousley <tim.ousley@ni.com>
Tue, 10 Apr 2001 19:47:52 +0000 (19:47 +0000)
committerTim Ousley <tim.ousley@ni.com>
Tue, 10 Apr 2001 19:47:52 +0000 (19:47 +0000)
mite_ll_from_kvmem, for continuous acquisition.

comedi/drivers/mite.c

index 7f17c122019dbfad2b18dfbbc27728ada3c91eb3..b5c9f2f7cf8c37b57178f2478fa8c64a8105d647 100644 (file)
@@ -327,7 +327,13 @@ unsigned long mite_ll_from_kvmem(struct mite_struct *mite,comedi_async *async,in
                nup += mite->ring[i].count;
                i++;
        }
+       
+       /*End the mite->ring by setting the last element's count to 0.
+       To make a looping ring for continuous acquisition, 
+       mite->ring[i-1].next = virt_to_bus(mite->ring);
+       */
        mite->ring[i].count=0;
+       
        MDPRINTK("i was %d, size_so_far was %d\n",i,size_so_far);
        if(size_so_far<len) {
                printk("<1>Comedi Error: MITE_RING_SIZE is too small to hold the needed buffer\n");