comedi.git
18 years agoNew driver from Everett Wang <everteq@sbcglobal.net>:
Frank Mori Hess [Thu, 21 Sep 2006 00:00:18 +0000 (00:00 +0000)]
New driver from Everett Wang <everteq@sbcglobal.net>:

We have written a comedi driver for sensoray 526
board. It is a very small PC104 format multifunction
card. We have used this driver for a while and it is
pretty stable.

18 years agoAdded GPL header.
Frank Mori Hess [Thu, 14 Sep 2006 17:52:06 +0000 (17:52 +0000)]
Added GPL header.

18 years agoAdded SDF_PACKED subdevice flag.
Frank Mori Hess [Mon, 11 Sep 2006 13:53:24 +0000 (13:53 +0000)]
Added SDF_PACKED subdevice flag.

18 years agoAdded SDF_SOFT_CALIBRATED subdevice flag.
Frank Mori Hess [Thu, 7 Sep 2006 14:44:33 +0000 (14:44 +0000)]
Added SDF_SOFT_CALIBRATED subdevice flag.

18 years agofixed small chance of attempting to free an unallocated irq.
Frank Mori Hess [Wed, 23 Aug 2006 14:15:25 +0000 (14:15 +0000)]
fixed small chance of attempting to free an unallocated irq.

18 years agoInstall modules into "comedi" subdir instead of "extra" subdir when
Frank Mori Hess [Wed, 23 Aug 2006 14:05:17 +0000 (14:05 +0000)]
Install modules into "comedi" subdir instead of "extra" subdir when
using kbuild.

18 years agoFixed irq argument to comedi_request_irq()
Frank Mori Hess [Wed, 23 Aug 2006 01:48:14 +0000 (01:48 +0000)]
Fixed irq argument to comedi_request_irq()

18 years agoRenamed CLASS_DEVICE_CREATE to COMEDI_CLASS_DEVICE_CREATE to avoid
Ian Abbott [Tue, 22 Aug 2006 16:26:34 +0000 (16:26 +0000)]
Renamed CLASS_DEVICE_CREATE to COMEDI_CLASS_DEVICE_CREATE to avoid
name clash with RTAI.

18 years agoFix for SuSE 9.0 2.4.21 kernel. Simplify jiffies_to_msecs() and
Ian Abbott [Mon, 21 Aug 2006 16:25:12 +0000 (16:25 +0000)]
Fix for SuSE 9.0 2.4.21 kernel.  Simplify jiffies_to_msecs() and
msecs_to_jiffies() to avoid preprocessor optimisations that depend on
HZ being a C constant expression.  Just round the result up to the nearest
integer.  The supported range of input values (avoiding arithmetic overflow)
is now less than that of the Linux versions of these functions for common
values of HZ, but that's unlikely to cause any problems (and if it does we
can fix it by making the functions more complicated).

18 years agom-series boards are unhappy if ai config fifo is empty, even when you
Frank Mori Hess [Thu, 17 Aug 2006 13:52:26 +0000 (13:52 +0000)]
m-series boards are unhappy if ai config fifo is empty, even when you
are bypassing it.

18 years ago0.7.73 changes r0_7_73
Frank Mori Hess [Wed, 16 Aug 2006 19:18:07 +0000 (19:18 +0000)]
0.7.73 changes

18 years agobump version for 0.7.73
Frank Mori Hess [Wed, 16 Aug 2006 19:09:50 +0000 (19:09 +0000)]
bump version for 0.7.73

18 years agoFixed max ai speed for 628x boards.
Frank Mori Hess [Wed, 16 Aug 2006 15:55:13 +0000 (15:55 +0000)]
Fixed max ai speed for 628x boards.

18 years agoAdded bit definitions for m-series ai chanlist configuration register.
Frank Mori Hess [Wed, 16 Aug 2006 15:54:50 +0000 (15:54 +0000)]
Added bit definitions for m-series ai chanlist configuration register.

18 years agoUse new m-series chanlist configuration for m-series boards, instead
Frank Mori Hess [Wed, 16 Aug 2006 15:22:27 +0000 (15:22 +0000)]
Use new m-series chanlist configuration for m-series boards, instead
of relying on backwards compatibility with e-series.

