master/ethernet.h
branchstable-1.0
changeset 1624 9dc190591c0f
parent 1623 05622513f627
equal deleted inserted replaced
1623:05622513f627 1624:9dc190591c0f
    42 #include <linux/netdevice.h>
    42 #include <linux/netdevice.h>
    43 
    43 
    44 #include "../include/ecrt.h"
    44 #include "../include/ecrt.h"
    45 #include "globals.h"
    45 #include "globals.h"
    46 #include "slave.h"
    46 #include "slave.h"
    47 #include "command.h"
    47 #include "datagram.h"
    48 
    48 
    49 /*****************************************************************************/
    49 /*****************************************************************************/
    50 
    50 
    51 /**
    51 /**
    52    Queued frame structure.
    52    Queued frame structure.
    71 
    71 
    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_command_t command; /**< command */
    76     ec_datagram_t datagram; /**< datagram */
    77     void (*state)(ec_eoe_t *); /**< state function for the state machine */
    77     void (*state)(ec_eoe_t *); /**< state function for the state machine */
    78     struct net_device *dev; /**< net_device for virtual ethernet device */
    78     struct net_device *dev; /**< net_device for virtual ethernet device */
    79     struct net_device_stats stats; /**< device statistics */
    79     struct net_device_stats stats; /**< device statistics */
    80     unsigned int opened; /**< net_device is opened */
    80     unsigned int opened; /**< net_device is opened */
    81     struct sk_buff *rx_skb; /**< current rx socket buffer */
    81     struct sk_buff *rx_skb; /**< current rx socket buffer */