diff options
author | David Schleef | 2008-11-05 05:29:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-01-06 22:52:16 +0100 |
commit | ed9eccbe8970f6eedc1b978c157caf1251a896d4 (patch) | |
tree | 07ac30d0a81af1f75f7ca40f32926d370d195107 /drivers/staging/comedi/rt_pend_tq.h | |
parent | Staging: benet: cleanup a check while posting rx buffers (diff) | |
download | kernel-qcow2-linux-ed9eccbe8970f6eedc1b978c157caf1251a896d4.tar.gz kernel-qcow2-linux-ed9eccbe8970f6eedc1b978c157caf1251a896d4.tar.xz kernel-qcow2-linux-ed9eccbe8970f6eedc1b978c157caf1251a896d4.zip |
Staging: add comedi core
This adds the Comedi core to the staging tree.
This is a data acquision infrastructure for Linux, providing a common
interface for these types of drivers.
Taken directly from the comedi git tree, with only minor tweaks
by Greg to get it to build properly within the kernel tree.
From: David Schleef <ds@schleef.org>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Shawn Bohrer <shawn.bohrer@gmail.com>
Signed-off-by: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi/rt_pend_tq.h')
-rw-r--r-- | drivers/staging/comedi/rt_pend_tq.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/staging/comedi/rt_pend_tq.h b/drivers/staging/comedi/rt_pend_tq.h new file mode 100644 index 000000000000..01ed71bf409d --- /dev/null +++ b/drivers/staging/comedi/rt_pend_tq.h @@ -0,0 +1,10 @@ +#define RT_PEND_TQ_SIZE 16 +struct rt_pend_tq { + void (*func) (int arg1, void *arg2); + int arg1; + void *arg2; +}; +extern int rt_pend_call(void (*func) (int arg1, void *arg2), int arg1, + void *arg2); +extern int rt_pend_tq_init(void); +extern void rt_pend_tq_cleanup(void); |