master/ioctl.h
branchredundancy
changeset 2372 d895cd1db2bf
parent 2369 2536d60dea6e
child 2374 e898451c054a
equal deleted inserted replaced
2371:a5052376202b 2372:d895cd1db2bf
    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 15
    59 #define EC_IOCTL_VERSION_MAGIC 16
    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)
   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 rx_bytes;
   172         uint64_t tx_errors;
   172         uint64_t tx_errors;
   173         uint32_t tx_frame_rates[EC_RATE_COUNT];
   173         int32_t tx_frame_rates[EC_RATE_COUNT];
   174         uint32_t rx_frame_rates[EC_RATE_COUNT];
   174         int32_t rx_frame_rates[EC_RATE_COUNT];
   175         uint32_t tx_byte_rates[EC_RATE_COUNT];
   175         int32_t tx_byte_rates[EC_RATE_COUNT];
   176         uint32_t rx_byte_rates[EC_RATE_COUNT];
   176         int32_t rx_byte_rates[EC_RATE_COUNT];
   177     } devices[EC_NUM_DEVICES];
   177     } devices[EC_NUM_DEVICES];
   178     uint64_t tx_count;
   178     uint64_t tx_count;
   179     uint64_t rx_count;
   179     uint64_t rx_count;
   180     uint64_t tx_bytes;
   180     uint64_t tx_bytes;
   181     uint64_t rx_bytes;
   181     uint64_t rx_bytes;
   182     uint32_t tx_frame_rates[EC_RATE_COUNT];
   182     int32_t tx_frame_rates[EC_RATE_COUNT];
   183     uint32_t rx_frame_rates[EC_RATE_COUNT];
   183     int32_t rx_frame_rates[EC_RATE_COUNT];
   184     uint32_t tx_byte_rates[EC_RATE_COUNT];
   184     int32_t tx_byte_rates[EC_RATE_COUNT];
   185     uint32_t rx_byte_rates[EC_RATE_COUNT];
   185     int32_t rx_byte_rates[EC_RATE_COUNT];
   186     int32_t loss_rates[EC_RATE_COUNT];
   186     int32_t loss_rates[EC_RATE_COUNT];
   187     uint64_t app_time;
   187     uint64_t app_time;
   188     uint16_t ref_clock;
   188     uint16_t ref_clock;
   189 } ec_ioctl_master_t;
   189 } ec_ioctl_master_t;
   190 
   190