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
          +++ new/usr/src/man/man9e/usba_hcdi.9e
↓ open down ↓ 220 lines elided ↑ open up ↑
 221  221  should fail its
 222  222  .Xr attach 9E
 223  223  entry point.
 224  224  After this call successfully completes, the driver should assume that any of the
 225  225  functions it registered with the call to
 226  226  .Xr usba_hcdi_register 9F
 227  227  will be called at this point.
 228  228  .Ss Binding the Root Hub
 229  229  Once this is set up, the hcdi driver must initialize its root hub by
 230  230  calling
 231      -Xr usba_hcdi_bind_root_hub 9F .
      231 +.Xr usba_hubdi_bind_root_hub 9F .
 232  232  To bind the root hub, the device driver is responsible for providing a
 233  233  device descriptor that represents the hardware.
 234      - Depending on the hardware, this descriptor may be either static or dynamic.
      234 +Depending on the hardware, this descriptor may be either static or dynamic.
 235  235  .Pp
 236  236  This device descriptor should be a packed descriptor that is the same
 237  237  that would be read off of the device.
 238  238  The device descriptor should match a hub of a USB generation equivalent to the
 239  239  maximum speed of the device.
 240  240  For example, a USB 3.0 host controller would use a USB 3.0 hub's device
 241  241  descriptor.
 242  242  Similarly, a USB 2.0 host controller would use a USB 2.0 hub's device
 243  243  descriptor.
 244  244  .Pp
↓ open down ↓ 24 lines elided ↑ open up ↑
 269  269  .Pp
 270  270  Once assembled, the device driver should call
 271  271  .Xr usba_hubdi_bind_root_hub 9F .
 272  272  This will cause an instance of the
 273  273  .Xr hubd 7D
 274  274  driver to be attached and associated with the root controller.
 275  275  As such, driver writers need to ensure that all initialization is done prior to
 276  276  loading the root hub.
 277  277  Once successfully loaded, driver writers should assume that they'll get other
 278  278  calls into the driver's operation vector before the call to
 279      -.Xr usba_hubdi_bind_root_hub 9F.
      279 +.Xr usba_hubdi_bind_root_hub 9F .
 280  280  .Pp
 281  281  If the call to
 282  282  .Xr usba_hubdi_bind_root_hub 9F
 283  283  failed for whatever reason, the driver should unregister from USBA (see
 284  284  the next section), unwind all of the resources it has allocated, and
 285  285  return
 286  286  .Dv DDI_FAILURE .
 287  287  .Pp
 288  288  Otherwise, at this point it's safe to assume that the instance of the
 289  289  device has initialized successfully and the driver should return
↓ open down ↓ 612 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX