master/ethernet.h
changeset 2589 2b9c78543663
parent 2253 5be97f6cc76a
child 2592 c075dd6b7eef
--- a/master/ethernet.h	Thu Sep 06 14:21:02 2012 +0200
+++ b/master/ethernet.h	Mon Nov 03 15:20:05 2014 +0100
@@ -78,7 +78,6 @@
     struct list_head list; /**< list item */
     ec_slave_t *slave; /**< pointer to the corresponding slave */
     ec_datagram_t datagram; /**< datagram */
-    ec_mailbox_t mbox; /**< mailbox */
     unsigned int queue_datagram; /**< the datagram is ready for queuing */
     void (*state)(ec_eoe_t *); /**< state function for the state machine */
     struct net_device *dev; /**< net_device for virtual ethernet device */
@@ -98,7 +97,7 @@
     unsigned int tx_queue_size; /**< Transmit queue size. */
     unsigned int tx_queue_active; /**< kernel netif queue started */
     unsigned int tx_queued_frames; /**< number of frames in the queue */
-    struct ec_mutex_t tx_queue_mutex; /**< Mutex for the send queue. */
+    struct semaphore tx_queue_sem; /**< Semaphore for the send queue. */
     ec_eoe_frame_t *tx_frame; /**< current TX frame */
     uint8_t tx_frame_number; /**< number of the transmitted frame */
     uint8_t tx_fragment_number; /**< number of the fragment */