equal
deleted
inserted
replaced
44 #include <linux/interrupt.h> |
44 #include <linux/interrupt.h> |
45 |
45 |
46 #include "../include/ecrt.h" |
46 #include "../include/ecrt.h" |
47 #include "../devices/ecdev.h" |
47 #include "../devices/ecdev.h" |
48 #include "globals.h" |
48 #include "globals.h" |
|
49 |
|
50 #ifdef EC_DBG_IF |
49 #include "debug.h" |
51 #include "debug.h" |
|
52 #endif |
50 |
53 |
51 /*****************************************************************************/ |
54 /*****************************************************************************/ |
52 |
55 |
53 /** |
56 /** |
54 EtherCAT device. |
57 EtherCAT device. |
63 uint8_t open; /**< true, if the net_device has been opened */ |
66 uint8_t open; /**< true, if the net_device has been opened */ |
64 struct sk_buff *tx_skb; /**< transmit socket buffer */ |
67 struct sk_buff *tx_skb; /**< transmit socket buffer */ |
65 ec_isr_t isr; /**< pointer to the device's interrupt service routine */ |
68 ec_isr_t isr; /**< pointer to the device's interrupt service routine */ |
66 struct module *module; /**< pointer to the device's owning module */ |
69 struct module *module; /**< pointer to the device's owning module */ |
67 uint8_t link_state; /**< device link state */ |
70 uint8_t link_state; /**< device link state */ |
|
71 #ifdef EC_DBG_IF |
68 ec_debug_t dbg; /**< debug device */ |
72 ec_debug_t dbg; /**< debug device */ |
|
73 #endif |
69 }; |
74 }; |
70 |
75 |
71 /*****************************************************************************/ |
76 /*****************************************************************************/ |
72 |
77 |
73 int ec_device_init(ec_device_t *, ec_master_t *, struct net_device *, |
78 int ec_device_init(ec_device_t *, ec_master_t *, struct net_device *, |