Print this page
10229 Some man pages have incorrect cross-references
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man9f/usba_hubdi_bind_root_hub.9f.man.txt
+++ new/usr/src/man/man9f/usba_hubdi_bind_root_hub.9f.man.txt
1 1 USBA_HCDI_BIND_ROOT_HUB(9F) Kernel Functions for Drivers
2 2
3 3 NAME
4 4 usba_hubdi_bind_root_hub, usba_hubdi_unbind_root_hub - bind and unbind
5 5 the root USB hub
6 6
7 7 SYNOPSIS
8 8 #include <sys/usb/usba/hubdi.h>
9 9
10 10 int
11 11 usba_hubdi_bind_root_hub(dev_info_t *dip, uchar_t *hub_descr,
12 12 size_t descr_len, usb_dev_descr_t *dev_descr);
13 13
14 14 int
15 15 usba_hubdi_unbind_root_hub(dev_info_t *dip);
16 16
17 17 INTERFACE LEVEL
18 18 Volatile - illumos USB HCD private function
19 19
20 20 This is a private function that is not part of the stable DDI. It may be
21 21 removed or changed at any time.
22 22
23 23 PARAMETERS
24 24 dip Pointer to the device's dev_info structure.
25 25
26 26 hub_descr Pointer to a byte array that contains the standard
27 27 descriptors for a USB Hub device.
28 28
29 29 descr_len The length in bytes of the hub_descr byte array.
30 30
31 31 dev_descr A filled in standard USB device descriptor.
32 32
33 33 DESCRIPTION
34 34 The usba_hubdi_bind_root_hub() and usba_hubdi_unbind_root_hub() functions
35 35 are used to bind and unbind the root USB hub that is a part of every HCD
36 36 driver. See usba_hcdi(9E) for more information on this relationship.
37 37
38 38 The usba_hubdi_root_bind_driver() is used after calling the
39 39 usba_hcdi_register(9F) function during a device's attach(9E) entry point.
40 40
41 41 Because the root hub is generally a virtual hub, the HCD driver is
42 42 responsible for making it appear to the system as a normal USB hub.
43 43
44 44 The contents of the hub_descr should be the standard USB Hub class-
45 45 specific descriptor. This hub descriptor should match a hub of a similar
46 46 class of speed. For example, with the xhci controller, a USB 3.x Hub
47 47 class-specific descriptor is used, where as for the ehci controller, a
48 48 USB 2.x Hub class-specific descriptor is used. For more information, see
49 49 the USB 3.1 specification, section 10.15.2 Class-specific Descriptors.
50 50
51 51 Similarly, the contents of the dev_descr need to be a filled in USB
52 52 device descriptor that indicates that the root hub corresponds to the
53 53 appropriate USB generation. For more information on the contents, see
54 54 usb_dev_descr(9S) and the USB 3.1 specification, section 10.15.1 Standard
55 55 Descriptors for Hub Class.
56 56
57 57 The usba_hubdi_unbind_root_hub() function is used to detach the root hub
58 58 associated with the HCD driver. This should be called during a device's
59 59 detach(9E) routine before calling usba_hcdi_unregister(9F).
60 60
61 61 If a call to the usba_hubdi_unbind_root_hub() function fails during a
62 62 device's detach(9E) function, then it should fail the call to detach(9E).
63 63
64 64 CONTEXT
65 65 The usba_hubdi_bind_root_hub() function should only be called during a
66 66 device's attach(9E) entry point.
67 67
↓ open down ↓ |
67 lines elided |
↑ open up ↑ |
68 68 The usba_hubdi_unbind_root_hub() function should only be called during a
69 69 device's detach(9E) entry point.
70 70
71 71 RETURN VALUES
72 72 Upon successful completion, the usba_hubdi_bind_root_hub() and
73 73 usba_hubdi_unbind_root_hub() functions return USB_SUCCESS. Otherwise,
74 74 they return USB_FAILURE to indicate that they could not proceed.
75 75
76 76 SEE ALSO
77 77 attach(9E), detach(9E), usba_hcdi(9E), usba_hcdi_register(9F),
78 - usba_hcdi_unregister(9F), usb_dev_Descr(9S)
78 + usba_hcdi_unregister(9F), usb_dev_descr(9S)
79 79
80 80 illumos September 16, 2016 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX