master/master.h
changeset 647 dc556a8c8fed
parent 646 fbbd4e54e031
child 656 370aa8c2d1b1
--- a/master/master.h	Fri Mar 09 15:11:29 2007 +0000
+++ b/master/master.h	Mon Mar 12 08:42:02 2007 +0000
@@ -45,7 +45,6 @@
 #include <linux/sysfs.h>
 #include <linux/timer.h>
 #include <linux/wait.h>
-#include <asm/atomic.h>
 #include <asm/semaphore.h>
 
 #include "device.h"
@@ -93,10 +92,9 @@
 
 struct ec_master
 {
-    atomic_t available; /**< zero, if the master is reserved for RT */
+    struct kobject kobj; /**< kobject */
     unsigned int index; /**< master index */
-
-    struct kobject kobj; /**< kobject */
+    unsigned int reserved; /**< non-zero, if the master is reserved for RT */
 
     ec_device_t main_device; /**< EtherCAT device */
     const uint8_t *main_mac; /**< MAC address of main device */