master/master.c
changeset 758 8fa6f825eb7d
parent 721 ebc2fd3e09e5
child 792 3778920f61e4
equal deleted inserted replaced
757:6210c4260899 758:8fa6f825eb7d
    55 #endif
    55 #endif
    56 
    56 
    57 /*****************************************************************************/
    57 /*****************************************************************************/
    58 
    58 
    59 void ec_master_destroy_domains(ec_master_t *);
    59 void ec_master_destroy_domains(ec_master_t *);
    60 void ec_master_sync_io(ec_master_t *);
       
    61 static int ec_master_idle_thread(ec_master_t *);
    60 static int ec_master_idle_thread(ec_master_t *);
    62 static int ec_master_operation_thread(ec_master_t *);
    61 static int ec_master_operation_thread(ec_master_t *);
    63 #ifdef EC_EOE
    62 #ifdef EC_EOE
    64 void ec_master_eoe_run(unsigned long);
    63 void ec_master_eoe_run(unsigned long);
    65 #endif
    64 #endif
    66 void ec_master_check_sdo(unsigned long);
       
    67 ssize_t ec_show_master_attribute(struct kobject *, struct attribute *, char *);
    65 ssize_t ec_show_master_attribute(struct kobject *, struct attribute *, char *);
    68 ssize_t ec_store_master_attribute(struct kobject *, struct attribute *,
    66 ssize_t ec_store_master_attribute(struct kobject *, struct attribute *,
    69                                   const char *, size_t);
    67                                   const char *, size_t);
    70 
    68 
    71 /*****************************************************************************/
    69 /*****************************************************************************/
   915     complete_and_exit(&master->thread_exit, 0);
   913     complete_and_exit(&master->thread_exit, 0);
   916 }
   914 }
   917 
   915 
   918 /*****************************************************************************/
   916 /*****************************************************************************/
   919 
   917 
       
   918 /**
       
   919  * Prints the device information to a buffer.
       
   920  * \return number of bytes written.
       
   921  */
       
   922 
   920 ssize_t ec_master_device_info(
   923 ssize_t ec_master_device_info(
   921         const ec_device_t *device,
   924         const ec_device_t *device, /**< EtherCAT device */
   922         const uint8_t *mac,
   925         const uint8_t *mac, /**< MAC address */
   923         char *buffer
   926         char *buffer /**< target buffer */
   924         )
   927         )
   925 {
   928 {
   926     unsigned int frames_lost;
   929     unsigned int frames_lost;
   927     off_t off = 0;
   930     off_t off = 0;
   928     
   931