master/ethernet.h
changeset 721 ebc2fd3e09e5
parent 661 bc1de1362efb
child 1209 8be462afb7f4
child 1685 399ef727bf62
equal deleted inserted replaced
720:9664a19978dd 721:ebc2fd3e09e5
    72 struct ec_eoe
    72 struct ec_eoe
    73 {
    73 {
    74     struct list_head list; /**< list item */
    74     struct list_head list; /**< list item */
    75     ec_slave_t *slave; /**< pointer to the corresponding slave */
    75     ec_slave_t *slave; /**< pointer to the corresponding slave */
    76     ec_datagram_t datagram; /**< datagram */
    76     ec_datagram_t datagram; /**< datagram */
       
    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 */
    81     unsigned long rate_jiffies; /**< time of last rate output */
    82     unsigned long rate_jiffies; /**< time of last rate output */
   100 /*****************************************************************************/
   101 /*****************************************************************************/
   101 
   102 
   102 int ec_eoe_init(ec_eoe_t *, ec_slave_t *);
   103 int ec_eoe_init(ec_eoe_t *, ec_slave_t *);
   103 void ec_eoe_clear(ec_eoe_t *);
   104 void ec_eoe_clear(ec_eoe_t *);
   104 void ec_eoe_run(ec_eoe_t *);
   105 void ec_eoe_run(ec_eoe_t *);
       
   106 void ec_eoe_queue(ec_eoe_t *);
   105 int ec_eoe_is_open(const ec_eoe_t *);
   107 int ec_eoe_is_open(const ec_eoe_t *);
   106 
   108 
   107 /*****************************************************************************/
   109 /*****************************************************************************/