master/ethernet.h
changeset 203 c1f305e339c6
parent 199 04ecf40fc2e9
child 210 1cc6bcb1e6ae
equal deleted inserted replaced
202:d5141123a5af 203:c1f305e339c6
    27 */
    27 */
    28 
    28 
    29 /*****************************************************************************/
    29 /*****************************************************************************/
    30 
    30 
    31 #include <linux/list.h>
    31 #include <linux/list.h>
       
    32 #include <linux/netdevice.h>
    32 
    33 
    33 #include "../include/ecrt.h"
    34 #include "../include/ecrt.h"
    34 #include "globals.h"
    35 #include "globals.h"
    35 #include "slave.h"
    36 #include "slave.h"
    36 #include "command.h"
    37 #include "command.h"
    60 typedef struct
    61 typedef struct
    61 {
    62 {
    62     struct list_head list; /**< list item */
    63     struct list_head list; /**< list item */
    63     ec_slave_t *slave; /**< pointer to the corresponding slave */
    64     ec_slave_t *slave; /**< pointer to the corresponding slave */
    64     ec_eoe_state_t rx_state; /**< state of the state machine */
    65     ec_eoe_state_t rx_state; /**< state of the state machine */
       
    66     struct net_device *dev; /**< net_device for virtual ethernet device */
    65 }
    67 }
    66 ec_eoe_t;
    68 ec_eoe_t;
    67 
    69 
    68 /*****************************************************************************/
    70 /*****************************************************************************/
    69 
    71 
    70 void ec_eoe_init(ec_eoe_t *, ec_slave_t *);
    72 int ec_eoe_init(ec_eoe_t *, ec_slave_t *);
    71 void ec_eoe_clear(ec_eoe_t *);
    73 void ec_eoe_clear(ec_eoe_t *);
    72 void ec_eoe_run(ec_eoe_t *);
    74 void ec_eoe_run(ec_eoe_t *);
    73 void ec_eoe_print(const ec_eoe_t *);
    75 void ec_eoe_print(const ec_eoe_t *);
    74 
    76 
    75 /*****************************************************************************/
    77 /*****************************************************************************/