18 years agoFixed bytes_per_sample to return correct value in lsampl_t case, was
Frank Mori Hess [Wed, 16 Aug 2006 15:21:20 +0000 (15:21 +0000)]
Fixed bytes_per_sample to return correct value in lsampl_t case, was
broken due to confusion between subdev->flags and subdev->subdev_flags.

18 years agoFix calculation of bytes per scan for 18-bit analog input m-series
Frank Mori Hess [Tue, 15 Aug 2006 20:21:28 +0000 (20:21 +0000)]
Fix calculation of bytes per scan for 18-bit analog input m-series
boards when generating end-of-scan events.

18 years agoFix rounding up of buffer size to integer multiple of page size.
Frank Mori Hess [Tue, 15 Aug 2006 18:58:02 +0000 (18:58 +0000)]
Fix rounding up of buffer size to integer multiple of page size.

18 years agoBumped version for 0.7.72 r0_7_72
Frank Mori Hess [Mon, 14 Aug 2006 14:07:11 +0000 (14:07 +0000)]
Bumped version for 0.7.72

18 years agoAdded 0.7.72 changes, and fixed misspellings of Ian Abbott's name.
Frank Mori Hess [Mon, 14 Aug 2006 14:06:31 +0000 (14:06 +0000)]
Added 0.7.72 changes, and fixed misspellings of Ian Abbott's name.

18 years agoAdded new contributor.
Frank Mori Hess [Mon, 14 Aug 2006 14:05:42 +0000 (14:05 +0000)]
Added new contributor.

18 years agoAdded missing GPL headers.
Frank Mori Hess [Mon, 14 Aug 2006 13:45:03 +0000 (13:45 +0000)]
Added missing GPL headers.

18 years agoNew drivers from Pablo Mejia <pablo@cctechnol.com>:
Frank Mori Hess [Mon, 14 Aug 2006 02:58:52 +0000 (02:58 +0000)]
New drivers from Pablo Mejia <pablo@cctechnol.com>:

We have written basic drivers for two PC-104 boards we are using at work
and we would like to contribute them to the Comedi project.  The drivers
are for two Advanced Digital Logic (www.adlogic-pc104.com) boards:

104-AIO12-8
http://www.adlogic-pc104.com/products/peripherals/datasheets/104-AIO12-8.pdf

104-IIRO-16
http://www.adlogic-pc104.com/products/peripherals/datasheets/104-IIRO-16.pdf

