From 18d9b5255280d5318808955375b02d11c8b1833f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 25 May 2001 02:01:45 +0000 Subject: [PATCH] Compilation fixes on powerpc --- comedi/drivers/mite.c | 8 ++++---- comedi/drivers/pcl818.c | 1 + comedi/kvmem.h | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index 2173b550..f72168eb 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -469,11 +469,11 @@ void mite_setregs(struct mite_struct *mite,unsigned long ll_start,int chan,int d 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) diff --git a/comedi/drivers/pcl818.c b/comedi/drivers/pcl818.c index 1a6aac79..f6a88a49 100644 --- a/comedi/drivers/pcl818.c +++ b/comedi/drivers/pcl818.c @@ -68,6 +68,7 @@ #include #include #include +#include #include #include #include <8253.h> diff --git a/comedi/kvmem.h b/comedi/kvmem.h index deb540a4..9b1960a7 100644 --- a/comedi/kvmem.h +++ b/comedi/kvmem.h @@ -6,6 +6,7 @@ #define _KVMEM_H #include #include +#include #include #include #include -- 2.26.2