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_REGISTER 9F
18 .Nm usba_hcdi_register ,
19 .Nm usba_hcdi_unregister
20 .Nd register and unregister HCD driver
22 .In sys/usb/usba/hcdi.h
24 .Fo usba_hcdi_register
25 .Fa "usba_hcdi_register_args_t *args"
29 .Fo usba_hcdi_unregister
34 illumos USB HCD private function
36 This is a private function that is not part of the stable DDI.
37 It may be removed or changed at any time.
41 A pointer to a filled out registration structure.
43 .Xr usba_hcdi_register_args_t 9S
44 for the members to fill in.
49 Pointer to the device's
55 .Fn usba_hcdi_register
57 .Fn usba_hcdi_unregister
58 functions are used to register and unregister a USB HCDI driver from the
62 .Fn usba_hcdi_register
63 function is called during a device driver's
65 entry point after it has finished initializing the device.
66 After this function successfuly returns, device drivers should assume that the
68 functions may be called at any time.
71 .Fn usba_hcdi_unregister
72 function should be called during a driver's
74 entry point after it has unbound its root hub, but before the remainder
75 of the device's state is torn down.
77 .Fn usba_hcdi_unregister
78 function, the driver will receive no more function calls to its
82 For more information on the initialization and finalization path of a
87 .Fn usba_hcdi_register
88 function should only be called from a driver's
93 .Fn usba_hcdi_unregister
94 function should only be called frm a driver's
98 Upon successful completion, the
99 .Fn usba_hcdi_register
104 is returned to indicate that the device was not registered.
107 .Fn usba_hcdi_unregister
108 function does not define any return values and always succeeds.
113 .Xr usba_hcdi_ops 9S ,
114 .Xr usba_hcdi_register_args_t 9S