master/master.h
changeset 226 07247920a7ba
parent 214 8beb86af5ed0
child 229 2cc0a7146958
--- a/master/master.h	Wed May 10 11:33:10 2006 +0000
+++ b/master/master.h	Wed May 10 11:51:05 2006 +0000
@@ -40,6 +40,14 @@
 
 /*****************************************************************************/
 
+// Uncomment this to do EoE within a kernel timer. Otherwise, it will be
+// done in a working queue.
+
+//#define EOE_TIMER
+
+
+/*****************************************************************************/
+
 /**
    EtherCAT master mode.
 */
@@ -100,7 +108,12 @@
     int (*request_cb)(void *); /**< lock request callback */
     void (*release_cb)(void *); /**< lock release callback */
     void *cb_data; /**< data parameter of locking callbacks */
+#ifdef EOE_TIMER
     struct timer_list eoe_timer; /** EoE timer object */
+#else
+    struct workqueue_struct *eoe_workqueue; /**< EoE workqueue */
+    struct work_struct eoe_work; /**< work structure for EoE workqueue */
+#endif
 };
 
 /*****************************************************************************/