int mite_bytes_transferred(struct mite_struct *mite, int chan)
{
- int DAR, FCR;
+ 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;
+ 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)
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/mc146818rtc.h>
+#include <linux/delay.h>
#include <asm/dma.h>
#include <linux/comedidev.h>
#include <8253.h>
#define _KVMEM_H
#include <linux/version.h>
#include <linux/malloc.h>
+#include <linux/vmalloc.h>
#include <linux/wrapper.h>
#include <asm/pgtable.h>
#include <asm/io.h>