From: Tim Ousley Date: Tue, 10 Apr 2001 19:47:52 +0000 (+0000) Subject: Tim Ousley 4/10/01: added comments explaining how to modify X-Git-Tag: r0_7_59~124 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f9a1e9cf7069a0bf66ef3a8af67902033b314e0;p=comedi.git Tim Ousley 4/10/01: added comments explaining how to modify mite_ll_from_kvmem, for continuous acquisition. --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 7f17c122..b5c9f2f7 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -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_farComedi Error: MITE_RING_SIZE is too small to hold the needed buffer\n");