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>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/usb/usba/hcdi.h
          +++ new/usr/src/uts/common/sys/usb/usba/hcdi.h
↓ open down ↓ 317 lines elided ↑ open up ↑
 318  318          struct kstat_named      cc_buffer_underrun;
 319  319          struct kstat_named      cc_timeout;
 320  320          struct kstat_named      cc_not_accessed;
 321  321          struct kstat_named      cc_no_resources;
 322  322          struct kstat_named      cc_unspecified_err;
 323  323          struct kstat_named      cc_stopped_polling;
 324  324          struct kstat_named      cc_pipe_closing;
 325  325          struct kstat_named      cc_pipe_reset;
 326  326          struct kstat_named      cc_not_supported;
 327  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  328  } hcdi_error_stats_t;
 341  329  
 342  330  /*
 343  331   * hcdi kstat defines
 344  332   * XXX this needs to be a function
 345  333   */
 346  334  #define HCDI_HOTPLUG_STATS(hcdi)        ((hcdi)->hcdi_hotplug_stats)
 347  335  #define HCDI_HOTPLUG_STATS_DATA(hcdi)   \
 348  336          ((hcdi_hotplug_stats_t *)HCDI_HOTPLUG_STATS((hcdi))->ks_data)
 349  337  
 350  338  #define HCDI_ERROR_STATS(hcdi)          ((hcdi)->hcdi_error_stats)
 351  339  #define HCDI_ERROR_STATS_DATA(hcdi)     \
 352  340          ((hcdi_error_stats_t *)HCDI_ERROR_STATS((hcdi))->ks_data)
 353  341  
 354  342  
 355  343  #ifdef __cplusplus
 356  344  }
 357  345  #endif
 358  346  
 359  347  #endif  /* _SYS_USB_HCDI_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX