Print this page
10805 Fix for 10687 can be improved

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h
          +++ new/usr/src/uts/common/sys/usb/scsa2usb/scsa2usb.h
↓ open down ↓ 647 lines elided ↑ open up ↑
 648  648  #define DPRINT_MASK_EVENTS      0x0004          /* for event handling */
 649  649  #define DPRINT_MASK_CALLBACKS   0x0008          /* for callbacks  */
 650  650  #define DPRINT_MASK_TIMEOUT     0x0010          /* for timeouts */
 651  651  #define DPRINT_MASK_DUMPING     0x0020          /* for dumping */
 652  652  #define DPRINT_MASK_PM          0x0040          /* for pwr mgmt */
 653  653  #define DPRINT_MASK_ALL         0xffffffff      /* for everything */
 654  654  
 655  655  #ifdef  DEBUG
 656  656  #define SCSA2USB_PRINT_CDB      scsa2usb_print_cdb
 657  657  #else
 658      -#define SCSA2USB_PRINT_CDB(...)
      658 +#define SCSA2USB_PRINT_CDB(...) (void)(0)
 659  659  #endif
 660  660  
 661  661  /* ugen support */
 662  662  #define SCSA2USB_MINOR_UGEN_BITS_MASK   0xff
 663  663  #define SCSA2USB_MINOR_INSTANCE_MASK    ~SCSA2USB_MINOR_UGEN_BITS_MASK
 664  664  #define SCSA2USB_MINOR_INSTANCE_SHIFT   8
 665  665  
 666  666  #define SCSA2USB_MINOR_TO_INSTANCE(minor)       \
 667  667                  (((minor) & SCSA2USB_MINOR_INSTANCE_MASK) >> \
 668  668                  SCSA2USB_MINOR_INSTANCE_SHIFT)
 669  669  
 670  670  #ifdef __cplusplus
 671  671  }
 672  672  #endif
 673  673  
 674  674  #endif  /* _SYS_USB_SCSA2USB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX