master/ioctl.h
changeset 1082 ff06c58e269c
parent 1079 ef1266652c4d
child 1109 11ac4051db6b
equal deleted inserted replaced
1081:66c60b99c2e8 1082:ff06c58e269c
    44 #include <linux/ioctl.h>
    44 #include <linux/ioctl.h>
    45 
    45 
    46 #include "globals.h"
    46 #include "globals.h"
    47 
    47 
    48 /*****************************************************************************/
    48 /*****************************************************************************/
       
    49 
       
    50 /** \cond */
    49 
    51 
    50 #define EC_IOCTL_TYPE 0xa4
    52 #define EC_IOCTL_TYPE 0xa4
    51 
    53 
    52 #define EC_IO(nr)           _IO(EC_IOCTL_TYPE, nr)
    54 #define EC_IO(nr)           _IO(EC_IOCTL_TYPE, nr)
    53 #define EC_IOR(nr, type)   _IOR(EC_IOCTL_TYPE, nr, type)
    55 #define EC_IOR(nr, type)   _IOR(EC_IOCTL_TYPE, nr, type)
   292     uint32_t vendor_id;
   294     uint32_t vendor_id;
   293     uint32_t product_code;
   295     uint32_t product_code;
   294     struct {
   296     struct {
   295         ec_direction_t dir;
   297         ec_direction_t dir;
   296         uint32_t pdo_count;
   298         uint32_t pdo_count;
   297     } syncs[16];
   299     } syncs[EC_MAX_SYNC_MANAGERS];
   298     uint32_t sdo_count;
   300     uint32_t sdo_count;
   299     uint8_t attached    : 1,
   301     uint8_t attached    : 1,
   300             operational : 1;
   302             operational : 1;
   301     
       
   302 } ec_ioctl_config_t;
   303 } ec_ioctl_config_t;
   303 
   304 
   304 /*****************************************************************************/
   305 /*****************************************************************************/
   305 
   306 
   306 typedef struct {
   307 typedef struct {
   345     uint8_t data[4];
   346     uint8_t data[4];
   346 } ec_ioctl_config_sdo_t;
   347 } ec_ioctl_config_sdo_t;
   347 
   348 
   348 /*****************************************************************************/
   349 /*****************************************************************************/
   349 
   350 
       
   351 /** \endcond */
       
   352 
   350 #endif
   353 #endif