comedi.git
23 years agomoved fifo overflow check back outside of loop where it belongs, switched over
Frank Mori Hess [Mon, 11 Jun 2001 18:44:11 +0000 (18:44 +0000)]
moved fifo overflow check back outside of loop where it belongs, switched over
to use of async->events and comedi_event(), started using generic comedi_buf_put()
to transfer data

23 years agoReplace TRIG_INVALID
David Schleef [Mon, 11 Jun 2001 07:53:09 +0000 (07:53 +0000)]
Replace TRIG_INVALID

23 years agochanged prototype of comedi_buf_get a bit
Frank Mori Hess [Sun, 10 Jun 2001 22:56:21 +0000 (22:56 +0000)]
changed prototype of comedi_buf_get a bit

23 years agodefined generic inline functions for writing/reading a data point to/from comedi...
Frank Mori Hess [Sun, 10 Jun 2001 20:32:53 +0000 (20:32 +0000)]
defined generic inline functions for writing/reading a data point to/from comedi's buffer

23 years agoremoved spurious warning that would have occured with cio-das802/16. Sidenote: earlier
Frank Mori Hess [Sun, 10 Jun 2001 16:01:58 +0000 (16:01 +0000)]
removed spurious warning that would have occured with cio-das802/16.  Sidenote: earlier
revision 1.30 that I made to fix a race condition was unnecessay, race only existed in
an intermediate form of the code which was never commited.

23 years agoadded cards from rtd520 driver
Frank Mori Hess [Sat, 9 Jun 2001 22:36:21 +0000 (22:36 +0000)]
added cards from rtd520 driver

23 years agoadded support for cio-das802/16 to das800 driver
Frank Mori Hess [Sat, 9 Jun 2001 22:24:59 +0000 (22:24 +0000)]
added support for cio-das802/16 to das800 driver

23 years agofixed race between conversions and fifo overflow check
Frank Mori Hess [Sat, 9 Jun 2001 20:07:57 +0000 (20:07 +0000)]
fixed race between conversions and fifo overflow check

23 years agoversion bump
David Schleef [Fri, 8 Jun 2001 22:38:40 +0000 (22:38 +0000)]
version bump

23 years agoFix sed line for version update
David Schleef [Fri, 8 Jun 2001 22:38:18 +0000 (22:38 +0000)]
Fix sed line for version update

23 years ago/proc/comedi dumps out the device names recognized for each driver
David Schleef [Fri, 8 Jun 2001 22:37:08 +0000 (22:37 +0000)]
/proc/comedi dumps out the device names recognized for each driver

23 years agoMore busy-talk about counters
David Schleef [Fri, 8 Jun 2001 22:36:34 +0000 (22:36 +0000)]
More busy-talk about counters

23 years agoAdded internal trigger support, various reformatting
David Schleef [Fri, 8 Jun 2001 22:35:51 +0000 (22:35 +0000)]
Added internal trigger support, various reformatting

23 years agoAdded make check rule.
David Schleef [Fri, 8 Jun 2001 22:34:41 +0000 (22:34 +0000)]
Added make check rule.

23 years agoAdded internal trigger support
David Schleef [Fri, 8 Jun 2001 22:33:44 +0000 (22:33 +0000)]
Added internal trigger support

23 years agofixes for kcomedilib with trigger support off. comedi_dio_config() was using
Frank Mori Hess [Fri, 8 Jun 2001 21:43:18 +0000 (21:43 +0000)]
fixes for kcomedilib with trigger support off.  comedi_dio_config() was using
trigger code instead of insn, I assumed there was no good reason for this such
as the insn code not working.

23 years agoAdded comments about 2.0
David Schleef [Fri, 8 Jun 2001 00:06:41 +0000 (00:06 +0000)]
Added comments about 2.0

23 years agoattempting to fix 2.0 kernels that don't seem to define KERNEL_VERSION(a,b,c)
Frank Mori Hess [Thu, 7 Jun 2001 23:36:37 +0000 (23:36 +0000)]
attempting to fix 2.0 kernels that don't seem to define KERNEL_VERSION(a,b,c)

23 years agotweak to make rt_task clean itself up without one scan delay
Frank Mori Hess [Thu, 7 Jun 2001 17:52:22 +0000 (17:52 +0000)]
tweak to make rt_task clean itself up without one scan delay

23 years agoReverted the variable timeout part of the last change.
David Schleef [Mon, 4 Jun 2001 22:42:19 +0000 (22:42 +0000)]
Reverted the variable timeout part of the last change.

23 years agoPatch for das08jr/16 from Luke Stras <stras@eyetap.org>
David Schleef [Mon, 4 Jun 2001 22:30:34 +0000 (22:30 +0000)]
Patch for das08jr/16 from Luke Stras <stras@eyetap.org>

23 years agomerged input and output scan tasks, kept more careful track of status of rt tasks
Frank Mori Hess [Mon, 4 Jun 2001 22:03:06 +0000 (22:03 +0000)]
merged input and output scan tasks, kept more careful track of status of rt tasks

23 years agofixed conversion timing check for TRIG_NOW case
Frank Mori Hess [Mon, 4 Jun 2001 02:16:30 +0000 (02:16 +0000)]
fixed conversion timing check for TRIG_NOW case

23 years agoadded check on conversion timing
Frank Mori Hess [Mon, 4 Jun 2001 02:13:26 +0000 (02:13 +0000)]
added check on conversion timing

23 years agoswitched priorities of scan_task and rt_task to prevent strange 5 millisec timing...
Frank Mori Hess [Mon, 4 Jun 2001 01:45:49 +0000 (01:45 +0000)]
switched priorities of scan_task and rt_task to prevent strange 5 millisec timing errors
that would occassionaly occur

23 years agoremoved redundant unlock
Frank Mori Hess [Sat, 2 Jun 2001 23:54:16 +0000 (23:54 +0000)]
removed redundant unlock

23 years agomoved creation/deletion of real time tasks from comedi_cmd code to attach/detach
Frank Mori Hess [Sat, 2 Jun 2001 22:32:15 +0000 (22:32 +0000)]
moved creation/deletion of real time tasks from comedi_cmd code to attach/detach

23 years agofixes, chucked rt_pend_call(), added check for good scan timing and increased allowab...
Frank Mori Hess [Sat, 2 Jun 2001 04:04:17 +0000 (04:04 +0000)]
fixes, chucked rt_pend_call(), added check for good scan timing and increased allowable frequency

23 years agoconversion frequency and scan frequency can now be set independently
Frank Mori Hess [Fri, 1 Jun 2001 16:07:50 +0000 (16:07 +0000)]
conversion frequency and scan frequency can now be set independently

23 years agotweak
Frank Mori Hess [Thu, 31 May 2001 23:24:10 +0000 (23:24 +0000)]
tweak

23 years agoadded support for TRIG_WAKE_EOS command flag
Frank Mori Hess [Wed, 30 May 2001 21:38:56 +0000 (21:38 +0000)]
added support for TRIG_WAKE_EOS command flag

23 years agoAdded check for functions replaced by comedi_event()
David Schleef [Wed, 30 May 2001 20:27:54 +0000 (20:27 +0000)]
Added check for functions replaced by comedi_event()

23 years agoadded line for das1600-old so it is not marked as (NEW) by default
Frank Mori Hess [Wed, 30 May 2001 16:55:12 +0000 (16:55 +0000)]
added line for das1600-old so it is not marked as (NEW) by default

23 years agomade default for trigger support config match suggestion of 'just say yes'
Frank Mori Hess [Wed, 30 May 2001 16:50:10 +0000 (16:50 +0000)]
made default for trigger support config match suggestion of 'just say yes'

23 years agoadded a do_become_nonbusy() when all the data is marked as being read (presumably...
Frank Mori Hess [Mon, 28 May 2001 03:58:36 +0000 (03:58 +0000)]
added a do_become_nonbusy() when all the data is marked as being read (presumably via a mmap) instead of
being read in the conventional way

23 years agosmall cleanup, ifdef'd hack to expire with next rtlinux version where it should no...
Frank Mori Hess [Mon, 28 May 2001 03:55:51 +0000 (03:55 +0000)]
small cleanup, ifdef'd hack to expire with next rtlinux version where it should no longer be required

23 years agopatch for possible rtai changes r0_7_59
David Schleef [Mon, 28 May 2001 00:29:13 +0000 (00:29 +0000)]
patch for possible rtai changes

23 years agopatch has been merged
David Schleef [Mon, 28 May 2001 00:26:56 +0000 (00:26 +0000)]
patch has been merged

23 years agopatches have been merged
David Schleef [Mon, 28 May 2001 00:26:37 +0000 (00:26 +0000)]
patches have been merged

23 years ago*** empty log message ***
David Schleef [Mon, 28 May 2001 00:25:34 +0000 (00:25 +0000)]
*** empty log message ***

23 years agoMajor simplification of trig[0] path
David Schleef [Mon, 28 May 2001 00:10:42 +0000 (00:10 +0000)]
Major simplification of trig[0] path

23 years agoUpdate pcmad driver for Comedi changes in the last year.
David Schleef [Mon, 28 May 2001 00:08:41 +0000 (00:08 +0000)]
Update pcmad driver for Comedi changes in the last year.

23 years agoMerged pcmad driver
David Schleef [Sun, 27 May 2001 23:56:55 +0000 (23:56 +0000)]
Merged pcmad driver

23 years agoMerged PCMAD driver
David Schleef [Sun, 27 May 2001 23:56:00 +0000 (23:56 +0000)]
Merged PCMAD driver

23 years agoDon't see a need to keep these around. Pull them from the
David Schleef [Sun, 27 May 2001 23:54:24 +0000 (23:54 +0000)]
Don't see a need to keep these around.  Pull them from the
attic if you want them.

23 years agoNot needed anymore
David Schleef [Sun, 27 May 2001 23:53:44 +0000 (23:53 +0000)]
Not needed anymore

23 years agoLast remnant of trig[0]. Calls emulation function directly.
David Schleef [Sun, 27 May 2001 23:16:18 +0000 (23:16 +0000)]
Last remnant of trig[0].  Calls emulation function directly.

23 years agoMoved trig-related code from comedi_fops.c to trig.c
David Schleef [Sun, 27 May 2001 23:13:15 +0000 (23:13 +0000)]
Moved trig-related code from comedi_fops.c to trig.c

23 years agoThis should have been removed a long time ago.
David Schleef [Sun, 27 May 2001 23:12:27 +0000 (23:12 +0000)]
This should have been removed a long time ago.

23 years agoMoved trig compatibility functions from drivers.c to trig.c.
David Schleef [Sun, 27 May 2001 23:03:35 +0000 (23:03 +0000)]
Moved trig compatibility functions from drivers.c to trig.c.
Wrapped all trig related code in CONFIG_COMEDI_TRIG.
Added config option for CONFIG_COMEDI_TRIG.

23 years agoFor some reason, rt_pend_tq.o was compiled separately. Fixed.
David Schleef [Sun, 27 May 2001 22:37:28 +0000 (22:37 +0000)]
For some reason, rt_pend_tq.o was compiled separately.  Fixed.
(Probably just created another bug...)

23 years agoifdef all the remaining trig related code
David Schleef [Sun, 27 May 2001 22:35:48 +0000 (22:35 +0000)]
ifdef all the remaining trig related code

23 years agodocs out of date
David Schleef [Sun, 27 May 2001 22:32:51 +0000 (22:32 +0000)]
docs out of date

23 years agoremoved insn emulation using trig[0]
David Schleef [Sun, 27 May 2001 21:48:19 +0000 (21:48 +0000)]
removed insn emulation using trig[0]

23 years agoCleanups, insn migration
David Schleef [Sun, 27 May 2001 21:13:41 +0000 (21:13 +0000)]
Cleanups, insn migration

23 years agoFix a couple checks, add comments
David Schleef [Sun, 27 May 2001 21:13:24 +0000 (21:13 +0000)]
Fix a couple checks, add comments

23 years agofix for EXTRAVERSION
David Schleef [Sun, 27 May 2001 20:23:00 +0000 (20:23 +0000)]
fix for EXTRAVERSION

23 years agoadded pci-das08 and pci-das1200 entries
Frank Mori Hess [Fri, 25 May 2001 22:05:03 +0000 (22:05 +0000)]
added pci-das08 and pci-das1200 entries

23 years agoupdates
Frank Mori Hess [Fri, 25 May 2001 21:59:20 +0000 (21:59 +0000)]
updates

23 years agofix so cards on bus 0 can be chosen through configuration options
Frank Mori Hess [Fri, 25 May 2001 21:43:34 +0000 (21:43 +0000)]
fix so cards on bus 0 can be chosen through configuration options

23 years agoadded support for pci-das08 card
Frank Mori Hess [Fri, 25 May 2001 21:39:54 +0000 (21:39 +0000)]
added support for pci-das08 card

23 years agofixed overwriting of cb_mask.
David Schleef [Fri, 25 May 2001 02:24:22 +0000 (02:24 +0000)]
fixed overwriting of cb_mask.

23 years agoCompilation fixes on powerpc
David Schleef [Fri, 25 May 2001 02:01:45 +0000 (02:01 +0000)]
Compilation fixes on powerpc

23 years agoAdded email from Dan Christian about Red Hat
David Schleef [Thu, 24 May 2001 19:01:54 +0000 (19:01 +0000)]
Added email from Dan Christian about Red Hat

23 years agoremoved di_unpack, do_pack.
David Schleef [Thu, 24 May 2001 01:41:12 +0000 (01:41 +0000)]
removed di_unpack, do_pack.

23 years agoCode cleanup, mainly things noticed by check_driver. A couple
David Schleef [Thu, 24 May 2001 01:28:08 +0000 (01:28 +0000)]
Code cleanup, mainly things noticed by check_driver.  A couple
of the drivers were converted to insn.

23 years agonew tests
David Schleef [Thu, 24 May 2001 00:47:30 +0000 (00:47 +0000)]
new tests

23 years ago*** empty log message ***
David Schleef [Thu, 24 May 2001 00:47:13 +0000 (00:47 +0000)]
*** empty log message ***

23 years agomarked (but did not fix =) a couple bugs
Frank Mori Hess [Mon, 21 May 2001 04:50:42 +0000 (04:50 +0000)]
marked (but did not fix =) a couple bugs

23 years agofixed problem with comedi_switch_to_rt() and irq-less comedi_rt_timer driver
Frank Mori Hess [Sat, 19 May 2001 20:46:29 +0000 (20:46 +0000)]
fixed problem with comedi_switch_to_rt() and irq-less comedi_rt_timer driver

23 years agoexported rt_pend_call() so that comedi_rt_timer can be configured multiple times
Frank Mori Hess [Sat, 19 May 2001 04:15:52 +0000 (04:15 +0000)]
exported rt_pend_call() so that comedi_rt_timer can be configured multiple times

23 years agoMITE DMA data is now unsigned short instead of twos complement. Also fixed
Tim Ousley [Fri, 18 May 2001 19:25:15 +0000 (19:25 +0000)]
MITE DMA data is now unsigned short instead of twos complement.  Also fixed
bug where the ISR would try to poll the STC fifo instead of letting the MITE
retrieve the data.

23 years agoimproved error handling a bit
Frank Mori Hess [Wed, 16 May 2001 04:58:28 +0000 (04:58 +0000)]
improved error handling a bit

23 years agoadded PXI-6533 support.
Tim Ousley [Tue, 15 May 2001 20:07:51 +0000 (20:07 +0000)]
added PXI-6533 support.

23 years agoadded card IDs and descriptions for several PXI cards: PXI-6071, PXI-6070,
Tim Ousley [Mon, 14 May 2001 20:53:42 +0000 (20:53 +0000)]
added card IDs and descriptions for several PXI cards: PXI-6071, PXI-6070,
PXI-6052, PXI-6040, PXI-6030, PXI-6025

23 years agoput start_rt_timer()back for rtai, as it looks like its needed but im not sure, put...
Frank Mori Hess [Mon, 14 May 2001 14:45:16 +0000 (14:45 +0000)]
put start_rt_timer()back for rtai, as it looks like its needed but im not sure, put in some
compatibility defines to reduce number of #ifdef CONFIG_COMEDI* statements

23 years ago602x doesn't have unipolar AI.
David Schleef [Mon, 14 May 2001 12:10:37 +0000 (12:10 +0000)]
602x doesn't have unipolar AI.

23 years agoUpdate from Dan
David Schleef [Mon, 14 May 2001 09:34:08 +0000 (09:34 +0000)]
Update from Dan

23 years agoadded comedi_rt_timer description
Frank Mori Hess [Mon, 14 May 2001 00:12:00 +0000 (00:12 +0000)]
added comedi_rt_timer description

23 years agobug fixes, analog output commands work now! Added scan_begin_src==TRIG_FOLLOW, conve...
Frank Mori Hess [Sun, 13 May 2001 23:41:36 +0000 (23:41 +0000)]
bug fixes, analog output commands work now!  Added scan_begin_src==TRIG_FOLLOW, convert_src==TRIG_TIMER.
TRIG_RT flag was causing null dereferences, that is fixed now from user space, but NOT when command is
called from kernel space.

23 years agofixed bug due to typo
Frank Mori Hess [Sun, 13 May 2001 18:19:19 +0000 (18:19 +0000)]
fixed bug due to typo

23 years agofixed spurious EINVAL errors on read and possibility of never becoming_nonbusy
Frank Mori Hess [Sat, 12 May 2001 00:00:01 +0000 (00:00 +0000)]
fixed spurious EINVAL errors on read and possibility of never becoming_nonbusy

23 years agonow it is fixed for real. Had to redefine rt_get_time() which still called broken...
Frank Mori Hess [Fri, 11 May 2001 23:24:58 +0000 (23:24 +0000)]
now it is fixed for real.  Had to redefine rt_get_time() which still called broken HRT_TO_8254() function.

23 years agoMITE does continuous AI now. Fixed bug so MIO cards can go 1.25MS/s. Fixed
Tim Ousley [Fri, 11 May 2001 20:18:49 +0000 (20:18 +0000)]
MITE does continuous AI now.  Fixed bug so MIO cards can go 1.25MS/s.  Fixed
some assorted MITE bugs.

23 years agonano2tick_hack() now gives exactly correct answer (rounded down to nearest integer)
Frank Mori Hess [Fri, 11 May 2001 16:00:22 +0000 (16:00 +0000)]
nano2tick_hack() now gives exactly correct answer (rounded down to nearest integer)

23 years agorolling back last change
Frank Mori Hess [Fri, 11 May 2001 14:58:41 +0000 (14:58 +0000)]
rolling back last change

23 years agoadded hack to fix broken rtlinux compatibility headers and let driver work for more...
Frank Mori Hess [Fri, 11 May 2001 04:29:11 +0000 (04:29 +0000)]
added hack to fix broken rtlinux compatibility headers and let driver work for more than a half hour

23 years agosome fixes, still gives divide error / segfault on rt_task_make periodic after about...
Frank Mori Hess [Thu, 10 May 2001 23:12:43 +0000 (23:12 +0000)]
some fixes, still gives divide error / segfault on rt_task_make periodic after about a half hour

23 years agochanged order or error check in read_v22() to get rid of spurious EINVAL errors when...
Frank Mori Hess [Thu, 10 May 2001 20:30:46 +0000 (20:30 +0000)]
changed order or error check in read_v22() to get rid of spurious EINVAL errors when using comedi_rt_timer

23 years agofixed dereferencing of chanlist, hopefully this will also fix the occasional segfaults
Frank Mori Hess [Thu, 10 May 2001 17:47:59 +0000 (17:47 +0000)]
fixed dereferencing of chanlist, hopefully this will also fix the occasional segfaults

23 years agofixed clearing of async->events
Frank Mori Hess [Thu, 10 May 2001 16:47:33 +0000 (16:47 +0000)]
fixed clearing of async->events

23 years agoni_ai_setup_MITE_dma() now configures MITE for correct # of bytes. mite
Tim Ousley [Thu, 10 May 2001 16:41:04 +0000 (16:41 +0000)]
ni_ai_setup_MITE_dma() now configures MITE for correct # of bytes. mite
interrupt handler now stops blocking when the MITE transfers a chunk of data.
handle_a_interrupt() does not stop the MITE prematurely (when STC generates
a SC.TC. interrupt)

23 years agofixed a bug I created, noticed that commands only work right the first try. Second...
Frank Mori Hess [Thu, 10 May 2001 15:30:41 +0000 (15:30 +0000)]
fixed a bug I created, noticed that commands only work right the first try.  Second try command seems to
start, then abort after 1 or a few samples then (from /proc/interrupts) start again and finish.

23 years agominor cleanups
David Schleef [Thu, 10 May 2001 10:18:09 +0000 (10:18 +0000)]
minor cleanups

23 years agoMinor cleanups
David Schleef [Thu, 10 May 2001 10:16:21 +0000 (10:16 +0000)]
Minor cleanups
Added ioctl poll support
Fixed AO cmdtest logic bug

23 years agoAdded poll ioctl
David Schleef [Thu, 10 May 2001 10:15:08 +0000 (10:15 +0000)]
Added poll ioctl
Moved checking code into common area
Minor cleanups

23 years agoMigrated from mode0 to insn
David Schleef [Thu, 10 May 2001 10:12:55 +0000 (10:12 +0000)]
Migrated from mode0 to insn

23 years agoadded rtd520 driver
David Schleef [Thu, 10 May 2001 10:09:53 +0000 (10:09 +0000)]
added rtd520 driver

23 years agoadded
David Schleef [Thu, 10 May 2001 10:08:43 +0000 (10:08 +0000)]
added

23 years agoUpdate from Dan
David Schleef [Thu, 10 May 2001 09:59:57 +0000 (09:59 +0000)]
Update from Dan