module, Makefile, config changes
authorDavid Schleef <ds@schleef.org>
Thu, 13 Jul 2000 00:46:26 +0000 (00:46 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 13 Jul 2000 00:46:26 +0000 (00:46 +0000)
35 files changed:
comedi/Config.in
comedi/Makefile
comedi/drivers/8255.c
comedi/drivers/Makefile
comedi/drivers/comedi_parport.c
comedi/drivers/daqboard2000.c
comedi/drivers/das08.c
comedi/drivers/das08jr.c
comedi/drivers/das16.c
comedi/drivers/das1600.c
comedi/drivers/das6402.c
comedi/drivers/dt2801.c
comedi/drivers/dt2811.c
comedi/drivers/dt2814.c
comedi/drivers/dt2815.c
comedi/drivers/dt2817.c
comedi/drivers/dt282x.c
comedi/drivers/dt3000.c
comedi/drivers/ii_pci20kc.c
comedi/drivers/multiq3.c
comedi/drivers/ni_atmio.c
comedi/drivers/ni_atmio16d.c
comedi/drivers/ni_pcidio.c
comedi/drivers/ni_pcimio.c
comedi/drivers/pcl711.c
comedi/drivers/pcl725.c
comedi/drivers/pcl726.c
comedi/drivers/pcl812.c
comedi/drivers/pcl818.c
comedi/drivers/rti800.c
comedi/drivers/rti802.c
comedi/kcomedilib/Makefile
scripts/check_kernel
scripts/config.dist
scripts/config.in

index e9fa10c41bb4e5d4737bc21d19a1e974f9084911..229b9e35fe61ff3b3f0c162f67581d51745fc5c2 100644 (file)
@@ -3,7 +3,6 @@ comment 'Comedi Features'
 
 #bool 'Backwards compatibility' CONFIG_COMEDI_BACKWARDS
 
-tristate 'Kernel Comedilib' CONFIG_COMEDI_KLIB
 if [ "$CONFIG_RTL" = "y" ];then
        bool 'Real-time support' CONFIG_COMEDI_RT
        if [ "$CONFIG_COMEDI_RT" = "y" ];then
@@ -20,69 +19,70 @@ fi
 bool 'Verbose Debugging' CONFIG_COMEDI_DEBUG
 #bool 'Version 0.8 support' CONFIG_COMEDI_VER08
 
-comment 'Hardware device drivers'
+dep_tristate 'Kernel Comedilib' CONFIG_COMEDI_KLIB $CONFIG_COMEDI
 
+comment 'Hardware device drivers'
 
 bool 'Data Translation boards' CONFIG_COMEDI_DT
 if [ "$CONFIG_COMEDI_DT" = "y" ];then
-       tristate '  DT 2801' CONFIG_COMEDI_DT2801
-       tristate '  DT 2811' CONFIG_COMEDI_DT2811
-       tristate '  DT 2814' CONFIG_COMEDI_DT2814
-       tristate '  DT 2815' CONFIG_COMEDI_DT2815
-       tristate '  DT 2817' CONFIG_COMEDI_DT2817
-       tristate '  DT 2821 series' CONFIG_COMEDI_DT282x
+       dep_tristate '  DT 2801' CONFIG_COMEDI_DT2801 $CONFIG_COMEDI
+       dep_tristate '  DT 2811' CONFIG_COMEDI_DT2811 $CONFIG_COMEDI
+       dep_tristate '  DT 2814' CONFIG_COMEDI_DT2814 $CONFIG_COMEDI
+       dep_tristate '  DT 2815' CONFIG_COMEDI_DT2815 $CONFIG_COMEDI
+       dep_tristate '  DT 2817' CONFIG_COMEDI_DT2817 $CONFIG_COMEDI
+       dep_tristate '  DT 2821 series' CONFIG_COMEDI_DT282x $CONFIG_COMEDI
        if [ "$CONFIG_PCI" = "y" ];then
-               tristate '  DT3000' CONFIG_COMEDI_DT3000
+               dep_tristate '  DT3000' CONFIG_COMEDI_DT3000 $CONFIG_COMEDI
        fi
 fi
 
 bool 'National Instruments boards' CONFIG_COMEDI_NI
 if [ "$CONFIG_COMEDI_NI" = "y" ];then
-       tristate '  AT-MIO E series' CONFIG_COMEDI_NI_ATMIO
+       dep_tristate '  AT-MIO E series' CONFIG_COMEDI_NI_ATMIO $CONFIG_COMEDI
        if [ "$CONFIG_PCMCIA" = "y" -o "$CONFIG_PCMCIA" = "m" ];then
-               tristate '  PCMCIA MIO E series' CONFIG_COMEDI_NI_MIO_CS
+               dep_tristate '  PCMCIA MIO E series' CONFIG_COMEDI_NI_MIO_CS $CONFIG_COMEDI
        fi
        if [ "$CONFIG_PCI" = "y" ];then
-               tristate '  PCI-MIO E series' CONFIG_COMEDI_NI_PCIMIO
-               tristate '  NI PCI-DIO series' CONFIG_COMEDI_NI_PCIDIO
+               dep_tristate '  PCI-MIO E series' CONFIG_COMEDI_NI_PCIMIO $CONFIG_COMEDI
+               dep_tristate '  NI PCI-DIO series' CONFIG_COMEDI_NI_PCIDIO $CONFIG_COMEDI
                if [ "$CONFIG_COMEDI_NI_PCIMIO" = "y" -o "$CONFIG_COMEDI_NI_PCIDIO" = "y" ];then
                        define_bool CONFIG_COMEDI_MITE y
                else
                        if [ "$CONFIG_COMEDI_NI_PCIMIO" = "m" -o "$CONFIG_COMEDI_NI_PCIDIO" = "m" ];then
-                               define_bool CONFIG_COMEDI_MITE y
+                               define_bool CONFIG_COMEDI_MITE m
                        fi
                fi
        fi
-       tristate '  AT-MIO-16D' CONFIG_COMEDI_NI_ATMIO16D
+       dep_tristate '  AT-MIO-16D' CONFIG_COMEDI_NI_ATMIO16D $CONFIG_COMEDI
 fi
 
-tristate 'new DAS08 compatible driver' CONFIG_COMEDI_DAS08_NEW
-tristate 'new DAS16 compatible driver' CONFIG_COMEDI_DAS16_NEW
-tristate 'Computer Boards DAS-08 series' CONFIG_COMEDI_DAS08
-tristate 'Computer Boards DAS-08jr' CONFIG_COMEDI_DAS08JR
-tristate 'Keithley Metrabyte DAS-1600 and compatibles' CONFIG_COMEDI_DAS1600
-tristate 'DAS16' CONFIG_COMEDI_DAS16
-tristate 'DAS-6402 and compatibles' CONFIG_COMEDI_DAS6402
-tristate 'Generic 8255 support' CONFIG_COMEDI_8255
-tristate 'Quanser Consulting MultiQ-3' CONFIG_COMEDI_MULTIQ3
-tristate 'Generic parallel port support' CONFIG_COMEDI_PARPORT
-tristate 'PCL-711, PCL-711b, ACL-8112, and compatibles' CONFIG_COMEDI_PCL711
-tristate 'PCL-725' CONFIG_COMEDI_PCL725
-tristate 'PCL-726' CONFIG_COMEDI_PCL726
-tristate 'Advantech PCL-812PG, PCL-813B' CONFIG_COMEDI_PCL812
-tristate 'Advantech PCL-818/L/H/HD/HG, PCL-718' CONFIG_COMEDI_PCL818
-tristate 'Analog Devices RTI-800/815' CONFIG_COMEDI_RTI800
-tristate 'Analog Devices RTI-802' CONFIG_COMEDI_RTI802
-tristate 'Intelligent Instrumentation PCI-20001C' CONFIG_COMEDI_II_PCI20KC
+dep_tristate 'new DAS08 compatible driver' CONFIG_COMEDI_DAS08_NEW $CONFIG_COMEDI
+dep_tristate 'new DAS16 compatible driver' CONFIG_COMEDI_DAS16_NEW $CONFIG_COMEDI
+dep_tristate 'Computer Boards DAS-08 series' CONFIG_COMEDI_DAS08 $CONFIG_COMEDI
+dep_tristate 'Computer Boards DAS-08jr' CONFIG_COMEDI_DAS08JR $CONFIG_COMEDI
+dep_tristate 'Keithley Metrabyte DAS-1600 and compatibles' CONFIG_COMEDI_DAS1600 $CONFIG_COMEDI
+dep_tristate 'DAS16' CONFIG_COMEDI_DAS16 $CONFIG_COMEDI
+dep_tristate 'DAS-6402 and compatibles' CONFIG_COMEDI_DAS6402 $CONFIG_COMEDI
+dep_tristate 'Generic 8255 support' CONFIG_COMEDI_8255 $CONFIG_COMEDI
+dep_tristate 'Quanser Consulting MultiQ-3' CONFIG_COMEDI_MULTIQ3 $CONFIG_COMEDI
+dep_tristate 'Generic parallel port support' CONFIG_COMEDI_PARPORT $CONFIG_COMEDI
+dep_tristate 'PCL-711, PCL-711b, ACL-8112, and compatibles' CONFIG_COMEDI_PCL711 $CONFIG_COMEDI
+dep_tristate 'PCL-725' CONFIG_COMEDI_PCL725 $CONFIG_COMEDI
+dep_tristate 'PCL-726' CONFIG_COMEDI_PCL726 $CONFIG_COMEDI
+dep_tristate 'Advantech PCL-812PG, PCL-813B' CONFIG_COMEDI_PCL812 $CONFIG_COMEDI
+dep_tristate 'Advantech PCL-818/L/H/HD/HG, PCL-718' CONFIG_COMEDI_PCL818 $CONFIG_COMEDI
+dep_tristate 'Analog Devices RTI-800/815' CONFIG_COMEDI_RTI800 $CONFIG_COMEDI
+dep_tristate 'Analog Devices RTI-802' CONFIG_COMEDI_RTI802 $CONFIG_COMEDI
+dep_tristate 'Intelligent Instrumentation PCI-20001C' CONFIG_COMEDI_II_PCI20KC $CONFIG_COMEDI
 if [ "$CONFIG_PCI" = "y" ];then
-       tristate 'IOtech DaqBoard/2000' CONFIG_COMEDI_DAQBOARD2000
+       dep_tristate 'IOtech DaqBoard/2000' CONFIG_COMEDI_DAQBOARD2000 $CONFIG_COMEDI
 fi
 
 if [ "$CONFIG_COMEDI_RT" = "y" ];then
        comment 'Virtual device drivers'
 
-       tristate 'Command emulator (timer)' CONFIG_COMEDI_VD_TIMER
-       tristate 'Direct Digital Synthesis' CONFIG_COMEDI_VD_DDS
+       dep_tristate 'Command emulator (timer)' CONFIG_COMEDI_VD_TIMER $CONFIG_COMEDI
+       dep_tristate 'Direct Digital Synthesis' CONFIG_COMEDI_VD_DDS $CONFIG_COMEDI
 fi
 
 
index 7ec368e71a50661925162e5a10e77fab3a21e19c..fc64529349f48b2b505cca83acd0793067950a49 100644 (file)
@@ -5,6 +5,8 @@ ALL_SUB_DIRS := kcomedilib drivers realtime
 MOD_SUB_DIRS := drivers
 MOD_IN_SUB_DIRS :=
 
+EXTRA_CFLAGS := -I .
+
 ifneq ($(CONFIG_COMEDI_KLIB),n)
        MOD_SUB_DIRS += kcomedilib
        SUB_DIRS += kcomedilib
@@ -17,9 +19,17 @@ endif
 
 MOD_LIST_NAME := MISC_MODULES
 
-M_OBJS := comedi.o
-MI_OBJS := comedi_fops.o dummy.o proc.o range.o drivers.o kvmem.o
-MIX_OBJS := comedi_ksyms.o
+ifeq ($(CONFIG_COMEDI),y)
+  O_TARGET := comedi.o
+  O_OBJS := comedi_fops.o dummy.o proc.o range.o drivers.o kvmem.o
+  OX_OBJS := comedi_ksyms.o
+else
+  ifeq ($(CONFIG_COMEDI),m)
+    M_OBJS := comedi.o
+    MI_OBJS := comedi_fops.o dummy.o proc.o range.o drivers.o kvmem.o
+    MIX_OBJS := comedi_ksyms.o
+  endif
+endif
 
 
 ifeq ($(CONFIG_COMEDI_RT),y)
@@ -38,28 +48,13 @@ ifeq ($(CONFIG_COMEDI_RTL_V1),y)
 MI_OBJS += rtl_v1.o
 endif
 
-#range-y := range.c
-#range-$(CONFIG_COMEDI_DT2801)         += drivers/dt2801.c
-#range-$(CONFIG_COMEDI_DT2811)         += drivers/dt2811.c
-#range-$(CONFIG_COMEDI_DT2815)         += drivers/dt2815.c
-#range-$(CONFIG_COMEDI_DT282x)         += drivers/dt282x.c
-#range-$(CONFIG_COMEDI_DT3000)         += drivers/dt3000.c
-#range-$(CONFIG_COMEDI_NI_ATMIO)               += drivers/ni_mio_common.c
-#ifndef CONFIG_COMEDI_NI_ATMIO
-#range-$(CONFIG_COMEDI_NI_PCIMIO)      += drivers/ni_mio_common.c
-#endif
-
-#range-$(CONFIG_COMEDI_PCL711)         += drivers/pcl711.c
-#range-$(CONFIG_COMEDI_RTI800)         += drivers/rti800.c
-#range-$(CONFIG_COMEDI_DAS1600)                += drivers/das1600.c
-
-
-
 
 
 include $(TOPDIR)/Rules.make
 
 
+ifeq ($(CONFIG_COMEDI),m)
 comedi.o: $(MI_OBJS) $(MIX_OBJS)
        $(LD) -r -o $@ $(MI_OBJS) $(MIX_OBJS)
+endif
 
index 182d595827324780e81b37b4a7bdbf74a0b575c7..fd1661d4415b0587dbddd08f75b546f736b796e1 100644 (file)
@@ -62,7 +62,7 @@ static int dev_8255_attach(comedi_device * dev, comedi_devconfig * it);
 static int dev_8255_detach(comedi_device * dev);
 comedi_driver driver_8255={
        driver_name:    "8255",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dev_8255_attach,
        detach:         dev_8255_detach,
 };
@@ -220,6 +220,7 @@ static int dev_8255_attach(comedi_device *dev,comedi_devconfig *it)
        }
 
        printk("\n");
