comedi.git
17 years agoRemoved third parameter of calls to comedi_event().
Ian Abbott [Wed, 1 Aug 2007 17:33:37 +0000 (17:33 +0000)]
Removed third parameter of calls to comedi_event().

17 years agoAdded some missing headers to distribution tarball, bumped version for
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.

17 years agoHave "make install" respect configure prefix.
Frank Mori Hess [Wed, 1 Aug 2007 17:19:51 +0000 (17:19 +0000)]
Have "make install" respect configure prefix.

17 years agoFixed test for rpm program.
Frank Mori Hess [Wed, 1 Aug 2007 15:16:53 +0000 (15:16 +0000)]
Fixed test for rpm program.

17 years agoVPATH build works now.
Frank Mori Hess [Wed, 1 Aug 2007 14:55:19 +0000 (14:55 +0000)]
VPATH build works now.

17 years agoSet SRF_RUNNING in runflags instead of SDF_RUNNING in subdev_flags.
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.

17 years agoDon't bother running 'rpm -qa' to see whether querying packages works, as
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.

17 years agoBrought PCI resource handling up to scratch.
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.

17 years agoDocumented PCI bus/slot options.
Ian Abbott [Wed, 1 Aug 2007 10:52:57 +0000 (10:52 +0000)]
Documented PCI bus/slot options.

17 years agosimplified autogen.sh
Frank Mori Hess [Tue, 31 Jul 2007 19:53:20 +0000 (19:53 +0000)]
simplified autogen.sh

17 years agoFixed some issues in "Devices:" comment lines used to generate devices.txt
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

17 years agoAdd driver docs into drivers.txt in sorted order.
Frank Mori Hess [Tue, 31 Jul 2007 18:39:16 +0000 (18:39 +0000)]
Add driver docs into drivers.txt in sorted order.

17 years agoUpdated Bernd Porr's email.
Frank Mori Hess [Tue, 31 Jul 2007 14:45:16 +0000 (14:45 +0000)]
Updated Bernd Porr's email.

17 years agoCleaned up some compiler warnings.
Frank Mori Hess [Tue, 31 Jul 2007 14:15:28 +0000 (14:15 +0000)]
Cleaned up some compiler warnings.

17 years agoNew driver from Yoshiya Matsuzaka <matsuzay@mail.tains.tohoku.ac.jp>
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.

17 years agoDisable pcmcia by default until someone fixes it.
Frank Mori Hess [Tue, 31 Jul 2007 14:04:38 +0000 (14:04 +0000)]
Disable pcmcia by default until someone fixes it.

17 years agoDon't bother running scripts on .mod.c files.
Frank Mori Hess [Tue, 31 Jul 2007 13:53:08 +0000 (13:53 +0000)]
Don't bother running scripts on .mod.c files.

17 years agoReplaced 'Contributors' with 'AUTHORS' in EXTRA_DIST.
Ian Abbott [Mon, 30 Jul 2007 10:23:57 +0000 (10:23 +0000)]
Replaced 'Contributors' with 'AUTHORS' in EXTRA_DIST.

17 years agoFixed comment blocks so they are parsed correctly by dump_doc.
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.

17 years agoAdded warning output if script failed to extract a comment block from
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.

17 years agoFix 1V adc range on 4020.
Frank Mori Hess [Sun, 29 Jul 2007 02:16:26 +0000 (02:16 +0000)]
Fix 1V adc range on 4020.

17 years agoRenamed Contributors file to AUTHORS.
Frank Mori Hess [Sat, 28 Jul 2007 14:22:23 +0000 (14:22 +0000)]
Renamed Contributors file to AUTHORS.

17 years agoGot rid of useless 3rd parameter of comedi_event().
Frank Mori Hess [Fri, 27 Jul 2007 21:00:12 +0000 (21:00 +0000)]
Got rid of useless 3rd parameter of comedi_event().

17 years agoAdded read_register() and write_register() inline functions for
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.

17 years agoMoved s526_gpct_config and s526_ai_config into device private data where
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.

17 years agoMade s526_ports array const.
Ian Abbott [Fri, 27 Jul 2007 19:52:24 +0000 (19:52 +0000)]
Made s526_ports array const.

17 years agoConstified ranges, board structures, and miscellaneous data.
Ian Abbott [Fri, 27 Jul 2007 19:47:58 +0000 (19:47 +0000)]
Constified ranges, board structures, and miscellaneous data.

17 years agoChange driver name from "dummy" to "mpc8260cpm".
Ian Abbott [Fri, 27 Jul 2007 18:52:25 +0000 (18:52 +0000)]
Change driver name from "dummy" to "mpc8260cpm".

17 years agoFixed a few compiler warnings.
Ian Abbott [Fri, 27 Jul 2007 14:54:26 +0000 (14:54 +0000)]
Fixed a few compiler warnings.

17 years agoTurned off verbose kernel make output to make it easier to spot compiler
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.

17 years agoINSN_CONFIG_GET_CLOCK_SRC now returns the period in data[2] for internal
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.)

17 years agoProtected use of subdevice runflags with spinlock, since it is modified
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.

17 years agoAdded mite_done() query to ask if mite channel is currently running,
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).

17 years agoRemoved include/linux/devfs_fs_kernel.h
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.

17 years agoDMA works for input with buffered counting on e-series now.
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.

17 years agoClean Module.symvers in addition to Modules.symvers.
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!).

17 years agoAdd jr3_pci.h to EXTRA_DIST.
Ian Abbott [Tue, 24 Jul 2007 11:48:22 +0000 (11:48 +0000)]
Add jr3_pci.h to EXTRA_DIST.

17 years agoGenerate comedi/comedi_kbuild.inc at configure time instead of make time.
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.

17 years agoAdd comedi_fops.h to EXTRA_DIST.
Ian Abbott [Tue, 24 Jul 2007 11:00:40 +0000 (11:00 +0000)]
Add comedi_fops.h to EXTRA_DIST.

17 years agoCorrected driver header comment for PCM-UIO96A (pcmuio96).
Ian Abbott [Mon, 23 Jul 2007 17:13:49 +0000 (17:13 +0000)]
Corrected driver header comment for PCM-UIO96A (pcmuio96).

17 years agoAdd pcmmio driver to Kbuild.
Ian Abbott [Mon, 23 Jul 2007 15:24:49 +0000 (15:24 +0000)]
Add pcmmio driver to Kbuild.

17 years agoHandle removal of struct pt_regs * in 2.6.19 in same way as the other drivers.
Ian Abbott [Mon, 23 Jul 2007 15:22:09 +0000 (15:22 +0000)]
Handle removal of struct pt_regs * in 2.6.19 in same way as the other drivers.

17 years agoAdded little sanity check for buffer overrun of gaindelay array.
Frank Mori Hess [Sun, 22 Jul 2007 02:30:38 +0000 (02:30 +0000)]
Added little sanity check for buffer overrun of gaindelay array.

17 years agoFixed problems with RTI_OVERRUN bit in ai read insn.
Frank Mori Hess [Sun, 22 Jul 2007 02:23:44 +0000 (02:23 +0000)]
Fixed problems with RTI_OVERRUN bit in ai read insn.

17 years agoGot rid of unnecessary casts when initializing comedi_driver.board_name
Frank Mori Hess [Mon, 16 Jul 2007 19:26:52 +0000 (19:26 +0000)]
Got rid of unnecessary casts when initializing comedi_driver.board_name

17 years agoFix real-time interrupt handlers for 2.6.19.
Ian Abbott [Mon, 16 Jul 2007 17:39:58 +0000 (17:39 +0000)]
Fix real-time interrupt handlers for 2.6.19.

17 years agoFixed devinfo ioctl for subdevice files (/dev/comediN_subM). Made
Frank Mori Hess [Mon, 16 Jul 2007 14:59:13 +0000 (14:59 +0000)]
Fixed devinfo ioctl for subdevice files (/dev/comediN_subM).  Made
comedi subdevice type defines into an enum.

17 years agoFixed compile warning.
Frank Mori Hess [Mon, 16 Jul 2007 14:50:43 +0000 (14:50 +0000)]
Fixed compile warning.

17 years agoBuffered counting with dma works now for m-series boards.
Frank Mori Hess [Fri, 13 Jul 2007 20:27:55 +0000 (20:27 +0000)]
Buffered counting with dma works now for m-series boards.
Made attempt to read/write pfi port with e-series fail
loudly instead of silently.  Added support for digital
input filters on pfi ports for m-series.  Fixed some random
bugs.

17 years agoAdded enum of digital PFI filters on m-series.
Frank Mori Hess [Thu, 12 Jul 2007 14:55:41 +0000 (14:55 +0000)]
Added enum of digital PFI filters on m-series.

17 years agoHad edge and level gating swapped
Frank Mori Hess [Thu, 12 Jul 2007 13:47:27 +0000 (13:47 +0000)]
Had edge and level gating swapped

17 years agoAdded support for reading/writing Gi_DMA_Status/Config registers.
Frank Mori Hess [Wed, 11 Jul 2007 14:27:43 +0000 (14:27 +0000)]
Added support for reading/writing Gi_DMA_Status/Config registers.

17 years agoClear gpct mite interrupts.
Frank Mori Hess [Tue, 10 Jul 2007 18:22:09 +0000 (18:22 +0000)]
Clear gpct mite interrupts.

17 years agoAdded buf_change functions for gpct subdevices.
Frank Mori Hess [Tue, 10 Jul 2007 15:37:07 +0000 (15:37 +0000)]
Added buf_change functions for gpct subdevices.

17 years agoPreserve state of Gi_DMA_Config register bits.
Frank Mori Hess [Tue, 10 Jul 2007 13:18:34 +0000 (13:18 +0000)]
Preserve state of Gi_DMA_Config register bits.

17 years agoPut ni_gpct_device pointer in ni_gpct struct, so it doesn't have to
Frank Mori Hess [Tue, 10 Jul 2007 13:01:20 +0000 (13:01 +0000)]
Put ni_gpct_device pointer in ni_gpct struct, so it doesn't have to
be passed around everywhere as a separate parameter.

17 years agoRealized that "struct ni_gpct" needs to have a "ni_gpct_device"
Frank Mori Hess [Mon, 9 Jul 2007 20:12:56 +0000 (20:12 +0000)]
Realized that "struct ni_gpct" needs to have a "ni_gpct_device"
struct split out of it, which is shared by all counters on a board.

Need to hold mite_channel_lock in ni_mio_common when calling ni_tio
functions that use mite channel.

17 years agoReplaced magic numbers for subdevice indices with an enum. Also,
Frank Mori Hess [Fri, 6 Jul 2007 19:12:40 +0000 (19:12 +0000)]
Replaced magic numbers for subdevice indices with an enum.  Also,
inching towards gpct command support.

17 years agoAdded some ack'ing of b interrupts, and do acks before handling
Frank Mori Hess [Fri, 6 Jul 2007 17:08:58 +0000 (17:08 +0000)]
Added some ack'ing of b interrupts, and do acks before handling
interrupts, to avoid a race (which seems possible in theory).

17 years agoPatch from Anders Blomdell <anders.blomdell@control.lth.se>:
Frank Mori Hess [Fri, 6 Jul 2007 00:05:47 +0000 (00:05 +0000)]
Patch from Anders Blomdell <anders.blomdell@control.lth.se>:

Now it compiles on 2.6.21...

17 years agoReplaced direct memory accesses with I/O memory access functions.
Ian Abbott [Thu, 5 Jul 2007 17:15:59 +0000 (17:15 +0000)]
Replaced direct memory accesses with I/O memory access functions.
Anders Blomdell replaced bitfield types with enum types.

17 years agoNew driver JR3/PCI force sensor board from Anders Blomdell
Frank Mori Hess [Tue, 3 Jul 2007 02:44:22 +0000 (02:44 +0000)]
New driver JR3/PCI force sensor board from Anders Blomdell
<anders.blomdell@control.lth.se>

17 years agoPatch from Anders Blomdell <anders.blomdell@control.lth.se>, fixes
Frank Mori Hess [Thu, 28 Jun 2007 01:20:21 +0000 (01:20 +0000)]
Patch from Anders Blomdell <anders.blomdell@control.lth.se>, fixes
quadrature encoder counting with NI M-series boards.

17 years agoSimplified plx9052.h and moved PCI236-specific bits into amplc_pc236.c.
Ian Abbott [Wed, 27 Jun 2007 15:31:50 +0000 (15:31 +0000)]
Simplified plx9052.h and moved PCI236-specific bits into amplc_pc236.c.

17 years agoAllow board-specific names to be used to configure the device. For backwards
Ian Abbott [Wed, 27 Jun 2007 14:37:02 +0000 (14:37 +0000)]
Allow board-specific names to be used to configure the device.  For backwards
compatibility, the driver name can still be used as a wildcard to configure
any supported device.

I'll use this in future plans to support newer versions of the boards,
where a board-specific name has to be used to get at the newer features.

17 years agoSupport PCI bus/slot configuration options.
Ian Abbott [Wed, 27 Jun 2007 12:30:37 +0000 (12:30 +0000)]
Support PCI bus/slot configuration options.

17 years agoDon't bother reporting any unsupported Amplicon cards that are found.
Ian Abbott [Wed, 27 Jun 2007 12:24:30 +0000 (12:24 +0000)]
Don't bother reporting any unsupported Amplicon cards that are found.

17 years agoAdded PCI bus/slot configuration options. Ignored if unset or zero.
Ian Abbott [Wed, 27 Jun 2007 12:09:39 +0000 (12:09 +0000)]
Added PCI bus/slot configuration options.  Ignored if unset or zero.

17 years agoChanged comedi driver_name to "contec_pci_dio". "dummy" was a silly name.
Ian Abbott [Wed, 27 Jun 2007 12:00:06 +0000 (12:00 +0000)]
Changed comedi driver_name to "contec_pci_dio".  "dummy" was a silly name.

17 years agoReplace pci_find_device with pci_get_device, and use pci_dev_get and
Ian Abbott [Wed, 27 Jun 2007 10:54:55 +0000 (10:54 +0000)]
Replace pci_find_device with pci_get_device, and use pci_dev_get and
pci_dev_put to manage reference count for pci device.

Also, check result of kmalloc in pci_card_list_init.

17 years agoDon't ignore return value of comedi_request_irq().
Ian Abbott [Wed, 27 Jun 2007 10:37:20 +0000 (10:37 +0000)]
Don't ignore return value of comedi_request_irq().

17 years agoUpdate deprecated interrupt flags (SA_SHIRQ => IRQF_SHARED).
Ian Abbott [Wed, 27 Jun 2007 10:23:44 +0000 (10:23 +0000)]
Update deprecated interrupt flags (SA_SHIRQ => IRQF_SHARED).

17 years agoA little more code intended to support counter commands eventually.
Frank Mori Hess [Fri, 22 Jun 2007 20:08:14 +0000 (20:08 +0000)]
A little more code intended to support counter commands eventually.

17 years agoFixed disabling of interrupts in mite_setup().
Frank Mori Hess [Mon, 18 Jun 2007 13:53:00 +0000 (13:53 +0000)]
Fixed disabling of interrupts in mite_setup().

17 years agoAdded a little more on how the ni windows drivers enables mite burst
Frank Mori Hess [Fri, 15 Jun 2007 15:29:47 +0000 (15:29 +0000)]
Added a little more on how the ni windows drivers enables mite burst
mode.

17 years agoFixed burst mode on dma transfers on pxi-6281
Frank Mori Hess [Fri, 15 Jun 2007 14:36:32 +0000 (14:36 +0000)]
Fixed burst mode on dma transfers on pxi-6281

17 years agoFixed spurious warnings about AO interrupts not being acked, due to
Frank Mori Hess [Wed, 13 Jun 2007 20:43:45 +0000 (20:43 +0000)]
Fixed spurious warnings about AO interrupts not being acked, due to
my recent changes.

17 years agoGot rid of comedi_subdevice.cmd_cleanup after some reconsideration
Frank Mori Hess [Wed, 13 Jun 2007 18:51:10 +0000 (18:51 +0000)]
Got rid of comedi_subdevice.cmd_cleanup after some reconsideration
(it isn't really needed).  Added beginnings of support for NI
general-purpose counter commands.

17 years agoTake into account different number of dio channels on various
Frank Mori Hess [Mon, 11 Jun 2007 19:38:26 +0000 (19:38 +0000)]
Take into account different number of dio channels on various
m-series boards.

17 years agoAdded board entry for PCIe-6251, based on device id in email from
Frank Mori Hess [Thu, 7 Jun 2007 13:30:21 +0000 (13:30 +0000)]
Added board entry for PCIe-6251, based on device id in email from
Michael Mestre <michael.mestre@free.fr>

17 years agoChanged 6413 caldac types to ad8804_debug.
Frank Mori Hess [Thu, 7 Jun 2007 13:26:21 +0000 (13:26 +0000)]
Changed 6413 caldac types to ad8804_debug.

17 years agoAdded device id for pxi-6143 (patch from
Frank Mori Hess [Thu, 7 Jun 2007 13:24:57 +0000 (13:24 +0000)]
Added device id for pxi-6143 (patch from
Flavio Antonioli <flavio.antonioli@supsi.ch>)

17 years agoApplied patch from Calin A. Culianu for bug #254. The MUX for the AI
Ian Abbott [Thu, 24 May 2007 12:41:40 +0000 (12:41 +0000)]
Applied patch from Calin A. Culianu for bug #254.  The MUX for the AI
subdevice was being programmed incorrectly for synchronous acquisition of
more than one AI channel.

17 years agoAdded check against maximum ao update rate in analog output command test.
Frank Mori Hess [Tue, 8 May 2007 14:28:21 +0000 (14:28 +0000)]
Added check against maximum ao update rate in analog output command test.

17 years agoFixed check of maximum ai scan rate to take into account multiplexed
Frank Mori Hess [Wed, 2 May 2007 16:45:18 +0000 (16:45 +0000)]
Fixed check of maximum ai scan rate to take into account multiplexed
inputs.

17 years agoAdded ao_speed board field for maximum analog output update rate
Frank Mori Hess [Wed, 2 May 2007 16:12:54 +0000 (16:12 +0000)]
Added ao_speed board field for maximum analog output update rate
with commands.

17 years agoTweaked order deallocations happen for an async buffer allocated
Frank Mori Hess [Wed, 2 May 2007 13:30:21 +0000 (13:30 +0000)]
Tweaked order deallocations happen for an async buffer allocated
with vmalloc.

17 years agoFixed horrible grinding noises on mmap.
Frank Mori Hess [Tue, 1 May 2007 21:16:15 +0000 (21:16 +0000)]
Fixed horrible grinding noises on mmap.

17 years agoBe more careful about using all the write-allocated buffer space
Frank Mori Hess [Tue, 1 May 2007 20:16:51 +0000 (20:16 +0000)]
Be more careful about using all the write-allocated buffer space
available, in the cases where it was allocated previously but
never used.

17 years agoDon't set EOMEDI_CB_EOBUF event flag in comedi_buf_write_free(),
Frank Mori Hess [Tue, 1 May 2007 20:15:38 +0000 (20:15 +0000)]
Don't set EOMEDI_CB_EOBUF event flag in comedi_buf_write_free(),
since it may be called by user writing into buffer.

17 years agoHandle stop_src TRIG_COUNT with more than one channel correctly
Frank Mori Hess [Tue, 1 May 2007 20:12:21 +0000 (20:12 +0000)]
Handle stop_src TRIG_COUNT with more than one channel correctly
when doing output dma.

17 years agoMite channels 4 and 5 verified to work with m-series 6289 boards now.
Frank Mori Hess [Mon, 30 Apr 2007 18:36:18 +0000 (18:36 +0000)]
Mite channels 4 and 5 verified to work with m-series 6289 boards now.

17 years agoAllocate async buffer pages with dma_alloc_coherent, and map them
Frank Mori Hess [Sun, 29 Apr 2007 21:41:33 +0000 (21:41 +0000)]
Allocate async buffer pages with dma_alloc_coherent, and map them
into continguous virtual addresses with vmap.

17 years agoMade it possible to request a mite channel from a specific range,
Frank Mori Hess [Thu, 26 Apr 2007 19:59:18 +0000 (19:59 +0000)]
Made it possible to request a mite channel from a specific range,
instead of just starting at a specified offset.  Only allow
use of mite channels 0-3 for ai/ao, since those are the only
ones that seem to work.  Commented out 3 ai convert pulses sent
when clearing ai fifo on 625x boards (based on NI example code),
since it appears to be wrong when tested with real hardware.

17 years agoAdded some documentation of 32 bit dio port.
Frank Mori Hess [Thu, 26 Apr 2007 19:29:18 +0000 (19:29 +0000)]
Added some documentation of 32 bit dio port.

17 years agoChanged request/release of mite channels to use mite_channel struct
Frank Mori Hess [Thu, 26 Apr 2007 17:43:44 +0000 (17:43 +0000)]
Changed request/release of mite channels to use mite_channel struct
pointers, instead of channel indices.  Changed many mite functions
to take mite_channel argument instead of a mite_struct and a
channel index.  Added mite_dma_descriptor_ring, since drivers
need to maintain the descriptors seperatly from a channel, since
the channel is reserved/released with each use but the
descriptor ring only changes when comedi's buffer is resized.  Made
ni_mio_common.c dynamically allocate mite channels for ai/ao
when needed, instead of permanently assigning mite channels to
subdevices.

17 years agoGot rid of useless include of mite.h.
Frank Mori Hess [Thu, 26 Apr 2007 15:05:09 +0000 (15:05 +0000)]
Got rid of useless include of mite.h.

17 years agoGot rid of call to subdevice's buf_change callback which occurred after
Frank Mori Hess [Thu, 26 Apr 2007 14:58:03 +0000 (14:58 +0000)]
Got rid of call to subdevice's buf_change callback which occurred after
device was detached.  Small cleanup of duplicated code.

17 years agoAdded support for a cmd_cleanup() callback on subdevices, which
Frank Mori Hess [Thu, 26 Apr 2007 14:54:10 +0000 (14:54 +0000)]
Added support for a cmd_cleanup() callback on subdevices, which
is called when a command is finished.  Will be used to release
mite DMA channels when no longer in use.

17 years agoAdded spinlock to mite_struct for mite_alloc_channel() and
Frank Mori Hess [Thu, 19 Apr 2007 19:53:11 +0000 (19:53 +0000)]
Added spinlock to mite_struct for mite_alloc_channel() and
mite_free_channel().