changed some stuff so I could get a clean compile with 2.2.18-rtl kernel and rtlinux...
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 19 Mar 2001 19:34:00 +0000 (19:34 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 19 Mar 2001 19:34:00 +0000 (19:34 +0000)
comedi/rt_pend_tq/Makefile
comedi/rt_pend_tq/rt_pend_tq.c

index 00815b0f35032213be762dc9b2c2292da31c3bfa..939368081b94d6096c344acf6372177a7518d813 100644 (file)
@@ -29,12 +29,12 @@ MX_OBJS             := $(sort $(filter     $(export-objs), $(obj-m)))
 include $(TOPDIR)/Rules.make
 
 ifdef CONFIG_COMEDI_RTL
-rt_pend_tq.o : rt_pend_tq_rtl.c
+#rt_pend_tq.o : rt_pend_tq_rtl.c
 
 endif
 
 ifdef CONFIG_COMEDI_RTAI
-rt_pend_tq.o : rt_pend_tq_rtai.c
+#rt_pend_tq.o : rt_pend_tq_rtai.c
 
 endif
 
index a4830da2a5d9d95bf6967ba4fd196b82f34c4c53..2c8822bd245d541d6b10ba96fc2cea01d1e18004 100644 (file)
@@ -7,8 +7,9 @@
 #ifdef CONFIG_COMEDI_RTAI
 #include <rtai.h>
 #endif
-#ifdef CONFIG_COMEDI_RTLINUX
-#include <linux/rtl.h>
+#ifdef CONFIG_COMEDI_RTL
+#include <rtl.h>
+#include <rtl_core.h>
 #endif
 
 #ifdef standalone
@@ -46,7 +47,7 @@ int rt_pend_call(void (*func)(int arg1, void * arg2), int arg1, void * arg2)
 #ifdef CONFIG_COMEDI_RTAI
        rt_pend_linux_srq(rt_pend_tq_irq);
 #endif
-#ifdef CONFIG_COMEDI_RTLINUX
+#ifdef CONFIG_COMEDI_RTL
        rtl_global_pend_irq(rt_pend_tq_irq);
 #endif
        return 0;
@@ -55,7 +56,7 @@ int rt_pend_call(void (*func)(int arg1, void * arg2), int arg1, void * arg2)
 #ifdef CONFIG_COMEDI_RTAI
 void rt_pend_irq_handler(void)
 #endif
-#ifdef CONFIG_COMEDI_RTLINUX
+#ifdef CONFIG_COMEDI_RTL
 void rt_pend_irq_handler(int irq, void *dev, struct pt_regs * regs)
 #endif
 {
@@ -71,7 +72,7 @@ int rt_pend_tq_init(void)
 #ifdef CONFIG_COMEDI_RTAI
        rt_pend_tq_irq=rt_request_srq(0,rt_pend_irq_handler,NULL);
 #endif
-#ifdef CONFIG_COMEDI_RTLINUX
+#ifdef CONFIG_COMEDI_RTL
        rt_pend_tq_irq=rtl_get_soft_irq(rt_pend_irq_handler,"rt_pend_irq");
        if(rt_pend_tq_irq>0) 
                printk("rt_pend_tq: RT bottom half scheduler initialized OK\n");