diff -r d5141123a5af -r c1f305e339c6 master/ethernet.h --- a/master/ethernet.h Tue Apr 25 11:37:05 2006 +0000 +++ b/master/ethernet.h Tue Apr 25 11:39:33 2006 +0000 @@ -29,6 +29,7 @@ /*****************************************************************************/ #include +#include #include "../include/ecrt.h" #include "globals.h" @@ -62,12 +63,13 @@ struct list_head list; /**< list item */ ec_slave_t *slave; /**< pointer to the corresponding slave */ ec_eoe_state_t rx_state; /**< state of the state machine */ + struct net_device *dev; /**< net_device for virtual ethernet device */ } ec_eoe_t; /*****************************************************************************/ -void ec_eoe_init(ec_eoe_t *, ec_slave_t *); +int ec_eoe_init(ec_eoe_t *, ec_slave_t *); void ec_eoe_clear(ec_eoe_t *); void ec_eoe_run(ec_eoe_t *); void ec_eoe_print(const ec_eoe_t *);