equal
deleted
inserted
replaced
76 struct ec_eoe |
76 struct ec_eoe |
77 { |
77 { |
78 struct list_head list; /**< list item */ |
78 struct list_head list; /**< list item */ |
79 ec_slave_t *slave; /**< pointer to the corresponding slave */ |
79 ec_slave_t *slave; /**< pointer to the corresponding slave */ |
80 ec_datagram_t datagram; /**< datagram */ |
80 ec_datagram_t datagram; /**< datagram */ |
81 ec_mailbox_t mbox; /**< mailbox */ |
|
82 unsigned int queue_datagram; /**< the datagram is ready for queuing */ |
81 unsigned int queue_datagram; /**< the datagram is ready for queuing */ |
83 void (*state)(ec_eoe_t *); /**< state function for the state machine */ |
82 void (*state)(ec_eoe_t *); /**< state function for the state machine */ |
84 struct net_device *dev; /**< net_device for virtual ethernet device */ |
83 struct net_device *dev; /**< net_device for virtual ethernet device */ |
85 struct net_device_stats stats; /**< device statistics */ |
84 struct net_device_stats stats; /**< device statistics */ |
86 unsigned int opened; /**< net_device is opened */ |
85 unsigned int opened; /**< net_device is opened */ |
96 |
95 |
97 struct list_head tx_queue; /**< queue for frames to send */ |
96 struct list_head tx_queue; /**< queue for frames to send */ |
98 unsigned int tx_queue_size; /**< Transmit queue size. */ |
97 unsigned int tx_queue_size; /**< Transmit queue size. */ |
99 unsigned int tx_queue_active; /**< kernel netif queue started */ |
98 unsigned int tx_queue_active; /**< kernel netif queue started */ |
100 unsigned int tx_queued_frames; /**< number of frames in the queue */ |
99 unsigned int tx_queued_frames; /**< number of frames in the queue */ |
101 struct ec_mutex_t tx_queue_mutex; /**< Mutex for the send queue. */ |
100 struct semaphore tx_queue_sem; /**< Semaphore for the send queue. */ |
102 ec_eoe_frame_t *tx_frame; /**< current TX frame */ |
101 ec_eoe_frame_t *tx_frame; /**< current TX frame */ |
103 uint8_t tx_frame_number; /**< number of the transmitted frame */ |
102 uint8_t tx_frame_number; /**< number of the transmitted frame */ |
104 uint8_t tx_fragment_number; /**< number of the fragment */ |
103 uint8_t tx_fragment_number; /**< number of the fragment */ |
105 size_t tx_offset; /**< number of octets sent */ |
104 size_t tx_offset; /**< number of octets sent */ |
106 uint32_t tx_counter; /**< octets transmitted during last second */ |
105 uint32_t tx_counter; /**< octets transmitted during last second */ |