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 4 |
59 #define EC_IOCTL_VERSION_MAGIC 5 |
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) |
114 #define EC_IOCTL_SC_DC EC_IOW(0x20, ec_ioctl_config_t) |
114 #define EC_IOCTL_SC_DC EC_IOW(0x20, ec_ioctl_config_t) |
115 #define EC_IOCTL_SC_SDO EC_IOW(0x31, ec_ioctl_sc_sdo_t) |
115 #define EC_IOCTL_SC_SDO EC_IOW(0x31, ec_ioctl_sc_sdo_t) |
116 #define EC_IOCTL_SC_SDO_REQUEST EC_IOWR(0x32, ec_ioctl_sdo_request_t) |
116 #define EC_IOCTL_SC_SDO_REQUEST EC_IOWR(0x32, ec_ioctl_sdo_request_t) |
117 #define EC_IOCTL_SC_VOE EC_IOWR(0x33, ec_ioctl_voe_t) |
117 #define EC_IOCTL_SC_VOE EC_IOWR(0x33, ec_ioctl_voe_t) |
118 #define EC_IOCTL_SC_STATE EC_IOWR(0x34, ec_ioctl_sc_state_t) |
118 #define EC_IOCTL_SC_STATE EC_IOWR(0x34, ec_ioctl_sc_state_t) |
119 #define EC_IOCTL_DOMAIN_OFFSET EC_IO(0x35) |
119 #define EC_IOCTL_SC_IDN EC_IOW(0x35, ec_ioctl_sc_idn_t) |
120 #define EC_IOCTL_DOMAIN_PROCESS EC_IO(0x36) |
120 #define EC_IOCTL_DOMAIN_OFFSET EC_IO(0x36) |
121 #define EC_IOCTL_DOMAIN_QUEUE EC_IO(0x37) |
121 #define EC_IOCTL_DOMAIN_PROCESS EC_IO(0x37) |
122 #define EC_IOCTL_DOMAIN_STATE EC_IOWR(0x38, ec_ioctl_domain_state_t) |
122 #define EC_IOCTL_DOMAIN_QUEUE EC_IO(0x38) |
123 #define EC_IOCTL_SDO_REQUEST_TIMEOUT EC_IOWR(0x39, ec_ioctl_sdo_request_t) |
123 #define EC_IOCTL_DOMAIN_STATE EC_IOWR(0x39, ec_ioctl_domain_state_t) |
124 #define EC_IOCTL_SDO_REQUEST_STATE EC_IOWR(0x3a, ec_ioctl_sdo_request_t) |
124 #define EC_IOCTL_SDO_REQUEST_TIMEOUT EC_IOWR(0x3a, ec_ioctl_sdo_request_t) |
125 #define EC_IOCTL_SDO_REQUEST_READ EC_IOWR(0x3b, ec_ioctl_sdo_request_t) |
125 #define EC_IOCTL_SDO_REQUEST_STATE EC_IOWR(0x3b, ec_ioctl_sdo_request_t) |
126 #define EC_IOCTL_SDO_REQUEST_WRITE EC_IOWR(0x3c, ec_ioctl_sdo_request_t) |
126 #define EC_IOCTL_SDO_REQUEST_READ EC_IOWR(0x3c, ec_ioctl_sdo_request_t) |
127 #define EC_IOCTL_SDO_REQUEST_DATA EC_IOWR(0x3d, ec_ioctl_sdo_request_t) |
127 #define EC_IOCTL_SDO_REQUEST_WRITE EC_IOWR(0x3d, ec_ioctl_sdo_request_t) |
128 #define EC_IOCTL_VOE_SEND_HEADER EC_IOW(0x3e, ec_ioctl_voe_t) |
128 #define EC_IOCTL_SDO_REQUEST_DATA EC_IOWR(0x3e, ec_ioctl_sdo_request_t) |
129 #define EC_IOCTL_VOE_REC_HEADER EC_IOWR(0x3f, ec_ioctl_voe_t) |
129 #define EC_IOCTL_VOE_SEND_HEADER EC_IOW(0x3f, ec_ioctl_voe_t) |
130 #define EC_IOCTL_VOE_READ EC_IOW(0x40, ec_ioctl_voe_t) |
130 #define EC_IOCTL_VOE_REC_HEADER EC_IOWR(0x40, ec_ioctl_voe_t) |
131 #define EC_IOCTL_VOE_READ_NOSYNC EC_IOW(0x41, ec_ioctl_voe_t) |
131 #define EC_IOCTL_VOE_READ EC_IOW(0x41, ec_ioctl_voe_t) |
132 #define EC_IOCTL_VOE_WRITE EC_IOWR(0x42, ec_ioctl_voe_t) |
132 #define EC_IOCTL_VOE_READ_NOSYNC EC_IOW(0x42, ec_ioctl_voe_t) |
133 #define EC_IOCTL_VOE_EXEC EC_IOWR(0x43, ec_ioctl_voe_t) |
133 #define EC_IOCTL_VOE_WRITE EC_IOWR(0x43, ec_ioctl_voe_t) |
134 #define EC_IOCTL_VOE_DATA EC_IOWR(0x44, ec_ioctl_voe_t) |
134 #define EC_IOCTL_VOE_EXEC EC_IOWR(0x44, ec_ioctl_voe_t) |
135 #define EC_IOCTL_SET_SEND_INTERVAL EC_IOW(0x45, size_t) |
135 #define EC_IOCTL_VOE_DATA EC_IOWR(0x45, ec_ioctl_voe_t) |
|
136 #define EC_IOCTL_SET_SEND_INTERVAL EC_IOW(0x46, size_t) |
136 |
137 |
137 /*****************************************************************************/ |
138 /*****************************************************************************/ |
138 |
139 |
139 #define EC_IOCTL_STRING_SIZE 64 |
140 #define EC_IOCTL_STRING_SIZE 64 |
140 |
141 |