master/ethernet.h
changeset 203 c1f305e339c6
parent 199 04ecf40fc2e9
child 210 1cc6bcb1e6ae
--- 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 <linux/list.h>
+#include <linux/netdevice.h>
 
 #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 *);