master/device.h
changeset 1854 b61bece1ec1c
parent 1851 a56bd34e20a1
child 1856 10175d5f35ea
equal deleted inserted replaced
1853:e0b9c4611f0a 1854:b61bece1ec1c
    94 #endif
    94 #endif
    95 #ifdef EC_DEBUG_RING
    95 #ifdef EC_DEBUG_RING
    96     struct timeval timeval_poll;
    96     struct timeval timeval_poll;
    97 #endif
    97 #endif
    98     unsigned long jiffies_poll; /**< jiffies of last poll */
    98     unsigned long jiffies_poll; /**< jiffies of last poll */
    99     unsigned int tx_count; /**< number of frames sent */
    99 
   100     unsigned int rx_count; /**< number of frames received */
   100     // Frame statistics
   101     unsigned int last_tx_count;
   101     unsigned int tx_count; /**< Number of frames sent. */
   102     unsigned int tx_rates[EC_RATE_COUNT];
   102     unsigned int rx_count; /**< Number of frames received. */
   103     int last_loss; /**< Tx/Rx difference of last cycle. */
   103     unsigned int last_tx_count; /**< Number of frames sent of last statistics
   104     int loss_rates[EC_RATE_COUNT];
   104                                   cycle. */
   105     unsigned long stats_jiffies;
   105     unsigned int tx_rates[EC_RATE_COUNT]; /**< Transmit rates for different
       
   106                                             statistics cycle periods. */
       
   107     int last_loss; /**< Tx/Rx difference of last statistics cycle. */
       
   108     int loss_rates[EC_RATE_COUNT]; /**< Frame loss rates for different
       
   109                                      statistics cycle periods. */
       
   110     unsigned long stats_jiffies; /**< Jiffies of last statistic cycle. */
       
   111 
   106 #ifdef EC_DEBUG_IF
   112 #ifdef EC_DEBUG_IF
   107     ec_debug_t dbg; /**< debug device */
   113     ec_debug_t dbg; /**< debug device */
   108 #endif
   114 #endif
   109 #ifdef EC_DEBUG_RING
   115 #ifdef EC_DEBUG_RING
   110     ec_debug_frame_t debug_frames[EC_DEBUG_RING_SIZE];
   116     ec_debug_frame_t debug_frames[EC_DEBUG_RING_SIZE];