+
        return 0;
 }
 
index a0274e5c4991c9ff3db4baf2eb77c588e6222696..f69eaf0e6110d42afd78bd2907bde3889b7a4e3a 100644 (file)
@@ -4,7 +4,11 @@ MOD_SUB_DIRS :=
 SUB_DIRS     :=
 MOD_LIST_NAME := MISC_MODULES
 
-EXTRA_CFLAGS := -I ../
+EXTRA_CFLAGS := -I ../ -I ./
+
+ifeq ($(CONFIG_COMEDI),y)
+O_TARGET       := drivers.o
+endif
 
 export-objs := mite.o 8255.o
 
@@ -17,6 +21,8 @@ obj-$(CONFIG_COMEDI_8255)             += 8255.o
 
 obj-$(CONFIG_COMEDI_DAQBOARD2000)      += daqboard2000.o
 
+obj-$(CONFIG_COMEDI_DAS08_NEW)         += das08-new.o
+obj-$(CONFIG_COMEDI_DAS16_NEW)         += das16-new.o
 obj-$(CONFIG_COMEDI_DAS08)             += das08.o
 obj-$(CONFIG_COMEDI_DAS08JR)           += das08jr.o
 obj-$(CONFIG_COMEDI_DAS16)             += das16.o
@@ -53,12 +59,10 @@ obj-$(CONFIG_COMEDI_PARPORT)                += comedi_parport.o
 obj-$(CONFIG_COMEDI_RTI800)            += rti800.o
 obj-$(CONFIG_COMEDI_RTI802)            += rti802.o
 
-obj-m += $(obj-y)
+#obj-m += $(obj-y)
 
-#L_OBJS                := $(sort $(filter-out $(export-objs), $(obj-y)))
-#LX_OBJS       := $(sort $(filter     $(export-objs), $(obj-y)))
-#MI_OBJS       := $(sort $(filter-out $(export-objs), $(obj-y)))
-#MIX_OBJS      := $(sort $(filter     $(export-objs), $(obj-y)))
+O_OBJS         := $(sort $(filter-out $(export-objs), $(obj-y)))
+OX_OBJS                := $(sort $(filter     $(export-objs), $(obj-y)))
 M_OBJS         := $(sort $(filter-out $(export-objs), $(obj-m)))
 MX_OBJS                := $(sort $(filter     $(export-objs), $(obj-m)))
 
@@ -67,9 +71,6 @@ MX_OBJS               := $(sort $(filter     $(export-objs), $(obj-m)))
 include $(TOPDIR)/Rules.make
 
 
-drivers.o:     $(obj-y)
-       $(LD) -r -o $@ $(obj-y)
-
 ni_pcimio.o:   ni_mio_common.c
 ni_atmio.o:    ni_mio_common.c
 
index 3e7a6b42ff9a5983ab2d50bfeb846ef38489d831..ed54cb2a1d95c72e6c1888a76288cf89b00320fc 100644 (file)
@@ -56,7 +56,7 @@ static int parport_attach(comedi_device *dev,comedi_devconfig *it);
 static int parport_detach(comedi_device *dev);
 comedi_driver driver_parport={
        driver_name:    "parport",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         parport_attach,
        detach:         parport_detach,
 };
