Print this page
3503 usba doesn't initialize cc_no_resources, causes gibberish output in kstat
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Richard Lowe <richlowe@richlowe.net>


 308         struct kstat_named      cc_crc;
 309         struct kstat_named      cc_bitstuffing;
 310         struct kstat_named      cc_data_toggle_mm;
 311         struct kstat_named      cc_stall;
 312         struct kstat_named      cc_dev_not_resp;
 313         struct kstat_named      cc_pid_checkfailure;
 314         struct kstat_named      cc_unexp_pid;
 315         struct kstat_named      cc_data_overrun;
 316         struct kstat_named      cc_data_underrun;
 317         struct kstat_named      cc_buffer_overrun;
 318         struct kstat_named      cc_buffer_underrun;
 319         struct kstat_named      cc_timeout;
 320         struct kstat_named      cc_not_accessed;
 321         struct kstat_named      cc_no_resources;
 322         struct kstat_named      cc_unspecified_err;
 323         struct kstat_named      cc_stopped_polling;
 324         struct kstat_named      cc_pipe_closing;
 325         struct kstat_named      cc_pipe_reset;
 326         struct kstat_named      cc_not_supported;
 327         struct kstat_named      cc_flushed;
 328 
 329 #ifdef  NOTYETNEEDED
 330         /* USBA function return values */
 331         struct kstat_named      hcdi_usb_failure;
 332         struct kstat_named      hcdi_usb_no_resources;
 333         struct kstat_named      hcdi_usb_no_bandwidth;
 334         struct kstat_named      hcdi_usb_pipe_reserved;
 335         struct kstat_named      hcdi_usb_pipe_unshareable;
 336         struct kstat_named      hcdi_usb_not_supported;
 337         struct kstat_named      hcdi_usb_pipe_error;
 338         struct kstat_named      hcdi_usb_pipe_busy;
 339 #endif
 340 } hcdi_error_stats_t;
 341 
 342 /*
 343  * hcdi kstat defines
 344  * XXX this needs to be a function
 345  */
 346 #define HCDI_HOTPLUG_STATS(hcdi)        ((hcdi)->hcdi_hotplug_stats)
 347 #define HCDI_HOTPLUG_STATS_DATA(hcdi)   \
 348         ((hcdi_hotplug_stats_t *)HCDI_HOTPLUG_STATS((hcdi))->ks_data)
 349 
 350 #define HCDI_ERROR_STATS(hcdi)          ((hcdi)->hcdi_error_stats)
 351 #define HCDI_ERROR_STATS_DATA(hcdi)     \
 352         ((hcdi_error_stats_t *)HCDI_ERROR_STATS((hcdi))->ks_data)
 353 
 354 
 355 #ifdef __cplusplus
 356 }
 357 #endif
 358 
 359 #endif  /* _SYS_USB_HCDI_H */


 308         struct kstat_named      cc_crc;
 309         struct kstat_named      cc_bitstuffing;
 310         struct kstat_named      cc_data_toggle_mm;
 311         struct kstat_named      cc_stall;
 312         struct kstat_named      cc_dev_not_resp;
 313         struct kstat_named      cc_pid_checkfailure;
 314         struct kstat_named      cc_unexp_pid;
 315         struct kstat_named      cc_data_overrun;
 316         struct kstat_named      cc_data_underrun;
 317         struct kstat_named      cc_buffer_overrun;
 318         struct kstat_named      cc_buffer_underrun;
 319         struct kstat_named      cc_timeout;
 320         struct kstat_named      cc_not_accessed;
 321         struct kstat_named      cc_no_resources;
 322         struct kstat_named      cc_unspecified_err;
 323         struct kstat_named      cc_stopped_polling;
 324         struct kstat_named      cc_pipe_closing;
 325         struct kstat_named      cc_pipe_reset;
 326         struct kstat_named      cc_not_supported;
 327         struct kstat_named      cc_flushed;












 328 } hcdi_error_stats_t;
 329 
 330 /*
 331  * hcdi kstat defines
 332  * XXX this needs to be a function
 333  */
 334 #define HCDI_HOTPLUG_STATS(hcdi)        ((hcdi)->hcdi_hotplug_stats)
 335 #define HCDI_HOTPLUG_STATS_DATA(hcdi)   \
 336         ((hcdi_hotplug_stats_t *)HCDI_HOTPLUG_STATS((hcdi))->ks_data)
 337 
 338 #define HCDI_ERROR_STATS(hcdi)          ((hcdi)->hcdi_error_stats)
 339 #define HCDI_ERROR_STATS_DATA(hcdi)     \
 340         ((hcdi_error_stats_t *)HCDI_ERROR_STATS((hcdi))->ks_data)
 341 
 342 
 343 #ifdef __cplusplus
 344 }
 345 #endif
 346 
 347 #endif  /* _SYS_USB_HCDI_H */