CFLAGS += -D__KERNEL__ -I $(TOPDIR)/include -I $(LINUXDIR)/include -I .
CFLAGS += -D__MODBUILD__
ifdef RTLDIR
-CFLAGS += -I $(RTLDIR)/include
+CFLAGS += -I $(RTLDIR)/include -D__RT__
endif
CONFIG_SHELL := sh
define_bool CONFIG_COMEDI_RTL y
fi
fi
+if [ "$CONFIG_RTL_V1" = "y" ];then
+ bool 'Real-time v1 support' CONFIG_COMEDI_RT
+ if [ "$CONFIG_COMEDI_RT" = "y" ];then
+ define_bool CONFIG_COMEDI_RTL_V1 y
+ fi
+fi
if [ "$CONFIG_RTHAL" = "y" ];then
bool 'Real-time support' CONFIG_COMEDI_RT
if [ "$CONFIG_COMEDI_RT" = "y" ];then
#include <linux/timer.h>
#include <linux/pci.h>
#include <asm/io.h>
-#include <asm/uaccess.h>
+/* no, comedi_module.h takes care about it #include <asm/uaccess.h> */
#include <comedi_module.h>
#include <8255.h>
#ifdef CONFIG_COMEDI_DAQBOARD2000_FPGA
static int dt_pci_probe(comedi_device *dev)
{
int board;
+ int ret;
ret=dt_pci_find_device(NULL,&board);
if(ret==0)
static int dds_detach(comedi_device *dev);
comedi_driver driver_vd_dds={
driver_name: "vd_dds",
- module: &__this_module,
+ module: THIS_MODULE,
attach: dds_attach,
detach: dds_detach,
};
#!/bin/sh
-if [ "$CONFIG_RTL" != "" ];then
+if [ -f "$LINUXDIR/include/asm/rt_irq.h" ]; then
+ CONFIG_RTL_V1="y"
+fi
+if [ "$CONFIG_RTL" != "" -o "$CONFIG_RTL_V1" = "y" ]; then
echo You appear to be running an RTL-patched kernel
default=${RTLDIR:=/usr/src/rtl}