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