index 67b1b36fd396c39a17464a339e6f1d0a306d3929..8d782b48aba0d569b048da1c9d654081c70cbd41 100644 (file)
@@ -292,7 +292,7 @@ static int daqboard2000_recognize(char *name);
 
 comedi_driver driver_daqboard2000 = {
   driver_name: "daqboard2000",
-  module:      &__this_module,
+  module:      THIS_MODULE,
   attach:      daqboard2000_attach,
   detach:      daqboard2000_detach,
   recognize:   daqboard2000_recognize,
index 6687d736c6c3b7c267ea4d612243e3295ac241ea..b0e4d746d2dc81108d0cc7395d488412fb2cc5a8 100644 (file)
@@ -162,7 +162,7 @@ static int das08_detach(comedi_device *dev);
 static int das08_recognize(char *name);
 comedi_driver driver_das08={
        driver_name:    "das08",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         das08_attach,
        detach:         das08_detach,
        recognize:      das08_recognize,
index be72f765230b1695250fbf8a6a7c5b4a9fc133d8..fab752623c7c744fec1376e6710c63aef89893bd 100644 (file)
@@ -80,7 +80,7 @@ static int das08jr_attach(comedi_device *dev,comedi_devconfig *it);
 static int das08jr_detach(comedi_device *dev);
 comedi_driver driver_das08jr={
        driver_name:    "das08jr",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         das08jr_attach,
        detach:         das08jr_detach,
 };
index cf19c1e4d92f90e61e3f7528efbff1af1d8c6165..c9522862f00f1b4472eda6d1a389450c783b7886 100644 (file)
@@ -181,7 +181,7 @@ static int das16_attach(comedi_device *dev,comedi_devconfig *it);
 static int das16_detach(comedi_device *dev);
 comedi_driver driver_das16={
        driver_name:    "das16",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         das16_attach,
        detach:         das16_detach,
 };
index a681dac76be88277255a7cf18ca450f35bb04198..629c1f436800a335cc03829dfeb68bce23050771 100644 (file)
@@ -135,7 +135,7 @@ static int das1600_detach(comedi_device *dev);
 static int das1600_recognize(char *name);
 comedi_driver driver_das1600={
        driver_name:    "das1600",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         das1600_attach,
        detach:         das1600_detach,
        recognize:      das1600_recognize,
index 7dc7599d0c8be074582d4daa7e3f8c298bf9bf12..c19469830ef2406f9db6ac75165d154a1a8c7766 100644 (file)
@@ -98,7 +98,7 @@ static int das6402_attach(comedi_device *dev,comedi_devconfig *it);
 static int das6402_detach(comedi_device *dev);
 comedi_driver driver_das6402={
        driver_name:    "das6402",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         das6402_attach,
        detach:         das6402_detach,
 };
index 08bc8f4f85e1705a1fe0d867a6bf32c6e3cf6e8c..d73b773bdee8b3073ba904c6d91d6946579e3111 100644 (file)
@@ -72,7 +72,7 @@ static int dt2801_attach(comedi_device *dev,comedi_devconfig *it);
 static int dt2801_detach(comedi_device *dev);
 comedi_driver driver_dt2801={
        driver_name:    "dt2801",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt2801_attach,
        detach:         dt2801_detach,
 };
index 3635f13acb67c4b7cd4f04f9b3dc52a9e449c7e0..87e9faf9f9ffb35c9812130ee7946940be05b934 100644 (file)
@@ -177,7 +177,7 @@ static int dt2811_detach(comedi_device *dev);
 static int dt2811_recognize(char *name);
 comedi_driver driver_dt2811={
        driver_name:    "dt2811",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt2811_attach,
        detach:         dt2811_detach,
        recognize:      dt2811_recognize,
index 6b506b945904674c69ce9c6f23433c9664f26a88..458aed1e7baf4cf76120a050ccb15a1189279dbb 100644 (file)
@@ -57,7 +57,7 @@ static int dt2814_attach(comedi_device *dev,comedi_devconfig *it);
 static int dt2814_detach(comedi_device *dev);
 comedi_driver driver_dt2814={
        driver_name:    "dt2814",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt2814_attach,
        detach:         dt2814_detach,
 };
index eb5f1b634e927db67b444cbe0f73648bed631f69..92a2431c98cb1b1cc9f626f46df9d468db5abb03 100644 (file)
@@ -52,7 +52,7 @@ static int dt2815_attach(comedi_device *dev,comedi_devconfig *it);
 static int dt2815_detach(comedi_device *dev);
 comedi_driver driver_dt2815={
        driver_name:    "dt2815",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt2815_attach,
        detach:         dt2815_detach,
 };
index d2e6c994250a529c24ffe620b218ebe52795807a..450e7ca13aecb0567125b5dd3356e4be185cf336 100644 (file)
@@ -47,7 +47,7 @@ static int dt2817_attach(comedi_device *dev,comedi_devconfig *it);
 static int dt2817_detach(comedi_device *dev);
 comedi_driver driver_dt2817={
        driver_name:    "dt2817",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt2817_attach,
        detach:         dt2817_detach,
 };
index b6c65c9bad04337c79e1a6e43c4bbb5c09ca2e88..504f35e58701f8815cb9dd2bd7f62eb41c9bc6c5 100644 (file)
@@ -340,7 +340,7 @@ static int dt282x_detach(comedi_device * dev);
 static int dt282x_recognize(char *name);
 comedi_driver driver_dt282x={
        driver_name:    "dt282x",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt282x_attach,
        detach:         dt282x_detach,
        recognize:      dt282x_recognize,
index 1352c7b180178001ba11d7c55465809594a8abae..967e1aab7dec711213e1ed51e2e81aafadb24f65 100644 (file)
@@ -225,7 +225,7 @@ static int dt3000_attach(comedi_device *dev,comedi_devconfig *it);
 static int dt3000_detach(comedi_device *dev);
 comedi_driver driver_dt3000={
        driver_name:    "dt3000",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         dt3000_attach,
        detach:         dt3000_detach,
 };
index 7d7f99012b0cf797f767eb698c483618581ddc58..2ae24c74a7ad3080a8970c2f9d4dec90ea9d29ec 100644 (file)
@@ -95,7 +95,7 @@ static int pci20xxx_detach(comedi_device * dev);
 
 comedi_driver driver_pci20xxx = {
        driver_name:"pci20xxx",
-       module:&__this_module,
+       module:THIS_MODULE,
        attach:pci20xxx_attach,
        detach:pci20xxx_detach,
 };
index df3c878cea9e848fc0f47a4a331b01d3603e2070..fd102db5af484d92be49806ac5862d02548f1228 100644 (file)
@@ -89,7 +89,7 @@ static int multiq3_attach(comedi_device *dev,comedi_devconfig *it);
 static int multiq3_detach(comedi_device *dev);
 comedi_driver driver_multiq3={
        driver_name:    "multiq3",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         multiq3_attach,
        detach:         multiq3_detach,
 };
index 2757247ba2fda5e0d13c6eada8919759982318ef..5953e69e91622776ccc4eb2fa319e5d849cac56e 100644 (file)
@@ -270,6 +270,7 @@ typedef struct{
        unsigned short gpct_input_select0;
        unsigned short gpct_input_select1;
 
+       unsigned int ai_n_chans;
        unsigned int ai_chanlistptr;
        unsigned short ai_xorlist[512];
 }ni_private;
@@ -279,7 +280,7 @@ static int atmio_attach(comedi_device *dev,comedi_devconfig *it);
 static int atmio_detach(comedi_device *dev);
 comedi_driver driver_atmio={
        driver_name:    "atmio-E",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         atmio_attach,
        detach:         atmio_detach,
 };
index e86912b74d03e60c6415bc5bef1333742b2ccfaf..abb77e1f44b661407a5d1b29aad1f85a65f22a0a 100644 (file)
@@ -140,7 +140,7 @@ static void reset_atmio16d(comedi_device *dev);
 /* main driver struct */
 comedi_driver driver_atmio16d={
        driver_name:    "atmio16",
-       module:     &__this_module,
+       module:     THIS_MODULE,
        attach:     atmio16d_attach,
        detach:     atmio16d_detach,
        recognize:  atmio16d_recognize,
index f1ea1e42946c3145a25834f64f913fe107c2541e..36fa823325a9faf1776243b9395853bbaf479937 100644 (file)
@@ -149,7 +149,7 @@ static int nidio_attach(comedi_device *dev,comedi_devconfig *it);
 static int nidio_detach(comedi_device *dev);
 comedi_driver driver_pcidio={
        driver_name:    "nidio",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         nidio_attach,
        detach:         nidio_detach,
 };
index 8fdb55b41cdeab06a05db43ad6f5265137e1742d..9a302140518fff84a4a1abc9126e27df034546c9 100644 (file)
@@ -336,7 +336,7 @@ static int pcimio_attach(comedi_device *dev,comedi_devconfig *it);
 static int pcimio_detach(comedi_device *dev);
 comedi_driver driver_pcimio={
        driver_name:    "pcimio-E",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         pcimio_attach,
        detach:         pcimio_detach,
 };
@@ -411,6 +411,7 @@ typedef struct{
        unsigned short gpct_input_select0;
        unsigned short gpct_input_select1;
 
+       unsigned int ai_n_chans;
        unsigned int ai_chanlistptr;
        unsigned short ai_xorlist[512];
 }ni_private;
index f02b18e27cb24b679e2837a76675a594fbd59bd4..e20841d3e1a4eb02460f959d1c34b27ee518feac 100644 (file)
@@ -123,7 +123,7 @@ static int pcl711_detach(comedi_device *dev);
 static int pcl711_recognize(char *name);
 comedi_driver driver_pcl711={
        driver_name:    "pcl711",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         pcl711_attach,
        detach:         pcl711_detach,
        recognize:      pcl711_recognize,
index 36e1e799e3187f3ec9d8a45efc6aa8b99c34189e..c8d4bd81b6f208026d8a3b16307f6d40e0060463 100644 (file)
@@ -28,7 +28,7 @@ static int pcl725_attach(comedi_device *dev,comedi_devconfig *it);
 static int pcl725_detach(comedi_device *dev);
 comedi_driver driver_pcl725={
        driver_name:    "pcl725",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         pcl725_attach,
        detach:         pcl725_detach,
 };
index 952e87bd65f4f9e0a1fc4432acb6786e23d00109..36f3c8a9e40c016e90c650946061f98ab8ffb06f 100644 (file)
@@ -61,7 +61,7 @@ static int pcl726_attach(comedi_device *dev,comedi_devconfig *it);
 static int pcl726_detach(comedi_device *dev);
 comedi_driver driver_pcl726={
        driver_name:    "pcl726",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         pcl726_attach,
        detach:         pcl726_detach,
 };
index 705407109081d2103b85de384668ebcdc6b14bf4..6d7abdc6bb74b8fa49c2808e8794f1f4be859dde 100644 (file)
@@ -124,7 +124,7 @@ static int i8253_osc_base = 500;    /* 2 Mhz */
 
 comedi_driver driver_pcl812={
        driver_name:    "pcl812",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         pcl812_attach,
        detach:         pcl812_detach,
        recognize:      pcl812_recognize,
index 74ac44749d2b81556f68142510f206e19de5d9ee..905b502b144bd0ad5d81cce0da81f5dc93c8cbcf 100644 (file)
@@ -211,7 +211,7 @@ static int RTC_timer_lock = 0;              /* RTC int lock */
 
 comedi_driver driver_pcl818={
        driver_name:    "pcl818",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         pcl818_attach,
        detach:         pcl818_detach,
        recognize:      pcl818_recognize,
index f2f1f68c1eb3d9ebb3e2113c938a2c510fc253fb..36e962d95bb483c037d9f8cd8149936cb7781479 100644 (file)
@@ -101,7 +101,7 @@ static int rti800_detach(comedi_device *dev);
 static int rti800_recognize(char *name);
 comedi_driver driver_rti800={
        driver_name:    "rti800",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         rti800_attach,
        detach:         rti800_detach,
        recognize:      rti800_recognize,
index 3cf022c569bc62677376271e72d035cb7efb72a4..5d3189bb4667eb2965ab836977f1a7bbc101c631 100644 (file)
@@ -46,7 +46,7 @@ static int rti802_attach(comedi_device *dev,comedi_devconfig *it);
 static int rti802_detach(comedi_device *dev);
 comedi_driver driver_rti802={
        driver_name:    "rti802",
-       module:         &__this_module,
+       module:         THIS_MODULE,
        attach:         rti802_attach,
        detach:         rti802_detach,
 };
index 4442fc8ec730f6c460de5d0e83782d1eba510a65..02f64c723fbcafdd49218d50b46654989b57f57d 100644 (file)
@@ -6,9 +6,15 @@ MOD_LIST_NAME := MISC_MODULES
 
 EXTRA_CFLAGS := -I ../
 
-MI_OBJS := data.o dio.o
-MIX_OBJS := kcomedilib_main.o
-M_OBJS := kcomedilib.o
+ifeq ($(CONFIG_COMEDI_KLIB),y)
+  O_TARGET := kcomedilib.o
+  OX_OBJS := kcomedilib_main.o
+  O_OBJS := data.o dio.o
+else
+  MI_OBJS := data.o dio.o
+  MIX_OBJS := kcomedilib_main.o
+  M_OBJS := kcomedilib.o
+endif
 
 
 include $(TOPDIR)/Rules.make
index 72ed648d7c1a596cff8cd93d1affdb37beaadb3b..ebaffe072a8b0e796ceb738864c21af9e2d50aef 100755 (executable)
@@ -2,7 +2,7 @@
 
 
 
-if [ $(grep -c "$(uname -r)" /usr/include/linux/version.h) != 0 ]
+if [ $(grep -c "$(uname -r)" ${LINUXDIR}/version.h) != 0 ]
 then
        echo <<EOF
  *****
index 3f7d2e2fad517c2a510d8614f1adbf0c5bd857a2..b438e20a004562e24d8bb2e7b778069e4ca0df60 100644 (file)
@@ -1,39 +1,45 @@
 #
 # Automatically generated make config: don't edit
 #
-CONFIG_COMEDI=m
 
 #
 # Comedi Features
 #
-CONFIG_COMEDI_KLIB=y
 CONFIG_COMEDI_DEBUG=y
+CONFIG_COMEDI_KLIB=m
 
 #
 # Hardware device drivers
 #
 CONFIG_COMEDI_DT=y
-# CONFIG_COMEDI_DT2801 is not set
-# CONFIG_COMEDI_DT2811 is not set
-# CONFIG_COMEDI_DT2814 is not set
-# CONFIG_COMEDI_DT2815 is not set
-# CONFIG_COMEDI_DT2817 is not set
-# CONFIG_COMEDI_DT282x is not set
-# CONFIG_COMEDI_DT3000 is not set
+CONFIG_COMEDI_DT2801=m
+CONFIG_COMEDI_DT2811=m
+CONFIG_COMEDI_DT2814=m
+CONFIG_COMEDI_DT2815=m
+CONFIG_COMEDI_DT2817=m
+CONFIG_COMEDI_DT282x=m
+CONFIG_COMEDI_DT3000=m
 CONFIG_COMEDI_NI=y
-# CONFIG_COMEDI_NI_ATMIO is not set
-# CONFIG_COMEDI_NI_PCIMIO is not set
-# CONFIG_COMEDI_NI_PCIDIO is not set
-# CONFIG_COMEDI_DAS08 is not set
-# CONFIG_COMEDI_DAS08JR is not set
-# CONFIG_COMEDI_DAS1600 is not set
-# CONFIG_COMEDI_DAS16 is not set
-# CONFIG_COMEDI_DAS6402 is not set
-# CONFIG_COMEDI_8255 is not set
-# CONFIG_COMEDI_MULTIQ3 is not set
-# CONFIG_COMEDI_PARPORT is not set
-# CONFIG_COMEDI_PCL711 is not set
-# CONFIG_COMEDI_PCL725 is not set
-# CONFIG_COMEDI_PCL726 is not set
-# CONFIG_COMEDI_RTI800 is not set
-# CONFIG_COMEDI_RTI802 is not set
+CONFIG_COMEDI_NI_ATMIO=m
+CONFIG_COMEDI_NI_MIO_CS=m
+CONFIG_COMEDI_NI_PCIMIO=m
+CONFIG_COMEDI_NI_PCIDIO=m
+CONFIG_COMEDI_MITE=m
+CONFIG_COMEDI_NI_ATMIO16D=m
+CONFIG_COMEDI_DAS08=m
+CONFIG_COMEDI_DAS08JR=m
+CONFIG_COMEDI_DAS1600=m
+CONFIG_COMEDI_DAS16=m
+CONFIG_COMEDI_DAS6402=m
+CONFIG_COMEDI_8255=m
+CONFIG_COMEDI_MULTIQ3=m
+CONFIG_COMEDI_PARPORT=m
+CONFIG_COMEDI_PCL711=m
+CONFIG_COMEDI_PCL725=m
+CONFIG_COMEDI_PCL726=m
+CONFIG_COMEDI_PCL812=m
+CONFIG_COMEDI_PCL818=m
+CONFIG_COMEDI_RTI800=m
+CONFIG_COMEDI_RTI802=m
+CONFIG_COMEDI_II_PCI20KC=m
+CONFIG_COMEDI_DAQBOARD2000=m
index 5a658e3381ae9187fb5bd06b8cca5a2b376674e7..afd59d8d4f9692c8885eb4af3e2ac0df6d8f4106 100644 (file)
@@ -1,3 +1,5 @@
 
+define_bool CONFIG_COMEDI=m
+
 source comedi/Config.in