summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/rt_pend_tq.h
diff options
context:
space:
mode:
authorDavid Schleef2008-11-05 05:29:31 +0100
committerGreg Kroah-Hartman2009-01-06 22:52:16 +0100
commited9eccbe8970f6eedc1b978c157caf1251a896d4 (patch)
tree07ac30d0a81af1f75f7ca40f32926d370d195107 /drivers/staging/comedi/rt_pend_tq.h
parentStaging: benet: cleanup a check while posting rx buffers (diff)
downloadkernel-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.h10
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);