equal
deleted
inserted
replaced
98 /*****************************************************************************/ |
98 /*****************************************************************************/ |
99 |
99 |
100 int request_lock(void *data) |
100 int request_lock(void *data) |
101 { |
101 { |
102 rt_sem_wait(&master_sem); |
102 rt_sem_wait(&master_sem); |
103 return 0; |
103 return 0; // access allowed |
104 } |
104 } |
105 |
105 |
106 /*****************************************************************************/ |
106 /*****************************************************************************/ |
107 |
107 |
108 void release_lock(void *data) |
108 void release_lock(void *data) |
187 #ifdef ASYNC |
187 #ifdef ASYNC |
188 // send once and wait... |
188 // send once and wait... |
189 ecrt_master_prepare_async_io(master); |
189 ecrt_master_prepare_async_io(master); |
190 #endif |
190 #endif |
191 |
191 |
192 #if 0 |
192 #if 1 |
193 if (ecrt_master_start_eoe(master)) { |
193 if (ecrt_master_start_eoe(master)) { |
194 printk(KERN_ERR "Failed to start EoE processing!\n"); |
194 printk(KERN_ERR "Failed to start EoE processing!\n"); |
195 goto out_deactivate; |
195 goto out_deactivate; |
196 } |
196 } |
197 #endif |
197 #endif |