From 12a8997c68787e8619f10cdf991e97cd67c10133 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 9 Feb 2000 04:57:23 +0000 Subject: [PATCH] fixed compilation problems with RTL/RTAI --- comedi/Makefile | 6 ------ comedi/comedi_module.h | 13 +++++++------ comedi/rtai.c | 2 ++ comedi/rtai.h | 23 ----------------------- comedi/rtl.c | 10 +++++++++- 5 files changed, 18 insertions(+), 36 deletions(-) delete mode 100644 comedi/rtai.h diff --git a/comedi/Makefile b/comedi/Makefile index 5ba357fe..23c17837 100644 --- a/comedi/Makefile +++ b/comedi/Makefile @@ -17,13 +17,8 @@ MI_OBJS := comedi_fops.o dummy.o proc.o range.o drivers.o kvmem.o MIX_OBJS := comedi_ksyms.o -ifeq ($(CONFIG_COMEDI_REALTIME),y) -MI_OBJS += rt.o -endif - ifeq ($(CONFIG_COMEDI_RTL),y) MI_OBJS += rtl.o -CFLAGS += -D__RTL__ endif ifeq ($(CONFIG_COMEDI_RTAI),y) @@ -32,7 +27,6 @@ endif ifeq ($(CONFIG_COMEDI_RTL_V1),y) MI_OBJS += rtl_v1.o -CFLAGS += -D__RTL__ endif range-y := range.c diff --git a/comedi/comedi_module.h b/comedi/comedi_module.h index b65dfb56..0a7ec7b1 100644 --- a/comedi/comedi_module.h +++ b/comedi/comedi_module.h @@ -56,23 +56,24 @@ struct comedi_irq_struct * get_irq_struct(unsigned int); #endif #ifdef CONFIG_COMEDI_RTL -#include +void comedi_rtl_init(void); +void comedi_rtl_cleanup(void); #endif #ifdef CONFIG_COMEDI_RTAI -#include +void comedi_rtai_init(void); +void comedi_rtai_cleanup(void); #define rt_printk(format,args...) printk(format,##args) #define rt_printk_init() #define rt_printk_cleanup() - #endif #ifdef CONFIG_COMEDI_RTL_V1 -#include +void comedi_rtl_v1_init(void); +void comedi_rtl_v1_cleanup(void); #define rt_printk(format,args...) printk(format,##args) #define rt_printk_init() #define rt_printk_cleanup() - #endif #else /* !CONFIG_COMEDI_RT */ @@ -83,7 +84,7 @@ struct comedi_irq_struct * get_irq_struct(unsigned int); #endif -#ifdef CONFIG_DEBUG +#ifdef CONFIG_COMEDI_DEBUG #define DPRINTK(format, args...) printk("comedi: " format , ## args ) #else #define DPRINTK(format, args...) /* */ diff --git a/comedi/rtai.c b/comedi/rtai.c index 94f1a252..b510e916 100644 --- a/comedi/rtai.c +++ b/comedi/rtai.c @@ -13,6 +13,8 @@ #include #include +#include + extern void rt_unmask_irq(unsigned int irq); diff --git a/comedi/rtai.h b/comedi/rtai.h deleted file mode 100644 index 144c1dff..00000000 --- a/comedi/rtai.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * RTL compatibility,, version 1 - * - */ - -#ifndef __COMEDI_RTAI_H -#define __COMEDI_RTAI_H - -#include - -#if 0 -int rt_printk(const char *fmt, ...); - -void rt_printk_cleanup(void); -int rt_printk_init(void); -#endif - -void comedi_rtai_init(void); -void comedi_rtai_cleanup(void); - - -#endif - diff --git a/comedi/rtl.c b/comedi/rtl.c index ff615e0a..a804ed8f 100644 --- a/comedi/rtl.c +++ b/comedi/rtl.c @@ -4,7 +4,7 @@ */ #include -#include +#include "rtl.h" #include #include @@ -14,6 +14,8 @@ #include #include #include + +#include #if 0 #include #endif @@ -183,6 +185,12 @@ struct rtl_file_operations comedi_rtl_fops={ #endif +static struct comedi_irq_struct rtl_irq_struct; + +struct comedi_irq_struct * get_irq_struct(unsigned int irq) +{ + return &rtl_irq_struct; +} static unsigned int handle_rtl_irq(unsigned int irq,struct pt_regs *regs) { -- 2.26.2