Print this page
10229 Some man pages have incorrect cross-references

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man9e/usba_hcdi.9e.man.txt
          +++ new/usr/src/man/man9e/usba_hcdi.9e.man.txt
↓ open down ↓ 171 lines elided ↑ open up ↑
 172  172       filled out, the driver should call usba_hcdi_register(9F).
 173  173  
 174  174       If the call to register fails for whatever reason, the device driver
 175  175       should fail its attach(9E) entry point.  After this call successfully
 176  176       completes, the driver should assume that any of the functions it
 177  177       registered with the call to usba_hcdi_register(9F) will be called at this
 178  178       point.
 179  179  
 180  180     Binding the Root Hub
 181  181       Once this is set up, the hcdi driver must initialize its root hub by
 182      -     calling Xr usba_hcdi_bind_root_hub 9F .  To bind the root hub, the device
      182 +     calling usba_hubdi_bind_root_hub(9F).  To bind the root hub, the device
 183  183       driver is responsible for providing a device descriptor that represents
 184      -     the hardware.
 185      -      Depending on the hardware, this descriptor may be either static or
 186      -     dynamic.
      184 +     the hardware.  Depending on the hardware, this descriptor may be either
      185 +     static or dynamic.
 187  186  
 188  187       This device descriptor should be a packed descriptor that is the same
 189  188       that would be read off of the device.  The device descriptor should match
 190  189       a hub of a USB generation equivalent to the maximum speed of the device.
 191  190       For example, a USB 3.0 host controller would use a USB 3.0 hub's device
 192  191       descriptor.  Similarly, a USB 2.0 host controller would use a USB 2.0
 193  192       hub's device descriptor.
 194  193  
 195  194       The descriptor first starts with a USB configuration descriptor, as
 196  195       defined in usb_cfg_descr(9S).  It is then followed by an interface
↓ open down ↓ 8 lines elided ↑ open up ↑
 205  204       usb_if_descr(9S), usb_ep_descr(9S), and usb_ep_ss_comp_descr(9S) are not
 206  205       packed for this purpose.  They should not be used as they have gaps added
 207  206       by the compiler for alignment.
 208  207  
 209  208       Once assembled, the device driver should call
 210  209       usba_hubdi_bind_root_hub(9F).  This will cause an instance of the
 211  210       hubd(7D) driver to be attached and associated with the root controller.
 212  211       As such, driver writers need to ensure that all initialization is done
 213  212       prior to loading the root hub.  Once successfully loaded, driver writers
 214  213       should assume that they'll get other calls into the driver's operation
 215      -     vector before the call to usba_hubdi_bind_root_hub(9F.)
      214 +     vector before the call to usba_hubdi_bind_root_hub(9F).
 216  215  
 217  216       If the call to usba_hubdi_bind_root_hub(9F) failed for whatever reason,
 218  217       the driver should unregister from USBA (see the next section), unwind all
 219  218       of the resources it has allocated, and return DDI_FAILURE.
 220  219  
 221  220       Otherwise, at this point it's safe to assume that the instance of the
 222  221       device has initialized successfully and the driver should return
 223  222       DDI_SUCCESS.
 224  223  
 225  224     Driver Teardown
↓ open down ↓ 466 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX