comedi.git
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

23 years agoAdded driver from Dan Christian <dac@ptolemy.arc.nasa.gov>
David Schleef [Thu, 10 May 2001 09:57:50 +0000 (09:57 +0000)]
Added driver from Dan Christian <dac@ptolemy.arc.nasa.gov>

23 years agoadded support for analog output commands. Untested except to check that analog input...
Frank Mori Hess [Thu, 10 May 2001 01:36:59 +0000 (01:36 +0000)]
added support for analog output commands.  Untested except to check that analog input still works.

23 years agooops, undid my last change. no more continuous DMA, but much more stable.
Tim Ousley [Mon, 7 May 2001 22:04:13 +0000 (22:04 +0000)]
oops, undid my last change.  no more continuous DMA, but much more stable.

23 years agocontinuous analog acquisition using MITE...
Tim Ousley [Mon, 7 May 2001 20:11:17 +0000 (20:11 +0000)]
continuous analog acquisition using MITE...

23 years agodealt with possible race between interrupt fifio half-full and external stop trigger
Frank Mori Hess [Mon, 7 May 2001 16:48:44 +0000 (16:48 +0000)]
dealt with possible race between interrupt fifio half-full and external stop trigger

23 years agoadded delarations of ret variable in comedi_map and unmap
Frank Mori Hess [Mon, 7 May 2001 15:58:45 +0000 (15:58 +0000)]
added delarations of ret variable in comedi_map and unmap

23 years agoAdded comedi_map, comedi_unmap, comedi_poll
David Schleef [Sat, 5 May 2001 11:35:51 +0000 (11:35 +0000)]
Added comedi_map, comedi_unmap, comedi_poll

23 years agoAdded comedi_map, comedi_unmap
David Schleef [Sat, 5 May 2001 11:35:27 +0000 (11:35 +0000)]
Added comedi_map, comedi_unmap

23 years agoadded entries for das800 and das1800 drivers
Frank Mori Hess [Sat, 5 May 2001 01:06:47 +0000 (01:06 +0000)]
added entries for das800 and das1800 drivers

23 years agofixed null dereference that occured when interrupt was handled before driver was...
Frank Mori Hess [Sat, 5 May 2001 00:51:22 +0000 (00:51 +0000)]
fixed null dereference that occured when interrupt was handled before driver was fully attached

23 years agorestored include of comedidev.h from comedi_rt.h so that spin locks can be used throu...
Frank Mori Hess [Fri, 4 May 2001 23:32:28 +0000 (23:32 +0000)]
restored include of comedidev.h from comedi_rt.h so that spin locks can be used through including comedi_rt.h instead of having to go
through comedidev.h.  This include was originally removed due to circular dependence between comedidev.h and comedi_rt.h
but they're just header files so it doesn't seem to matter.

23 years agobug fixes, seems to work
Frank Mori Hess [Fri, 4 May 2001 22:19:33 +0000 (22:19 +0000)]
bug fixes, seems to work

23 years agofixed bug with innaccurate pulse width measurement, and GPCT_Reset() does not
Tim Ousley [Fri, 4 May 2001 16:24:30 +0000 (16:24 +0000)]
fixed bug with innaccurate pulse width measurement, and GPCT_Reset() does not
affect the other counter now.

23 years agofixed trig modes > 0 for using cur_trig-> instead of async->
Frank Mori Hess [Thu, 3 May 2001 16:58:20 +0000 (16:58 +0000)]
fixed trig modes > 0 for using cur_trig-> instead of async->

23 years agodealt with switch from cur_trig->data, etc to async->data, etc
Frank Mori Hess [Thu, 3 May 2001 16:50:28 +0000 (16:50 +0000)]
dealt with switch from cur_trig->data, etc to async->data, etc

23 years agoadded some comments on what look like bugs
Frank Mori Hess [Thu, 3 May 2001 16:24:20 +0000 (16:24 +0000)]
added some comments on what look like bugs

23 years agofixed bug where pulsewidth meas. armed incorrectly
Tim Ousley [Wed, 2 May 2001 21:50:46 +0000 (21:50 +0000)]
fixed bug where pulsewidth meas. armed incorrectly

23 years agochanged GPCTR to GPCT and gpctr to gpct.
Tim Ousley [Wed, 2 May 2001 19:39:41 +0000 (19:39 +0000)]
changed GPCTR to GPCT and gpctr to gpct.

23 years agocomedi specific error codes to be used in comedilib only so this header unnecessary...
Frank Mori Hess [Wed, 2 May 2001 18:17:54 +0000 (18:17 +0000)]
comedi specific error codes to be used in comedilib only so this header unnecessary here

23 years agoa small step towards standardized comedi error codes
Frank Mori Hess [Wed, 2 May 2001 00:08:28 +0000 (00:08 +0000)]
a small step towards standardized comedi error codes

23 years agoGPCTR compiles by default, #defined insn to get internal gpctr timebase
Tim Ousley [Tue, 1 May 2001 21:53:59 +0000 (21:53 +0000)]
GPCTR compiles by default, #defined insn to get internal gpctr timebase

23 years agorenmaed to COPYING
Frank Mori Hess [Tue, 1 May 2001 20:50:28 +0000 (20:50 +0000)]
renmaed to COPYING

23 years agonamed GPL file COPYING instead of LICENSE
Frank Mori Hess [Tue, 1 May 2001 20:50:01 +0000 (20:50 +0000)]
named GPL file COPYING instead of LICENSE

23 years agoadded copy of GPL
Frank Mori Hess [Tue, 1 May 2001 20:47:35 +0000 (20:47 +0000)]
added copy of GPL

23 years agofixed bug with gating.
Tim Ousley [Tue, 1 May 2001 19:51:05 +0000 (19:51 +0000)]
fixed bug with gating.

23 years agocomedi_command shouldn't set _EOS
David Schleef [Sat, 28 Apr 2001 16:24:50 +0000 (16:24 +0000)]
comedi_command shouldn't set _EOS

23 years agocompiles now with MITE DMA support
Tim Ousley [Fri, 27 Apr 2001 16:16:54 +0000 (16:16 +0000)]
compiles now with MITE DMA support

23 years agoinsn based counter/timer operations now work, including event counting,
Tim Ousley [Fri, 27 Apr 2001 16:00:05 +0000 (16:00 +0000)]
insn based counter/timer operations now work, including event counting,
period and pulse width measurement, single and continuous pulse generation,
and quadrature encoder reading

23 years agouse dev->spinlock now instead of creating my own spinlock in dev->private
Frank Mori Hess [Fri, 27 Apr 2001 15:49:55 +0000 (15:49 +0000)]
use dev->spinlock now instead of creating my own spinlock in dev->private

23 years agoadded single pulse generation using the GPCTRs. almost works, I just need
Tim Ousley [Thu, 26 Apr 2001 21:08:12 +0000 (21:08 +0000)]
added single pulse generation using the GPCTRs.  almost works, I just need
to enable the output signal.

23 years agoPeriod measurement and pulsewidth measurement now work correctly.
Tim Ousley [Wed, 25 Apr 2001 21:03:28 +0000 (21:03 +0000)]
Period measurement and pulsewidth measurement now work correctly.

23 years agoCheck async structure in comedi_unlock
David Schleef [Wed, 25 Apr 2001 09:24:43 +0000 (09:24 +0000)]
Check async structure in comedi_unlock

23 years agofixed compile errors
Frank Mori Hess [Tue, 24 Apr 2001 17:50:06 +0000 (17:50 +0000)]
fixed compile errors

23 years agopatch to make comedi_rt_timer.c compile under rtlinux 3.0
Frank Mori Hess [Tue, 24 Apr 2001 17:34:51 +0000 (17:34 +0000)]
patch to make comedi_rt_timer.c compile under rtlinux 3.0

23 years agoAdded PCI-6713 and PCI-6711 board definitions. Added disable
David Schleef [Mon, 23 Apr 2001 20:23:53 +0000 (20:23 +0000)]
Added PCI-6713 and PCI-6711 board definitions.  Added disable
of AI subdevice if no AI capability.

23 years agochange to make comedi_error() callable from a driver's attach function
Frank Mori Hess [Fri, 20 Apr 2001 23:43:32 +0000 (23:43 +0000)]
change to make comedi_error() callable from a driver's attach function

23 years agoupdate, fixes, cleanup
Frank Mori Hess [Fri, 20 Apr 2001 23:42:36 +0000 (23:42 +0000)]
update, fixes, cleanup

23 years agofixed initialization of comedi_device bug due to sizeof returning size of pointer...
Frank Mori Hess [Fri, 20 Apr 2001 22:43:20 +0000 (22:43 +0000)]
fixed initialization of comedi_device bug due to sizeof returning size of pointer instead of object

23 years agoSimple event counting (and quadrature encoding) works correctly from user
Tim Ousley [Fri, 20 Apr 2001 19:15:20 +0000 (19:15 +0000)]
Simple event counting (and quadrature encoding) works correctly from user
process using insn API.  Added some constants for other GPCTR operations.
GPCTR constants now are XORable for debugging purposes.

23 years agoadded first draft of insn API for GPCTRs
Tim Ousley [Thu, 19 Apr 2001 21:36:28 +0000 (21:36 +0000)]
added first draft of insn API for GPCTRs

23 years agoMajor fixes. Updates for cmd/insn, compiles for RTAI, fails strangely.
David Schleef [Thu, 19 Apr 2001 07:29:57 +0000 (07:29 +0000)]
Major fixes.  Updates for cmd/insn, compiles for RTAI, fails strangely.

23 years agoremove dependency on bc
David Schleef [Thu, 19 Apr 2001 07:28:53 +0000 (07:28 +0000)]
remove dependency on bc

23 years agoSpecs for new card
David Schleef [Thu, 19 Apr 2001 07:27:53 +0000 (07:27 +0000)]
Specs for new card

23 years agoLogic error
David Schleef [Thu, 19 Apr 2001 07:27:33 +0000 (07:27 +0000)]
Logic error

23 years agochange 2.3 to 2.4
David Schleef [Thu, 19 Apr 2001 07:21:54 +0000 (07:21 +0000)]
change 2.3 to 2.4

23 years agostarted adding an insn interface to GPCTRs.
Tim Ousley [Wed, 18 Apr 2001 20:57:09 +0000 (20:57 +0000)]
started adding an insn interface to GPCTRs.

23 years agoGPCTR_Begin_Event_Counting() functions now, although it isn't very flexible.
Tim Ousley [Tue, 17 Apr 2001 21:47:02 +0000 (21:47 +0000)]
GPCTR_Begin_Event_Counting() functions now, although it isn't very flexible.

23 years agofixed some problems with last change trying to dereferency s->async in cmdtest, and...
Frank Mori Hess [Tue, 17 Apr 2001 21:24:24 +0000 (21:24 +0000)]
fixed some problems with last change trying to dereferency s->async in cmdtest, and merged gain lookup tables into board struct

23 years agoadded checking of chanlist against limitations of das800 autoscan mode
Frank Mori Hess [Tue, 17 Apr 2001 20:53:49 +0000 (20:53 +0000)]
added checking of chanlist against limitations of das800 autoscan mode

23 years agoadded ni_set_bits(dev,register,bits, value) to share access to interrupt and
Tim Ousley [Tue, 17 Apr 2001 20:52:04 +0000 (20:52 +0000)]
added ni_set_bits(dev,register,bits, value) to share access to interrupt and
pfi registers.  This should let AI, AO, and CTR code all share the interrupts.
Some of the GPCTR functions appear to work now in kernel tests.

23 years agofixed unresolved symbol problem due to merging of free_resources and _detach functions
Frank Mori Hess [Tue, 17 Apr 2001 20:42:37 +0000 (20:42 +0000)]
fixed unresolved symbol problem due to merging of free_resources and _detach functions

23 years agoadded functions to do simple event counting...no API and no way to test it
Tim Ousley [Fri, 13 Apr 2001 22:36:27 +0000 (22:36 +0000)]
added functions to do simple event counting...no API and no way to test it
yet, but its coming...

23 years agowritew() had its arguments reversed.
David Schleef [Fri, 13 Apr 2001 10:31:19 +0000 (10:31 +0000)]
writew() had its arguments reversed.

23 years agoTim Ousley 4/12/01: consolidated some constants in ni_stc.h and added some
Tim Ousley [Thu, 12 Apr 2001 21:36:07 +0000 (21:36 +0000)]
Tim Ousley 4/12/01: consolidated some constants in ni_stc.h and added some
low level GPCTR specific writes to ni_mio_common.c

23 years agoTim Ousley 4/12/01: gpct_mode0,gpct_mode1 and other GPCTR variables are now
Tim Ousley [Thu, 12 Apr 2001 20:24:46 +0000 (20:24 +0000)]
Tim Ousley 4/12/01: gpct_mode0,gpct_mode1 and other GPCTR variables are now
stored as an array for future scalability to non STC GPCTR chips. Some
function stubs are in ni_mio_common.c for GPCTR low level writes.

23 years agomore migration to insn
David Schleef [Wed, 11 Apr 2001 07:20:35 +0000 (07:20 +0000)]
more migration to insn

23 years agoDeleted trig related code.
David Schleef [Wed, 11 Apr 2001 05:51:14 +0000 (05:51 +0000)]
Deleted trig related code.

23 years agoAdded AO readback and DIO bits and DIO config.
David Schleef [Wed, 11 Apr 2001 05:50:38 +0000 (05:50 +0000)]
Added AO readback and DIO bits and DIO config.

23 years agoMigrating drivers from trig to insn
David Schleef [Wed, 11 Apr 2001 05:08:12 +0000 (05:08 +0000)]
Migrating drivers from trig to insn

23 years agoadded RANGE_mA
David Schleef [Wed, 11 Apr 2001 03:37:22 +0000 (03:37 +0000)]
added RANGE_mA

23 years agoTim Ousley 4/10/01: added comments explaining how to modify
Tim Ousley [Tue, 10 Apr 2001 19:47:52 +0000 (19:47 +0000)]
Tim Ousley 4/10/01: added comments explaining how to modify
mite_ll_from_kvmem, for continuous acquisition.

23 years agoTim Ousley 4/10/01: MITE DMA now works correctly for finite acquisitions
Tim Ousley [Tue, 10 Apr 2001 16:45:58 +0000 (16:45 +0000)]
Tim Ousley 4/10/01: MITE DMA now works correctly for finite acquisitions
smaller than the prealloc bufsz.  uncomment #define PCIDMA in ni_pcimio.c

23 years agoversion bump
David Schleef [Tue, 10 Apr 2001 11:46:07 +0000 (11:46 +0000)]
version bump

23 years agoChange from trig to insn r0_7_58
David Schleef [Mon, 9 Apr 2001 09:29:13 +0000 (09:29 +0000)]
Change from trig to insn

23 years agofixed call of request_region() with uninitialized dev->iobase
David Schleef [Mon, 9 Apr 2001 06:19:42 +0000 (06:19 +0000)]
fixed call of request_region() with uninitialized dev->iobase

23 years agodas1600 name change
David Schleef [Mon, 9 Apr 2001 06:15:28 +0000 (06:15 +0000)]
das1600 name change

23 years agoFix for das1600 name change
David Schleef [Mon, 9 Apr 2001 06:15:12 +0000 (06:15 +0000)]
Fix for das1600 name change

23 years agoadded (commented) definition of USE_PCIDMA
David Schleef [Mon, 9 Apr 2001 05:46:02 +0000 (05:46 +0000)]
added (commented) definition of USE_PCIDMA

23 years agoTried to integrate patch from Tim Ousley
David Schleef [Mon, 9 Apr 2001 05:32:37 +0000 (05:32 +0000)]
Tried to integrate patch from Tim Ousley

23 years agoFix linking of rt_pend_tq
David Schleef [Mon, 9 Apr 2001 05:03:46 +0000 (05:03 +0000)]
Fix linking of rt_pend_tq

23 years agoadded buffer overrun check to bufinfo ioctl
Frank Mori Hess [Sun, 8 Apr 2001 22:22:02 +0000 (22:22 +0000)]
added buffer overrun check to bufinfo ioctl

23 years ago converted some left over irq.h to spinlock.h
Frank Mori Hess [Sun, 8 Apr 2001 22:08:09 +0000 (22:08 +0000)]
 converted some left over irq.h to spinlock.h

