}
-int mite_bytes_transferred(struct mite_struct *mite, int chan)
+unsigned int mite_bytes_transferred(struct mite_struct *mite, int chan)
{
- int dar, fcr;
-
+ unsigned int dar, fcr;
+
dar = readl(mite->mite_io_addr+MITE_DAR+CHAN_OFFSET(chan));
fcr = readl(mite->mite_io_addr+MITE_FCR+CHAN_OFFSET(chan)) & 0x000000FF;
return dar-fcr;
int mite_dma_tcr(struct mite_struct *mite);
void mite_dma_arm(struct mite_struct *mite);
void mite_dma_disarm(struct mite_struct *mite);
-int mite_bytes_transferred(struct mite_struct *mite, int chan);
+unsigned int mite_bytes_transferred(struct mite_struct *mite, int chan);
#if 0
unsigned long mite_ll_from_kvmem(struct mite_struct *mite,comedi_async *async,int len);
#ifdef PCIDMA
static void mite_handle_a_linkc(struct mite_struct *mite, comedi_device *dev)
{
- int count;
+ unsigned int count;
comedi_subdevice *s = dev->subdevices + 0;
comedi_async *async = s->async;
printk("BUG: too many samples in interrupt (%d)\n",count);
return;
}
+ // XXX buf_dirty_count should really be incremented earlier...
+ async->buf_dirty_count += count;
async->buf_write_count += count;
if(async->cmd.flags & CMDF_RAWDATA){