equal
deleted
inserted
replaced
34 #include <linux/interrupt.h> |
34 #include <linux/interrupt.h> |
35 |
35 |
36 #include "../include/ecrt.h" |
36 #include "../include/ecrt.h" |
37 #include "../devices/ecdev.h" |
37 #include "../devices/ecdev.h" |
38 #include "globals.h" |
38 #include "globals.h" |
|
39 #include "debug.h" |
39 |
40 |
40 /*****************************************************************************/ |
41 /*****************************************************************************/ |
41 |
42 |
42 /** |
43 /** |
43 EtherCAT device. |
44 EtherCAT device. |
52 uint8_t open; /**< true, if the net_device has been opened */ |
53 uint8_t open; /**< true, if the net_device has been opened */ |
53 struct sk_buff *tx_skb; /**< transmit socket buffer */ |
54 struct sk_buff *tx_skb; /**< transmit socket buffer */ |
54 ec_isr_t isr; /**< pointer to the device's interrupt service routine */ |
55 ec_isr_t isr; /**< pointer to the device's interrupt service routine */ |
55 struct module *module; /**< pointer to the device's owning module */ |
56 struct module *module; /**< pointer to the device's owning module */ |
56 uint8_t link_state; /**< device link state */ |
57 uint8_t link_state; /**< device link state */ |
|
58 ec_debug_t dbg; /**< debug device */ |
57 }; |
59 }; |
58 |
60 |
59 /*****************************************************************************/ |
61 /*****************************************************************************/ |
60 |
62 |
61 int ec_device_init(ec_device_t *, ec_master_t *, struct net_device *, |
63 int ec_device_init(ec_device_t *, ec_master_t *, struct net_device *, |