2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
15 .Dt USBA_HCDI_HUB_UPDATE 9E
18 .Nm usba_hcdi_hub_update
19 .Nd USB HCD hub update entry point
21 .In sys/usb/usba/hcdi.h
23 .Fo prefix_hcdi_hub_update
24 .Fa "usba_device_t *ud"
30 illumos USB HCD private function
32 This is a private function that is not part of the stable DDI.
33 It may be removed or changed at any time.
37 Pointer to a USB device structure being updated.
42 The number of ports present on the hub.
44 The value of the Think Time property as defined in the USB
45 specification's hub descriptor.
49 .Fn usba_hcdi_hub_update
50 entry point is an optional entry point for USB host controller drivers.
51 It is used by some controllers to allow them to update information about
52 a device in the controller after a device has been determined to be a
53 hub during enumeration.
54 If a host controller does not need to take any specific action after enumerating
55 a hub, then it should simply set this entry point in the
64 members provide relevant information from the device's hub class
65 descriptor which can be used to help program the host controller.
66 Any programming should be performed synchronously and be completed before
67 this function returns.
69 This function will be called after
70 .Xr usba_hcdi_device_init 9E
72 Any private data registered with that function will be available.
74 If this function fails, the enumeration of this device will fail, the
75 hub driver will not attach to this USB device, and all devices plugged
76 into this hub will not be detected by the system.
78 This functin is called from kernel context only.
80 Upon successful completion, the
81 .Fn usba_hcdi_hub_update
82 function should return
84 Otherwise, it should return the appropriate USB error.
88 .Xr usba_hcdi_device_init 9E ,