The actual manufacturer is Acces I/O (http://accesio.com).  I believe
the same boards are also available from (http://kontron.com)

The drivers are
basic.  For instance no asynchronous operations are supported.  The
drivers do work (tested on Fedora Core 4 and 5).

18 years agoRestore the old COPYING and INSTALL files after they are overwritten by
Ian Abbott [Fri, 11 Aug 2006 17:28:59 +0000 (17:28 +0000)]
Restore the old COPYING and INSTALL files after they are overwritten by
autoreconf -i -f.

18 years agoUpdated 'Adding new drivers' section.
Ian Abbott [Fri, 11 Aug 2006 15:08:50 +0000 (15:08 +0000)]
Updated 'Adding new drivers' section.

18 years agoRemoved Documentation/Configure.help and Documentation/Configure.help.append
Ian Abbott [Fri, 11 Aug 2006 13:54:17 +0000 (13:54 +0000)]
Removed Documentation/Configure.help and Documentation/Configure.help.append

18 years agoMoved addi_data.c into EXTRA_DIST until the drivers are back in the fold.
Ian Abbott [Fri, 11 Aug 2006 13:53:00 +0000 (13:53 +0000)]
Moved addi_data.c into EXTRA_DIST until the drivers are back in the fold.

18 years agoSkipped obsolete tests and added some new ones.
Ian Abbott [Fri, 11 Aug 2006 13:47:10 +0000 (13:47 +0000)]
Skipped obsolete tests and added some new ones.

18 years agoCorrected a printk format string that I forgot to update in previous commit
Ian Abbott [Fri, 11 Aug 2006 12:06:56 +0000 (12:06 +0000)]
Corrected a printk format string that I forgot to update in previous commit
of das6402.c.

18 years agoAdd 'Contributors' to EXTRA_DIST.
Ian Abbott [Fri, 11 Aug 2006 11:55:09 +0000 (11:55 +0000)]
Add 'Contributors' to EXTRA_DIST.

18 years agoRemoved obsolete include/linux/kern_compat.h file.
Ian Abbott [Fri, 11 Aug 2006 11:42:45 +0000 (11:42 +0000)]
Removed obsolete include/linux/kern_compat.h file.

18 years agoDeleted obsolete Config.in files.
Ian Abbott [Fri, 11 Aug 2006 11:32:32 +0000 (11:32 +0000)]
Deleted obsolete Config.in files.

18 years agoAdd Kbuild to EXTRA_DIST.
Ian Abbott [Fri, 11 Aug 2006 11:26:20 +0000 (11:26 +0000)]
Add Kbuild to EXTRA_DIST.

18 years agoAdded some kernel compatability include files to EXTRA_DIST.
Ian Abbott [Fri, 11 Aug 2006 11:08:27 +0000 (11:08 +0000)]
Added some kernel compatability include files to EXTRA_DIST.

18 years agoAdded missing include for linux/version.h
Frank Mori Hess [Tue, 8 Aug 2006 14:47:55 +0000 (14:47 +0000)]
Added missing include for linux/version.h

18 years agoAdded length checks for data array of INSN_CONFIG_ALT_SOURCE and
Frank Mori Hess [Tue, 8 Aug 2006 14:40:26 +0000 (14:40 +0000)]
Added length checks for data array of INSN_CONFIG_ALT_SOURCE and
INSN_CONFIG_PWM_OUTPUT

18 years agoUsed pci_name() when printing PCI device location.
Ian Abbott [Mon, 7 Aug 2006 18:02:38 +0000 (18:02 +0000)]
Used pci_name() when printing PCI device location.

18 years agoAdd compatibility function pci_name(pci_dev) for kernel < 2.4.22. It
Ian Abbott [Mon, 7 Aug 2006 18:01:40 +0000 (18:01 +0000)]
Add compatibility function pci_name(pci_dev) for kernel < 2.4.22.  It
returns the pci device name as a char * (e.g. "00:09.0" for bus 0, slot 9,
func 0, or "0000:00:09.0" for recent kernels that include the PCI domain
in the string).

18 years agoCleaned up resource types. Used unsigned int for IRQs. Used unsigned long
Ian Abbott [Mon, 7 Aug 2006 17:33:24 +0000 (17:33 +0000)]
Cleaned up resource types.  Used unsigned int for IRQs.  Used unsigned long
for I/O ports.  Used resource_size_t for physical memory regions.

18 years agoAdded linux/types.h compatibility header.
Ian Abbott [Mon, 7 Aug 2006 17:25:18 +0000 (17:25 +0000)]
Added linux/types.h compatibility header.
typedefs 'resource_size_t' as unsigned long if kernel < 2.6.18.

18 years agoDon't free IRQ if it wasn't requested successfully.
Ian Abbott [Mon, 7 Aug 2006 15:57:14 +0000 (15:57 +0000)]
Don't free IRQ if it wasn't requested successfully.

18 years agoDon't free the IRQ if it wasn't allocated.
Ian Abbott [Mon, 7 Aug 2006 15:52:03 +0000 (15:52 +0000)]
Don't free the IRQ if it wasn't allocated.

18 years agoifdef'ed out incomplete irq stuff from ni_daq_dio24.c
Ian Abbott [Mon, 7 Aug 2006 15:32:19 +0000 (15:32 +0000)]
ifdef'ed out incomplete irq stuff from ni_daq_dio24.c

18 years agoCheck I/O region was allocated before releasing it.
Ian Abbott [Mon, 7 Aug 2006 14:09:26 +0000 (14:09 +0000)]
Check I/O region was allocated before releasing it.

18 years agoRequest resources before using them.
Ian Abbott [Mon, 7 Aug 2006 13:42:46 +0000 (13:42 +0000)]
Request resources before using them.

18 years agoRemove Modules.symvers when cleaning as it can cause subsequent builds
Ian Abbott [Mon, 7 Aug 2006 10:34:30 +0000 (10:34 +0000)]
Remove Modules.symvers when cleaning as it can cause subsequent builds
for another kernel to fail.

18 years agoAdded 0.7.71 changes. r0_7_71
Frank Mori Hess [Tue, 1 Aug 2006 02:56:12 +0000 (02:56 +0000)]
Added 0.7.71 changes.

18 years agoversion bump
Frank Mori Hess [Tue, 1 Aug 2006 01:47:17 +0000 (01:47 +0000)]
version bump

18 years agoFixed compiler warnings about unused variable in the interrupt handler
Ian Abbott [Mon, 31 Jul 2006 13:14:33 +0000 (13:14 +0000)]
Fixed compiler warnings about unused variable in the interrupt handler
when building for 2.4 kernel.

18 years agoset mite_phys_addr to zero after releasing io regions
Frank Mori Hess [Tue, 18 Jul 2006 20:51:54 +0000 (20:51 +0000)]
set mite_phys_addr to zero after releasing io regions

18 years agoturn pcmcia support on or off by default depending on whether
Frank Mori Hess [Tue, 18 Jul 2006 02:31:50 +0000 (02:31 +0000)]
turn pcmcia support on or off by default depending on whether
the kernel's pcmcia_driver struct has a probe function pointer.

18 years agoAdded check for length of INSN_CONFIG_SET_RTSI_CLOCK_MODE,
Frank Mori Hess [Wed, 12 Jul 2006 02:17:50 +0000 (02:17 +0000)]
Added check for length of INSN_CONFIG_SET_RTSI_CLOCK_MODE,
(David MacMahon <davidm@astro.berkeley.edu>)

18 years agoFixed number of channels in rtsi subdevice
Frank Mori Hess [Wed, 12 Jul 2006 02:16:57 +0000 (02:16 +0000)]
Fixed number of channels in rtsi subdevice
(David MacMahon <davidm@astro.berkeley.edu>)

18 years agoExtend automatic enabling of Kbuild mechanism back as far as kernel 2.6.10
Ian Abbott [Mon, 10 Jul 2006 15:39:48 +0000 (15:39 +0000)]
Extend automatic enabling of Kbuild mechanism back as far as kernel 2.6.10
(which is the first Kbuild enabled kernel supported by Comedi) and also
enable Kbuild mechanism if separate kernel source and build directories
are in use.

It ought to be possible to use the Kbuild mechanism back as far as kernel
2.6.8 by checking for the script/mkmakefile file (that's what I tried first,
actually), but use of the Kbuild mechanism for 2.6.8 and 2.6.9 is currently
incompatible with Comedi's build mechanism (I tried it).

18 years agoReplaced AC_PATH_PROG with AC_PATH_TOOL when detecting the 'strip' program.
Ian Abbott [Mon, 10 Jul 2006 10:06:34 +0000 (10:06 +0000)]
Replaced AC_PATH_PROG with AC_PATH_TOOL when detecting the 'strip' program.
This is so the correct 'strip' is used when cross-compiling.

18 years agoAvoid using AC_RUN_IFELSE to check the kernel major.minor version, as it
Ian Abbott [Thu, 6 Jul 2006 16:06:32 +0000 (16:06 +0000)]
Avoid using AC_RUN_IFELSE to check the kernel major.minor version, as it
doesn't work when cross-compiling.

Every kernel Makefile I've looked at (at least for 2.4 and 2.6, including
those for separate kernel build directories) includes the "VERSION = x" and
"PATCHLEVEL = y" lines, so use 'sed' to extract the information from those
lines.

18 years agoApplied patch from Ben Gardiner (blg at mast dot queensu dot ca):
Ian Abbott [Wed, 5 Jul 2006 11:30:26 +0000 (11:30 +0000)]
Applied patch from Ben Gardiner (blg at mast dot queensu dot ca):

It appears as though the changes were applied only to configure.ac.

In the current state, setting --disable-rtai will not avoid the check for the
presence of an rtai directory (line 16 in m4/rtai.m4) if the user has an
adeos/ipipe enabled kernel.

In the situation where the users has an adeos/ipipe enabled kernel, and a
non-standard rtai directory and does not wish to build comedi with rtai support
supplying --disable-rtai is not sufficient to complete the configuration script
without error. An additional --with-rtaidir=/non/standard/dir/ must be
specified. This seems counter-intuitive since the user has already supplied the
 --disable-rtai option.

18 years agoRemoved MODVERDIR=${tmpdir} when checking CFLAGS, as recent kernel Makefiles
Ian Abbott [Wed, 5 Jul 2006 09:41:57 +0000 (09:41 +0000)]
Removed MODVERDIR=${tmpdir} when checking CFLAGS, as recent kernel Makefiles
delete that directory or everything in it.  Let the kernel Makefile set
MODVERDIR by itself.

18 years agoDetect Kbuild in Linux kernel source directory, and use it to
Frank Mori Hess [Wed, 28 Jun 2006 01:00:55 +0000 (01:00 +0000)]
Detect Kbuild in Linux kernel source directory, and use it to
automatically decide whether to use Kbuild to build modules.
--enable-kbuild can still be used to override.

18 years agoFix gcc-4.1 warnings (undefined macro in #if).
Ian Abbott [Wed, 21 Jun 2006 16:31:54 +0000 (16:31 +0000)]
Fix gcc-4.1 warnings (undefined macro in #if).

18 years agoFix gcc-4.1 warnings (uninitialized variables).
Ian Abbott [Wed, 21 Jun 2006 16:30:06 +0000 (16:30 +0000)]
Fix gcc-4.1 warnings (uninitialized variables).

18 years agoFixed gcc-4.1 warnings (operation may be undefined).
Ian Abbott [Wed, 21 Jun 2006 16:28:36 +0000 (16:28 +0000)]
Fixed gcc-4.1 warnings (operation may be undefined).

18 years agoFix gcc-4.1 warnings (unused variable, printk format specifier mismatch).
Ian Abbott [Wed, 21 Jun 2006 16:27:12 +0000 (16:27 +0000)]
Fix gcc-4.1 warnings (unused variable, printk format specifier mismatch).

18 years agoFix gcc-4.1 warnings (uninitialized variables).
Ian Abbott [Wed, 21 Jun 2006 16:09:07 +0000 (16:09 +0000)]
Fix gcc-4.1 warnings (uninitialized variables).

18 years agoFix gcc-4.1 warnings (uninitialized variable). The variable is question
Ian Abbott [Wed, 21 Jun 2006 16:07:01 +0000 (16:07 +0000)]
Fix gcc-4.1 warnings (uninitialized variable).  The variable is question
has been removed, as it is only used on an unreachable path.  Also, don't
bother calling pcmcia_release_window() as there is no matching call to
pcmcia_request_window().

18 years agoMade a few updates to install instructions.
Frank Mori Hess [Tue, 20 Jun 2006 01:14:01 +0000 (01:14 +0000)]
Made a few updates to install instructions.

18 years agoMarked some initialization/cleanup functions with __init/__exit.
Frank Mori Hess [Tue, 20 Jun 2006 01:05:07 +0000 (01:05 +0000)]
Marked some initialization/cleanup functions with __init/__exit.

18 years agoAdded some missing pcmcia device tables.
Frank Mori Hess [Tue, 20 Jun 2006 00:57:15 +0000 (00:57 +0000)]
Added some missing pcmcia device tables.

18 years agoremoved obsolete file.
Frank Mori Hess [Tue, 20 Jun 2006 00:29:05 +0000 (00:29 +0000)]
removed obsolete file.

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott):
Frank Mori Hess [Mon, 19 Jun 2006 01:21:38 +0000 (01:21 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott):

The pcm3724 driver is still using the deprecated check_region() call.  Also, it
doesn't check if things were allocated properly when cleaning up in the detach
routine.

The attached patch fixes it.

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott):
Frank Mori Hess [Mon, 19 Jun 2006 01:19:12 +0000 (01:19 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott):

The following driver files call ioremap() but do not check if the return value
is NULL:

cb_pcidas64.c
daqboard2000.c
dt3000.c
gsc_hpdi.c
me_daq.c
mite.c
rtd520.c
s626.c

The attached patch takes appropriate action if the return value from ioremap()
is NULL.  (In some cases, this also required the addition of a flag
'got_regions' to the device private data structure to record whether the PCI
regions need to be released.)

The patch also removes the antiquated requirement of the address passed to
ioremap() needing to be on a page boundary.

18 years agopatch from Ian Abbott <abbotti@mev.co.uk>:
Frank Mori Hess [Mon, 19 Jun 2006 01:12:37 +0000 (01:12 +0000)]
patch from Ian Abbott <abbotti@mev.co.uk>:

I have a patch that changes the adl_pci9118 and adv_pci1710 drivers.  It
mimics their old behaviour of searching for an unused card, rather than
using the first card it finds.  I didn't need to change the cb_pcidas
driver after all as it wasn't using the amcc_s5933 driver, only some
macros from amcc_s5933.h.

The patch also removes the amcc_s5933 module from the Makefile.am and
Kbuild files and removes the function declarations, etc., from the
amcc_s5933.h file.

18 years agoremove obsolete pcmcia stuff (irq_list and IRQInfo2)
Frank Mori Hess [Mon, 12 Jun 2006 01:15:03 +0000 (01:15 +0000)]
remove obsolete pcmcia stuff (irq_list and IRQInfo2)

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott):
Frank Mori Hess [Mon, 12 Jun 2006 01:10:38 +0000 (01:10 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott):

The (few) module parameters used by comedi (for debugging and for specifying
irq_mask or irq_list for some PCMCIA drivers) haven't worked since kernel
2.6.11. If you try and specify a module parameter when loading a module, the
module fails to load due to missing symbols.

I have implemented a linux/moduleparam.h compatibility header using code
borrowed from the 2.4.25 kernel with some additions, and a patch to use it.

The module_param() macro has been implemented for 2.4 kernels.  Unfortunately,
it is not possible to implement module_param_array() for 2.4 kernels, so I
implemented a similar MODULE_PARAM_ARRAY() macro instead.  The third parameter
is different, being the length of the array rather than a (optionally null)
pointer to a variable set to the number of elements of the array that have been
filled in (that information is not available in 2.4 so I thought it best to omit
it entirely).  There is one restriction on the "length of array" parameter; it
has to be a decimal number (or a macro that expands to a decimal number), not a
fancy C expression, otherwise insmod won't parse it properly (if at all!).

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott):
Frank Mori Hess [Mon, 12 Jun 2006 01:02:12 +0000 (01:02 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott):

Sometimes USB support breaks due to API changes in 2.6 or vendor patches (e.g.
Fedora Core 5's 2.6.15 kernel), so it would be useful to have a configure option
to disable it, like there is for PCMCIA.

18 years agoMore pci fixes.
Frank Mori Hess [Sun, 11 Jun 2006 23:33:28 +0000 (23:33 +0000)]
More pci fixes.

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott). Note, I am planning
Frank Mori Hess [Sun, 11 Jun 2006 21:34:21 +0000 (21:34 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott).  Note, I am planning
to revert/alter parts of this patch shortly, I am commiting
the original patch so it is clear what I changed.

I've been through the PCI code of all the drivers (apart from the ones in the
addi_data directory) to apply the following rules:

1. Call pci_enable_device before looking at resources.  (I didn't do this for
the card list display code in amcc_s5933.c as it's only for debugging; it might
display bogus values on some platforms.)

2. Call pci_request_regions to request all PCI I/O and memory areas.  (Some
drivers were calling request_region on a subset of the valid regions, but
pci_request_regions is preferred.  Some drivers didn't bother requesting regions
and just used them anyway.)

3. If 1 and 2 succeeded, then when done with the device (on comedi detach), call
pci_release_regions and pci_disable_device.  Note that pci_disable_device is not
called if rule 2 failed, because that indicates that the device is being used by
something else (most likely another comedi device).

I've fixed some brokenness along the way, but the amcc_s5933 driver will still
break if more than one client driver uses it (but at least it now works if more
than one device is using that client driver).  To fix it properly will require
separate device lists for each vendor ID and maybe a reference count for each of
those lists - a job for another day!

More brokenness in the adv_pci_dio driver has been fixed. It tried to be clever
by keeping a list of PCI devices in use, but its list handling code was
completely broken.

I changed the s626 driver to use pci_get_device and pci_put_device instead of
the old pci_find_device.

I've checked over the changes twice, but am not able to test all the drivers of
course, so I might have introduced an odd bug or two, but I hope not!

18 years agoGot rid of obsolete IRQ_INFO2_VALID
Frank Mori Hess [Sun, 11 Jun 2006 21:05:57 +0000 (21:05 +0000)]
Got rid of obsolete IRQ_INFO2_VALID

18 years agogot rid of useless irq_mask variable.
Frank Mori Hess [Sun, 11 Jun 2006 21:02:52 +0000 (21:02 +0000)]
got rid of useless irq_mask variable.

18 years agoDropped support for pcmcia on kernels older than 2.6.16, on the
Frank Mori Hess [Sun, 11 Jun 2006 19:36:10 +0000 (19:36 +0000)]
Dropped support for pcmcia on kernels older than 2.6.16, on the
basis that it would be too burdensome to expect people adding new
pcmcia drivers to make them work on all the varying pcmcia
interfaces provided by different kernels.

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott) which ports pcmcia
Frank Mori Hess [Sun, 11 Jun 2006 18:52:52 +0000 (18:52 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott) which ports pcmcia
drivers to 2.6.16 api.  It also deals with the dropping of the "owner"
member from the usb driver struct in 2.6.16.
I will shortly drop support for pcmcia
on kernels older than 2.6.16.

18 years agoCompile fix when building with kbuild from Jan Gukelberger <g.u.g.i@gmx.de>
Frank Mori Hess [Sat, 6 May 2006 15:43:46 +0000 (15:43 +0000)]
Compile fix when building with kbuild from Jan Gukelberger <g.u.g.i@gmx.de>

18 years agoPatch from caleb@aei-tech.com (Caleb Tennis), which implements checks
Frank Mori Hess [Tue, 2 May 2006 02:04:56 +0000 (02:04 +0000)]
Patch from caleb@aei-tech.com (Caleb Tennis), which implements checks
for length of INSN_CONFIG_SERIAL_CLOCK and INSN_CONFIG_BIDIRECTIONAL_DATA.

18 years agoAdded new driver from sutashu@gmail.com (Stanislaw Raczynski)
Frank Mori Hess [Tue, 2 May 2006 02:01:09 +0000 (02:01 +0000)]
Added new driver from sutashu@gmail.com (Stanislaw Raczynski)

18 years agoAdded new drivers to build
Frank Mori Hess [Tue, 2 May 2006 01:56:32 +0000 (01:56 +0000)]
Added new drivers to build

18 years agoReplaced pci_for_each_dev() with a for loop and pci_get_device()
Frank Mori Hess [Tue, 2 May 2006 01:56:08 +0000 (01:56 +0000)]
Replaced pci_for_each_dev() with a for loop and pci_get_device()

18 years agoFixed some compile warnings, and replaced pci_for_each_dev with
Frank Mori Hess [Tue, 2 May 2006 01:52:34 +0000 (01:52 +0000)]
Fixed some compile warnings, and replaced pci_for_each_dev with
a for loop using pci_get_device().

18 years agoNew drivers from mike@mikelachaine.ca (mikelachaine)
Frank Mori Hess [Tue, 2 May 2006 01:46:54 +0000 (01:46 +0000)]
New drivers from mike@mikelachaine.ca (mikelachaine)

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott) which adds missing
Frank Mori Hess [Tue, 2 May 2006 01:37:05 +0000 (01:37 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott) which adds missing
pcm3724_ko_SOURCES

18 years agoUpdate to documentation comments from terry1@beam.ltd.uk (Terry Barnaby)
Frank Mori Hess [Tue, 2 May 2006 01:11:03 +0000 (01:11 +0000)]
Update to documentation comments from terry1@beam.ltd.uk (Terry Barnaby)

18 years agoPatch from terry1@beam.ltd.uk (Terry Barnaby):
Frank Mori Hess [Wed, 19 Apr 2006 02:10:10 +0000 (02:10 +0000)]
Patch from terry1@beam.ltd.uk (Terry Barnaby):

There was a bug in the PCI-6143 code in the ni_pcimio driver which stopped
the device being set to high sampling rates.
The enclosed patch fixes this.

18 years agoAdded option to force disabling of RTAI support, based on patch from
Frank Mori Hess [Wed, 19 Apr 2006 02:07:16 +0000 (02:07 +0000)]
Added option to force disabling of RTAI support, based on patch from
blg@mast.queensu.ca (Ben Gardiner).

18 years agoPatch from calin@ajvar.org (Calin A. Culianu):
Frank Mori Hess [Wed, 19 Apr 2006 00:10:22 +0000 (00:10 +0000)]
Patch from calin@ajvar.org (Calin A. Culianu):

I modified the driver to more correctly reflect the physical connectors on the
PCMUIO board.  Basically rather than have 32-channel subdevices, I am making the
board use 24-channel subdevices.

The reason is simple: The board has 25-pin connectors.  Either two of them for
the 48-channel version or 4 of them for the 96-channel version.  Anyway, I made
this driver create 1 subdevice per connector.  It turns out in practice it is
more useful to have 4 subdevices with 24 channels each than it is to have 3
subdevices with 32 channels -- since you have to do funny math in your head to
figure out what channel 7 on subdevice 2 is.  By having a 1-to-1 association
between subdevice and physical connector, it's much easier to work with.

18 years agoAdded note about state of m-series support.
Frank Mori Hess [Tue, 21 Mar 2006 22:40:33 +0000 (22:40 +0000)]
Added note about state of m-series support.

18 years agoAdded warning message to encourage checks of config insn data lengths.
Frank Mori Hess [Thu, 9 Mar 2006 13:34:34 +0000 (13:34 +0000)]
Added warning message to encourage checks of config insn data lengths.

18 years agoAdded INSN_CONFIG_GET_PWM_OUTPUT config insn.
Frank Mori Hess [Tue, 7 Mar 2006 02:44:34 +0000 (02:44 +0000)]
Added INSN_CONFIG_GET_PWM_OUTPUT config insn.

18 years agoChanged INSN_CONFIG_PWM_OUTPUT so the rounding mode for the up and
Frank Mori Hess [Tue, 7 Mar 2006 02:37:01 +0000 (02:37 +0000)]
Changed INSN_CONFIG_PWM_OUTPUT so the rounding mode for the up and
down times can be set independently.

18 years agoPatch from terry1@beam.ltd.uk (Terry Barnaby):
Frank Mori Hess [Fri, 3 Mar 2006 00:58:47 +0000 (00:58 +0000)]
Patch from terry1@beam.ltd.uk (Terry Barnaby):

This patch adds support to comedi for the NI PCI-6143 DAQ card.
It also adds support for the NI RTSI trigger bus used to synchronise multiple
cards to any ni_pcimio supported card.
The patch also requires a patch to the comedilib to support the RTSI.
More info on the patch is at: http://www.beam.org.uk/opensource/pci-6143/

18 years agoRemoved stray quotes from clean and install kbuild targets
Frank Mori Hess [Thu, 2 Mar 2006 01:58:54 +0000 (01:58 +0000)]
Removed stray quotes from clean and install kbuild targets

18 years agoPatch from abbotti@mev.co.uk (Ian Abbott):
Frank Mori Hess [Thu, 23 Feb 2006 00:02:43 +0000 (00:02 +0000)]
Patch from abbotti@mev.co.uk (Ian Abbott):

2.6.13 introduced device ID tables for PCMCIA devices.  They seem to be required
to get automatic module loading to work for PCMCIA on some newer distros.

I've patched ni_mio_cs.c and ni_labpc_cs.c to include the device ID tables (only
for kernel version 2.6.13 upwards).  I don't have enough information to patch
the other PCMCIA drivers.