master/ioctl.h
branchstable-1.5
changeset 2453 d461b1f07296
parent 2447 e93efb4af231
child 2487 ccafdf1e261f
equal deleted inserted replaced
2452:abc1d1caead7 2453:d461b1f07296
    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 23
    59 #define EC_IOCTL_VERSION_MAGIC 24
    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)
   185         uint64_t tx_errors;
   185         uint64_t tx_errors;
   186         int32_t tx_frame_rates[EC_RATE_COUNT];
   186         int32_t tx_frame_rates[EC_RATE_COUNT];
   187         int32_t rx_frame_rates[EC_RATE_COUNT];
   187         int32_t rx_frame_rates[EC_RATE_COUNT];
   188         int32_t tx_byte_rates[EC_RATE_COUNT];
   188         int32_t tx_byte_rates[EC_RATE_COUNT];
   189         int32_t rx_byte_rates[EC_RATE_COUNT];
   189         int32_t rx_byte_rates[EC_RATE_COUNT];
   190     } devices[EC_NUM_DEVICES];
   190     } devices[EC_MAX_NUM_DEVICES];
       
   191     uint32_t num_devices;
   191     uint64_t tx_count;
   192     uint64_t tx_count;
   192     uint64_t rx_count;
   193     uint64_t rx_count;
   193     uint64_t tx_bytes;
   194     uint64_t tx_bytes;
   194     uint64_t rx_bytes;
   195     uint64_t rx_bytes;
   195     int32_t tx_frame_rates[EC_RATE_COUNT];
   196     int32_t tx_frame_rates[EC_RATE_COUNT];
   302     uint32_t index;
   303     uint32_t index;
   303 
   304 
   304     // outputs
   305     // outputs
   305     uint32_t data_size;
   306     uint32_t data_size;
   306     uint32_t logical_base_address;
   307     uint32_t logical_base_address;
   307     uint16_t working_counter[EC_NUM_DEVICES];
   308     uint16_t working_counter[EC_MAX_NUM_DEVICES];
   308     uint16_t expected_working_counter;
   309     uint16_t expected_working_counter;
   309     uint32_t fmmu_count;
   310     uint32_t fmmu_count;
   310 } ec_ioctl_domain_t;
   311 } ec_ioctl_domain_t;
   311 
   312 
   312 /*****************************************************************************/
   313 /*****************************************************************************/