master/ioctl.h
changeset 1200 ce1a65f06efc
parent 1183 d77f634ab0b5
child 1242 632a6b91f8e4
equal deleted inserted replaced
1199:30714bab3a04 1200:ce1a65f06efc
    70 #define EC_IOCTL_SLAVE_SDO_ENTRY      EC_IOWR(0x0b, ec_ioctl_slave_sdo_entry_t)
    70 #define EC_IOCTL_SLAVE_SDO_ENTRY      EC_IOWR(0x0b, ec_ioctl_slave_sdo_entry_t)
    71 #define EC_IOCTL_SLAVE_SDO_UPLOAD     EC_IOWR(0x0c, ec_ioctl_slave_sdo_upload_t)
    71 #define EC_IOCTL_SLAVE_SDO_UPLOAD     EC_IOWR(0x0c, ec_ioctl_slave_sdo_upload_t)
    72 #define EC_IOCTL_SLAVE_SDO_DOWNLOAD   EC_IOWR(0x0d, ec_ioctl_slave_sdo_download_t)
    72 #define EC_IOCTL_SLAVE_SDO_DOWNLOAD   EC_IOWR(0x0d, ec_ioctl_slave_sdo_download_t)
    73 #define EC_IOCTL_SLAVE_SII_READ       EC_IOWR(0x0e, ec_ioctl_slave_sii_t)
    73 #define EC_IOCTL_SLAVE_SII_READ       EC_IOWR(0x0e, ec_ioctl_slave_sii_t)
    74 #define EC_IOCTL_SLAVE_SII_WRITE       EC_IOW(0x0f, ec_ioctl_slave_sii_t)
    74 #define EC_IOCTL_SLAVE_SII_WRITE       EC_IOW(0x0f, ec_ioctl_slave_sii_t)
    75 #define EC_IOCTL_CONFIG               EC_IOWR(0x10, ec_ioctl_config_t)
    75 #define EC_IOCTL_SLAVE_PHY_READ       EC_IOWR(0x10, ec_ioctl_slave_phy_t)
    76 #define EC_IOCTL_CONFIG_PDO           EC_IOWR(0x11, ec_ioctl_config_pdo_t)
    76 #define EC_IOCTL_SLAVE_PHY_WRITE       EC_IOW(0x11, ec_ioctl_slave_phy_t)
    77 #define EC_IOCTL_CONFIG_PDO_ENTRY     EC_IOWR(0x12, ec_ioctl_config_pdo_entry_t)
    77 #define EC_IOCTL_CONFIG               EC_IOWR(0x12, ec_ioctl_config_t)
    78 #define EC_IOCTL_CONFIG_SDO           EC_IOWR(0x13, ec_ioctl_config_sdo_t)
    78 #define EC_IOCTL_CONFIG_PDO           EC_IOWR(0x13, ec_ioctl_config_pdo_t)
       
    79 #define EC_IOCTL_CONFIG_PDO_ENTRY     EC_IOWR(0x14, ec_ioctl_config_pdo_entry_t)
       
    80 #define EC_IOCTL_CONFIG_SDO           EC_IOWR(0x15, ec_ioctl_config_sdo_t)
    79 
    81 
    80 #define EC_IOCTL_STRING_SIZE 64
    82 #define EC_IOCTL_STRING_SIZE 64
    81 
    83 
    82 /*****************************************************************************/
    84 /*****************************************************************************/
    83 
    85 
   286 
   288 
   287 /*****************************************************************************/
   289 /*****************************************************************************/
   288 
   290 
   289 typedef struct {
   291 typedef struct {
   290     // inputs
   292     // inputs
       
   293     uint16_t slave_position;
       
   294     uint16_t offset;
       
   295     uint16_t length;
       
   296     uint8_t *data;
       
   297 } ec_ioctl_slave_phy_t;
       
   298 
       
   299 /*****************************************************************************/
       
   300 
       
   301 typedef struct {
       
   302     // inputs
   291     uint32_t config_index;
   303     uint32_t config_index;
   292 
   304 
   293     // outputs
   305     // outputs
   294     uint16_t alias;
   306     uint16_t alias;
   295     uint16_t position;
   307     uint16_t position;