Frank Mori Hess [Wed, 24 Oct 2007 18:14:55 +0000 (18:14 +0000)]
Prevent glitches when transitioning from static control of dio lines
to waveform output.
Ian Abbott [Wed, 24 Oct 2007 12:37:39 +0000 (12:37 +0000)]
Allocate non-DMA buffer pages using __get_free_page(). (Use of virt_to_page
on vmalloc'd memory was incorrect and failed on x86_64 for example.)
Clean up fully on allocation failure.
Ian Abbott [Mon, 22 Oct 2007 14:59:55 +0000 (14:59 +0000)]
Check dev->attached in interrupt routine.
Ian Abbott [Mon, 22 Oct 2007 12:19:19 +0000 (12:19 +0000)]
Some 64-bit fixes.
Frank Mori Hess [Thu, 18 Oct 2007 21:50:25 +0000 (21:50 +0000)]
Fix from Torben Mikael Hansen <comedi_ns@linhard.dk> for crash probably
caused by my recent porting work.
Frank Mori Hess [Thu, 18 Oct 2007 21:48:55 +0000 (21:48 +0000)]
Patch from Torben Mikael Hansen <comedi_ns@linhard.dk> which adds device
id for PCM-DAS16s/16.
Frank Mori Hess [Thu, 18 Oct 2007 21:40:34 +0000 (21:40 +0000)]
Got rid of fragile checks of specific device ids in mite.c (fixed problems
with pxi-6602 support). Added device id for pxi-6608. Made sure the
"window base size register" is disabled when using the "window base size
register 1", since it causes problems if both are enabled simultaneously.
Ian Abbott [Thu, 18 Oct 2007 18:01:45 +0000 (18:01 +0000)]
Some changes to deal with interrupts before device fully attached.
Frank Mori Hess [Wed, 17 Oct 2007 20:01:56 +0000 (20:01 +0000)]
Added pci device id for pxi-6602.
Ian Abbott [Wed, 17 Oct 2007 15:26:59 +0000 (15:26 +0000)]
Replaced kmalloc/memset sequence with kzalloc or kcalloc.
Ian Abbott [Wed, 17 Oct 2007 15:24:40 +0000 (15:24 +0000)]
Replaced kmalloc/memset sequence with kzalloc or kcalloc.
Removed call to memset after alloc_subdevices to avoid clobbering spinlocks.
Frank Mori Hess [Tue, 16 Oct 2007 19:59:32 +0000 (19:59 +0000)]
Added support for scan_begin_src = TRIG_EXT on analog output commands.
Frank Mori Hess [Tue, 16 Oct 2007 02:21:02 +0000 (02:21 +0000)]
Ported to linux 2.6.23 pcmcia interface. Compiles, but otherwise untested.
Frank Mori Hess [Tue, 16 Oct 2007 02:09:09 +0000 (02:09 +0000)]
Ported to linux 2.6.23 pcmcia interface. Compiles, but otherwise untested.
Frank Mori Hess [Tue, 16 Oct 2007 00:35:23 +0000 (00:35 +0000)]
Ported to linux 2.6.23 pcmcia interface. Compiles, but otherwise untested.
Frank Mori Hess [Mon, 15 Oct 2007 01:15:09 +0000 (01:15 +0000)]
Updated to linux 2.6.23 pcmcia interface. Compiles, but untested.
Frank Mori Hess [Mon, 15 Oct 2007 01:02:12 +0000 (01:02 +0000)]
Updated to 2.6.23 pcmcia interface. Compiles, otherwise untested.
Frank Mori Hess [Mon, 15 Oct 2007 00:43:18 +0000 (00:43 +0000)]
More linux 2.6.23 pcmcia fixes.
Frank Mori Hess [Mon, 15 Oct 2007 00:08:27 +0000 (00:08 +0000)]
Updated to 2.6.23 kernel pcmcia interface. It compiles now, don't know
if it actually works.
Frank Mori Hess [Fri, 12 Oct 2007 19:04:43 +0000 (19:04 +0000)]
Pruned obsolete lseek code.
Ian Abbott [Thu, 11 Oct 2007 14:23:09 +0000 (14:23 +0000)]
Added regshift parameter after base address in i8254_load(), i8254_mm_load(),
i8254_read(), i8254_mm_read(), i8254_write(), i8254_mm_write(),
i8254_set_mode(), i8254_mm_set_mode(), i8254_status(), i8254_mm_status().
The offsets to the four 8253/8254 registers will be shifted left by this
amount. This is to cater for cards where the four registers do not occupy
consecutive bytes.
Frank Mori Hess [Sun, 30 Sep 2007 14:42:11 +0000 (14:42 +0000)]
Support DESTDIR for module install/uninstall.
Frank Mori Hess [Sat, 29 Sep 2007 00:01:47 +0000 (00:01 +0000)]
Fixed use of ai channels >= 64 on 6225. Based on patch from
Ingmar Schoegl <ischoegl@mail.utexas.edu>.
Frank Mori Hess [Fri, 28 Sep 2007 18:40:55 +0000 (18:40 +0000)]
Eliminated the possibility of the ao dma channel getting allocated
more than once, when ni_ao_inttrig gets called a second time after
returning an error.
Ian Abbott [Fri, 14 Sep 2007 12:33:47 +0000 (12:33 +0000)]
Add slab.h compatibility header.
Ian Abbott [Fri, 14 Sep 2007 12:32:49 +0000 (12:32 +0000)]
Add kzalloc and kcalloc kernel compatibility functions.
Ian Abbott [Fri, 7 Sep 2007 17:04:27 +0000 (17:04 +0000)]
Corrected calculation of board name offset. Fixes segmentation violation
when reading /proc/comedi for comedi drivers that have num_names > 1.
Frank Mori Hess [Thu, 6 Sep 2007 03:22:51 +0000 (03:22 +0000)]
Change $(GREP) to $(EGREP), since we really only do a AC_PROG_EGREP
in configure, and apparently GREP isn't always defined, as reported
by Anders Blomdell.
Frank Mori Hess [Wed, 5 Sep 2007 12:37:43 +0000 (12:37 +0000)]
Added files I forgot to cvs add from patch by
Anders Blomdell <anders.blomdell@control.lth.se>
Frank Mori Hess [Tue, 4 Sep 2007 03:22:08 +0000 (03:22 +0000)]
Patch from Anders Blomdell <anders.blomdell@control.lth.se> which makes
some of the addi-data drivers useable:
Since I need to use a driver for apci3106, I guess that I'll have to do some
cleanup of the addi-data drivers, but after downloading the drivers from
addi-data (http://www.addi-data.com/treiber/linux/comedi/comedi_Driver.tar.gz,
v_1.13), and comparing them with cvs, I'm at a loss about which drivers to use
as a starting point. I have enclosed a [tentative] patch against CVS
(patch.addi-data.
20070828), that seems to work with apci3106-16-4. There is also
the patch against the CVS from late 2005 (patch.addi.2005-11-11) that I sent to
weber.serge@addi-data.com, asking him to do additional cleanup and then submit
it to the CVS maintainers, obviously this never happened :-( (and hence the last
batch of cards was of another brand).
Frank Mori Hess [Fri, 24 Aug 2007 18:44:38 +0000 (18:44 +0000)]
Fixed some calculations of number of bytes per scan when doing
digital io commands.
Ian Abbott [Tue, 21 Aug 2007 09:47:21 +0000 (09:47 +0000)]
Sanity check drivers setting do_cmd without setting do_cmdtest.
Frank Mori Hess [Fri, 17 Aug 2007 20:54:52 +0000 (20:54 +0000)]
read acknowledges irq bit does have an effect on a 6601.
Frank Mori Hess [Fri, 17 Aug 2007 19:56:37 +0000 (19:56 +0000)]
Added interrupt handler and enabled interrupts. Added initialization of output routing for pfi pins to reasonable defaults.
Frank Mori Hess [Fri, 17 Aug 2007 19:53:39 +0000 (19:53 +0000)]
Fixed missing initialization of some counter registers (and their software copies). Made ni_tio_cancel() safe to call in interrupt context without possibly corrupting software copies of registers.
Frank Mori Hess [Fri, 17 Aug 2007 19:49:48 +0000 (19:49 +0000)]
Added enum for setting output routing of pfi pins on 660x boards.
Frank Mori Hess [Thu, 16 Aug 2007 21:52:43 +0000 (21:52 +0000)]
Fixed failure to unlock spinlock after locking it. Fixed possibly
bogus perm_stale_data result from ni_tio_acknowledge_and_confirm().
Added (unused) support for accessing joint status register 1.
Frank Mori Hess [Wed, 15 Aug 2007 21:22:49 +0000 (21:22 +0000)]
Moved some interrupt enable/disable and interrupt handling
stuff from client drivers into ni_tio.c.
ni_stc.h:
Added some stuff for correlated digital output waveforms
that I missed in earlier commit.
ni_660x.c:
Added beginnings of support for buffered input counting (untested,
definitely doesn't work yet due to empty interrupt handler).
Added INSN_CONFIG_SET/GET_ROUTING support,
to allow switching of output signals between
counter outputs and static digital output. Fixed channel mix-ups
on input/output selection for static dio. Fixed static digital
output to work on full 32 bits. Replaced some preprocessor macros
with inline functions.
Frank Mori Hess [Wed, 15 Aug 2007 21:20:57 +0000 (21:20 +0000)]
Added comment describing purpose of comedi_set_hw_dev().
Frank Mori Hess [Mon, 13 Aug 2007 21:17:20 +0000 (21:17 +0000)]
Added support for dio write commands with NI M-series.
Frank Mori Hess [Mon, 13 Aug 2007 15:12:27 +0000 (15:12 +0000)]
Disable all of a channel's interrupts when it is released.
Frank Mori Hess [Mon, 13 Aug 2007 15:05:53 +0000 (15:05 +0000)]
NULL inttrig in do_become_nonbusy().
Frank Mori Hess [Thu, 9 Aug 2007 20:15:30 +0000 (20:15 +0000)]
Check for stale data error on counter input command if reloading
on gate is enabled.
Frank Mori Hess [Thu, 9 Aug 2007 19:17:57 +0000 (19:17 +0000)]
Added bit definitions for NI m-series correlated dio registers.
Frank Mori Hess [Thu, 9 Aug 2007 17:55:01 +0000 (17:55 +0000)]
Added definitions for possible scan_begin_srcs on NI m-series
with upcoming correlated dio command support.
Frank Mori Hess [Thu, 9 Aug 2007 13:03:37 +0000 (13:03 +0000)]
NI counters don't really support stop_src TRIG_COUNT.
Frank Mori Hess [Thu, 9 Aug 2007 12:58:26 +0000 (12:58 +0000)]
Made mite_done() update done status by reading status register.
Frank Mori Hess [Thu, 9 Aug 2007 00:22:00 +0000 (00:22 +0000)]
We need to use dma_free_coherent() instead of kfree() in mite_free_ring()
now.
Frank Mori Hess [Tue, 7 Aug 2007 20:06:29 +0000 (20:06 +0000)]
Set SRF_RUNNING and SRF_ERROR together atomically in comedi_event().
Frank Mori Hess [Tue, 7 Aug 2007 19:04:01 +0000 (19:04 +0000)]
Ported allocation of mite dma rings to modern kernel dma api.
Frank Mori Hess [Tue, 7 Aug 2007 16:22:22 +0000 (16:22 +0000)]
Set missing SDF_LSAMPL on NI GPCT subdevices. Made command
test for gpct command actually check something. Made
some of the command sources for gpct command actually
have an effect.
Ian Abbott [Mon, 6 Aug 2007 11:19:19 +0000 (11:19 +0000)]
Corrected pathname in file header comment.
Ian Abbott [Mon, 6 Aug 2007 11:05:41 +0000 (11:05 +0000)]
Moved description of configuration options so it will appear in drivers.txt
Ian Abbott [Mon, 6 Aug 2007 10:47:40 +0000 (10:47 +0000)]
Stripped file extension from 'Driver:' line. Most had .o, some had .ko or .c.
Also corrected pathnames in file header comments.
Ian Abbott [Mon, 6 Aug 2007 10:07:16 +0000 (10:07 +0000)]
Changed description line.
Frank Mori Hess [Thu, 2 Aug 2007 14:06:36 +0000 (14:06 +0000)]
Got rid of use of $(builddir), since it isn't defined by some versions
of auto* tools. Tweaked some obscure rules (used some gnu make extensions,
but I don't really care).
Frank Mori Hess [Wed, 1 Aug 2007 19:46:36 +0000 (19:46 +0000)]
Autogenerated ChangeLog with "cvs2cl -t"
Frank Mori Hess [Wed, 1 Aug 2007 19:41:39 +0000 (19:41 +0000)]
Fix problems apparently caused by builddir not being set by older versions
of auto* tools.
Frank Mori Hess [Wed, 1 Aug 2007 19:10:52 +0000 (19:10 +0000)]
Fixed "make uninstall". "make distcheck" passes now.
Ian Abbott [Wed, 1 Aug 2007 17:33:37 +0000 (17:33 +0000)]
Removed third parameter of calls to comedi_event().
Frank Mori Hess [Wed, 1 Aug 2007 17:21:59 +0000 (17:21 +0000)]
Added some missing headers to distribution tarball, bumped version for
upcoming release.
Frank Mori Hess [Wed, 1 Aug 2007 17:19:51 +0000 (17:19 +0000)]
Have "make install" respect configure prefix.
Frank Mori Hess [Wed, 1 Aug 2007 15:16:53 +0000 (15:16 +0000)]
Fixed test for rpm program.
Frank Mori Hess [Wed, 1 Aug 2007 14:55:19 +0000 (14:55 +0000)]
VPATH build works now.
Frank Mori Hess [Wed, 1 Aug 2007 13:19:14 +0000 (13:19 +0000)]
Set SRF_RUNNING in runflags instead of SDF_RUNNING in subdev_flags.
Ian Abbott [Wed, 1 Aug 2007 12:48:03 +0000 (12:48 +0000)]
Don't bother running 'rpm -qa' to see whether querying packages works, as
it's quicker just to query for specific packages.
Ian Abbott [Wed, 1 Aug 2007 11:21:59 +0000 (11:21 +0000)]
Brought PCI resource handling up to scratch.
Cleaned up 8255 subdevices.
Made board data const.
Corrected driver name in a couple of printk calls.
Ian Abbott [Wed, 1 Aug 2007 10:52:57 +0000 (10:52 +0000)]
Documented PCI bus/slot options.
Frank Mori Hess [Tue, 31 Jul 2007 19:53:20 +0000 (19:53 +0000)]
simplified autogen.sh
Frank Mori Hess [Tue, 31 Jul 2007 19:02:42 +0000 (19:02 +0000)]
Fixed some issues in "Devices:" comment lines used to generate devices.txt
Frank Mori Hess [Tue, 31 Jul 2007 18:39:16 +0000 (18:39 +0000)]
Add driver docs into drivers.txt in sorted order.
Frank Mori Hess [Tue, 31 Jul 2007 14:45:16 +0000 (14:45 +0000)]
Updated Bernd Porr's email.
Frank Mori Hess [Tue, 31 Jul 2007 14:15:28 +0000 (14:15 +0000)]
Cleaned up some compiler warnings.
Frank Mori Hess [Tue, 31 Jul 2007 14:08:15 +0000 (14:08 +0000)]
New driver from Yoshiya Matsuzaka <matsuzay@mail.tains.tohoku.ac.jp>
for Measurement Computing PCI-DIOxx series.
Frank Mori Hess [Tue, 31 Jul 2007 14:04:38 +0000 (14:04 +0000)]
Disable pcmcia by default until someone fixes it.
Frank Mori Hess [Tue, 31 Jul 2007 13:53:08 +0000 (13:53 +0000)]
Don't bother running scripts on .mod.c files.
Ian Abbott [Mon, 30 Jul 2007 10:23:57 +0000 (10:23 +0000)]
Replaced 'Contributors' with 'AUTHORS' in EXTRA_DIST.
Frank Mori Hess [Mon, 30 Jul 2007 03:49:20 +0000 (03:49 +0000)]
Fixed comment blocks so they are parsed correctly by dump_doc.
Frank Mori Hess [Mon, 30 Jul 2007 03:48:41 +0000 (03:48 +0000)]
Added warning output if script failed to extract a comment block from
driver.
Frank Mori Hess [Sun, 29 Jul 2007 02:16:26 +0000 (02:16 +0000)]
Fix 1V adc range on 4020.
Frank Mori Hess [Sat, 28 Jul 2007 14:22:23 +0000 (14:22 +0000)]
Renamed Contributors file to AUTHORS.
Frank Mori Hess [Fri, 27 Jul 2007 21:00:12 +0000 (21:00 +0000)]
Got rid of useless 3rd parameter of comedi_event().
Frank Mori Hess [Fri, 27 Jul 2007 20:20:36 +0000 (20:20 +0000)]
Added read_register() and write_register() inline functions for
convenience. Added some support for reading the joint status2 register.
Ian Abbott [Fri, 27 Jul 2007 19:57:00 +0000 (19:57 +0000)]
Moved s526_gpct_config and s526_ai_config into device private data where
they belong.
Ian Abbott [Fri, 27 Jul 2007 19:52:24 +0000 (19:52 +0000)]
Made s526_ports array const.
Ian Abbott [Fri, 27 Jul 2007 19:47:58 +0000 (19:47 +0000)]
Constified ranges, board structures, and miscellaneous data.
Ian Abbott [Fri, 27 Jul 2007 18:52:25 +0000 (18:52 +0000)]
Change driver name from "dummy" to "mpc8260cpm".
Ian Abbott [Fri, 27 Jul 2007 14:54:26 +0000 (14:54 +0000)]
Fixed a few compiler warnings.
Ian Abbott [Fri, 27 Jul 2007 14:25:42 +0000 (14:25 +0000)]
Turned off verbose kernel make output to make it easier to spot compiler
warnings.
Ian Abbott [Fri, 27 Jul 2007 14:05:51 +0000 (14:05 +0000)]
INSN_CONFIG_GET_CLOCK_SRC now returns the period in data[2] for internal
clock sources. (For external and chained clock sources it is set to 0.)
Frank Mori Hess [Thu, 26 Jul 2007 20:36:55 +0000 (20:36 +0000)]
Protected use of subdevice runflags with spinlock, since it is modified
in comedi_event(). Replaced most usage of SDF_RUNNING in subdev_flags
with SRF_RUNNING in runflags so I don't have to protect subdev_flags
with a lock too. Made mite_release_channel() always disarm and
reset mite channel. Move ack/confirm of counter interrupts/errors
into ni_tio. Added ni_tio_set_mite_channel(), which acquires
counter's spinlock before modifiying its mite channel. Added
some missing locking of mite_channel_lock in ni_mio_common.c.
Frank Mori Hess [Tue, 24 Jul 2007 19:45:09 +0000 (19:45 +0000)]
Added mite_done() query to ask if mite channel is currently running,
handle CHSR_DONE in mite.c now (in mite_get_status() in particular).
Ian Abbott [Tue, 24 Jul 2007 17:47:21 +0000 (17:47 +0000)]
Removed include/linux/devfs_fs_kernel.h
We don't need it now and it causes build to fail for kernel 2.6.23-rc1.
Frank Mori Hess [Tue, 24 Jul 2007 16:15:50 +0000 (16:15 +0000)]
DMA works for input with buffered counting on e-series now.
Ian Abbott [Tue, 24 Jul 2007 11:57:12 +0000 (11:57 +0000)]
Clean Module.symvers in addition to Modules.symvers.
(I think the one created depends on the kernel version, so delete both!).
Ian Abbott [Tue, 24 Jul 2007 11:48:22 +0000 (11:48 +0000)]
Add jr3_pci.h to EXTRA_DIST.
Ian Abbott [Tue, 24 Jul 2007 11:37:08 +0000 (11:37 +0000)]
Generate comedi/comedi_kbuild.inc at configure time instead of make time.
Ian Abbott [Tue, 24 Jul 2007 11:00:40 +0000 (11:00 +0000)]
Add comedi_fops.h to EXTRA_DIST.
Ian Abbott [Mon, 23 Jul 2007 17:13:49 +0000 (17:13 +0000)]
Corrected driver header comment for PCM-UIO96A (pcmuio96).
Ian Abbott [Mon, 23 Jul 2007 15:24:49 +0000 (15:24 +0000)]
Add pcmmio driver to Kbuild.