master/master.h
branchstable-1.1
changeset 1731 60b2aad9d40b
parent 1728 4cf9c3e9f0bd
child 1732 1cc865ba17c2
--- a/master/master.h	Thu Sep 28 08:31:33 2006 +0000
+++ b/master/master.h	Fri Oct 13 10:07:10 2006 +0000
@@ -45,6 +45,7 @@
 #include <linux/sysfs.h>
 #include <linux/timer.h>
 #include <asm/atomic.h>
+#include <asm/semaphore.h>
 
 #include "device.h"
 #include "domain.h"
@@ -98,6 +99,7 @@
     struct kobject kobj; /**< kobject */
 
     ec_device_t *device; /**< EtherCAT device */
+    struct semaphore device_sem; /**< device semaphore */
 
     ec_fsm_t fsm; /**< master state machine */
     ec_master_mode_t mode; /**< master mode */