Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/usb/hcd/uhci/uhcid.h
          +++ new/usr/src/uts/common/sys/usb/hcd/uhci/uhcid.h
↓ open down ↓ 71 lines elided ↑ open up ↑
  72   72  #define UHCI_RESET_DELAY        15000
  73   73  #define UHCI_TIMEWAIT           10000
  74   74  
  75   75  #define MAX_SOF_WAIT_COUNT      2
  76   76  #define MAX_RH_PORTS            2
  77   77  #define DISCONNECTED            2
  78   78  #define POLLING_FREQ_7MS        7
  79   79  #define PCI_CONF_IOBASE         0x20
  80   80  #define PCI_CONF_IOBASE_MASK    0xffe0
  81   81  
  82      -#define UHCI_ONE_SECOND         drv_usectohz(1000000)
       82 +#define UHCI_ONE_SECOND         drv_sectohz(1)
  83   83  #define UHCI_ONE_MS             drv_usectohz(1000)
  84   84  #define UHCI_32_MS              drv_usectohz(32*1000)
  85   85  #define UHCI_256_MS             drv_usectohz(256*1000)
  86   86  #define UHCI_MAX_INSTS          4
  87   87  
  88   88  #define POLLED_RAW_BUF_SIZE     8
  89   89  
  90   90  /* Default time out values for bulk and ctrl commands */
  91   91  #define UHCI_CTRL_TIMEOUT       5
  92   92  #define UHCI_BULK_TIMEOUT       60
↓ open down ↓ 502 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX