From ed9eccbe8970f6eedc1b978c157caf1251a896d4 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 4 Nov 2008 20:29:31 -0800 Subject: 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 Cc: Ian Abbott Cc: Shawn Bohrer Signed-off-by: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/rt_pend_tq.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 drivers/staging/comedi/rt_pend_tq.h (limited to 'drivers/staging/comedi/rt_pend_tq.h') 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); -- cgit v1.2.3-55-g7522