23 years agopatch from Michal
David Schleef [Sun, 8 Apr 2001 01:48:16 +0000 (01:48 +0000)]
patch from Michal

23 years agoSpinlocks were moved to linux/spinlock.h.
David Schleef [Sun, 8 Apr 2001 01:41:24 +0000 (01:41 +0000)]
Spinlocks were moved to linux/spinlock.h.

23 years agoadded explicit initialization of devpriv->spinlock
Frank Mori Hess [Fri, 6 Apr 2001 23:24:19 +0000 (23:24 +0000)]
added explicit initialization of devpriv->spinlock

23 years agoadded buffer info ioctl
Frank Mori Hess [Fri, 6 Apr 2001 23:13:30 +0000 (23:13 +0000)]
added buffer info ioctl

23 years agoEnabled more drivers
David Schleef [Fri, 6 Apr 2001 22:57:46 +0000 (22:57 +0000)]
Enabled more drivers

23 years agoMite additions from Tim Ousley
David Schleef [Fri, 6 Apr 2001 22:55:53 +0000 (22:55 +0000)]
Mite additions from Tim Ousley

23 years agoI think this fixes building rt_pend_tq repeatedly
David Schleef [Fri, 6 Apr 2001 22:54:16 +0000 (22:54 +0000)]
I think this fixes building rt_pend_tq repeatedly

23 years agoFixed some stuff discovered by check_driver
David Schleef [Tue, 3 Apr 2001 23:48:23 +0000 (23:48 +0000)]
Fixed some stuff discovered by check_driver

23 years agomade comedi_spinlock functions do some type checking for standard linux and rtlinux...
Frank Mori Hess [Tue, 3 Apr 2001 23:45:56 +0000 (23:45 +0000)]
made comedi_spinlock functions do some type checking for standard linux and rtlinux spinlocks

23 years agoremoved two repeated #include directives
Frank Mori Hess [Tue, 3 Apr 2001 23:37:31 +0000 (23:37 +0000)]
removed two repeated #include directives

23 years agomoved file, since that's where it's expected.
David Schleef [Tue, 3 Apr 2001 09:59:00 +0000 (09:59 +0000)]
moved file, since that's where it's expected.

23 years agoNew driver from Michal Dobes
David Schleef [Tue, 3 Apr 2001 09:32:32 +0000 (09:32 +0000)]
New driver from Michal Dobes

23 years agoPatch from Michal Dobes
David Schleef [Tue, 3 Apr 2001 09:30:57 +0000 (09:30 +0000)]
Patch from Michal Dobes

23 years agoFixed insn_write bug.
David Schleef [Tue, 3 Apr 2001 09:24:22 +0000 (09:24 +0000)]
Fixed insn_write bug.

23 years agoFixed request_region() being called with uninitialized value.
David Schleef [Tue, 3 Apr 2001 09:23:38 +0000 (09:23 +0000)]
Fixed request_region() being called with uninitialized value.

23 years agoFix bug in ao code related to warning about return value !=
David Schleef [Tue, 3 Apr 2001 09:23:01 +0000 (09:23 +0000)]
Fix bug in ao code related to warning about return value !=
insn.n.  Also fixed ao range to be +/- 5V.

23 years agoMore checks of dubious relevance
David Schleef [Tue, 3 Apr 2001 09:21:01 +0000 (09:21 +0000)]
More checks of dubious relevance

23 years agofixed the spinlock code for the way it is _supposed_ to be.
David Schleef [Tue, 3 Apr 2001 09:20:26 +0000 (09:20 +0000)]
fixed the spinlock code for the way it is _supposed_ to be.
If it doesn't work, it needs to be fixed elsewhere. (I think)

23 years agoFixes for comedi_rt_timer. Still needs work; doesn't even
David Schleef [Tue, 3 Apr 2001 09:19:10 +0000 (09:19 +0000)]
Fixes for comedi_rt_timer.  Still needs work; doesn't even
compile right now.

23 years agofixed previous over-eager to change things that dont need to change patch, real probl...
Frank Mori Hess [Fri, 30 Mar 2001 20:31:59 +0000 (20:31 +0000)]
fixed previous over-eager to change things that dont need to change patch, real problem was just one line