equal
deleted
inserted
replaced
54 |
54 |
55 /** EtherCAT master ioctl() version magic. |
55 /** EtherCAT master ioctl() version magic. |
56 * |
56 * |
57 * Increment this when changing the ioctl interface! |
57 * Increment this when changing the ioctl interface! |
58 */ |
58 */ |
59 #define EC_IOCTL_VERSION_MAGIC 12 |
59 #define EC_IOCTL_VERSION_MAGIC 14 |
60 |
60 |
61 // Command-line tool |
61 // Command-line tool |
62 #define EC_IOCTL_MODULE EC_IOR(0x00, ec_ioctl_module_t) |
62 #define EC_IOCTL_MODULE EC_IOR(0x00, ec_ioctl_module_t) |
63 #define EC_IOCTL_MASTER EC_IOR(0x01, ec_ioctl_master_t) |
63 #define EC_IOCTL_MASTER EC_IOR(0x01, ec_ioctl_master_t) |
64 #define EC_IOCTL_SLAVE EC_IOWR(0x02, ec_ioctl_slave_t) |
64 #define EC_IOCTL_SLAVE EC_IOWR(0x02, ec_ioctl_slave_t) |
166 uint8_t attached; |
166 uint8_t attached; |
167 uint8_t link_state; |
167 uint8_t link_state; |
168 uint64_t tx_count; |
168 uint64_t tx_count; |
169 uint64_t rx_count; |
169 uint64_t rx_count; |
170 uint64_t tx_bytes; |
170 uint64_t tx_bytes; |
|
171 uint64_t rx_bytes; |
171 uint64_t tx_errors; |
172 uint64_t tx_errors; |
172 uint32_t tx_frame_rates[EC_RATE_COUNT]; |
173 uint32_t tx_frame_rates[EC_RATE_COUNT]; |
|
174 uint32_t rx_frame_rates[EC_RATE_COUNT]; |
173 uint32_t tx_byte_rates[EC_RATE_COUNT]; |
175 uint32_t tx_byte_rates[EC_RATE_COUNT]; |
174 int32_t loss_rates[EC_RATE_COUNT]; |
176 uint32_t rx_byte_rates[EC_RATE_COUNT]; |
175 } devices[2]; |
177 } devices[2]; |
|
178 uint64_t tx_count; |
|
179 uint64_t rx_count; |
|
180 uint64_t tx_bytes; |
|
181 uint64_t rx_bytes; |
|
182 uint32_t tx_frame_rates[EC_RATE_COUNT]; |
|
183 uint32_t rx_frame_rates[EC_RATE_COUNT]; |
|
184 uint32_t tx_byte_rates[EC_RATE_COUNT]; |
|
185 uint32_t rx_byte_rates[EC_RATE_COUNT]; |
|
186 int32_t loss_rates[EC_RATE_COUNT]; |
176 uint64_t app_time; |
187 uint64_t app_time; |
177 uint16_t ref_clock; |
188 uint16_t ref_clock; |
178 } ec_ioctl_master_t; |
189 } ec_ioctl_master_t; |
179 |
190 |
180 /*****************************************************************************/ |
191 /*****************************************************************************/ |