19b0e7716SRobert Mustacchi.\"
29b0e7716SRobert Mustacchi.\" This file and its contents are supplied under the terms of the
39b0e7716SRobert Mustacchi.\" Common Development and Distribution License ("CDDL"), version 1.0.
49b0e7716SRobert Mustacchi.\" You may only use this file in accordance with the terms of version
59b0e7716SRobert Mustacchi.\" 1.0 of the CDDL.
69b0e7716SRobert Mustacchi.\"
79b0e7716SRobert Mustacchi.\" A full copy of the text of the CDDL should have accompanied this
89b0e7716SRobert Mustacchi.\" source.  A copy of the CDDL is also available via the Internet at
99b0e7716SRobert Mustacchi.\" http://www.illumos.org/license/CDDL.
109b0e7716SRobert Mustacchi.\"
119b0e7716SRobert Mustacchi.\"
129b0e7716SRobert Mustacchi.\" Copyright 2016 Joyent, Inc.
139b0e7716SRobert Mustacchi.\"
149b0e7716SRobert Mustacchi.Dd Sep 16, 2016
159b0e7716SRobert Mustacchi.Dt USBA_HCDI_DEV_OPS 9F
169b0e7716SRobert Mustacchi.Os
179b0e7716SRobert Mustacchi.Sh NAME
18*72d3dbb9SYuri Pankov.Nm usba_hubdi_bus_ops ,
199b0e7716SRobert Mustacchi.Nm usba_hubdi_root_hub_power
209b0e7716SRobert Mustacchi.Nd device operations utility functions for HCD drivers
219b0e7716SRobert Mustacchi.Sh SYNOPSIS
229b0e7716SRobert Mustacchi.Ft int
239b0e7716SRobert Mustacchi.Fo usba_hubdi_root_hub_power
249b0e7716SRobert Mustacchi.Fa "dev_info_t *dip"
259b0e7716SRobert Mustacchi.Fa "int component"
269b0e7716SRobert Mustacchi.Fa "int level"
279b0e7716SRobert Mustacchi.Fc
289b0e7716SRobert Mustacchi.Sh INTERFACE LEVEL
299b0e7716SRobert Mustacchi.Sy Volatile -
309b0e7716SRobert Mustacchiillumos USB HCD private function
319b0e7716SRobert Mustacchi.Pp
32*72d3dbb9SYuri PankovThis is a private function that is not part of the stable DDI.
33*72d3dbb9SYuri PankovIt may be removed or changed at any time.
349b0e7716SRobert Mustacchi.Sh PARAMETERS
359b0e7716SRobert MustacchiFor the parameters of the
369b0e7716SRobert Mustacchi.Fn usba_hubdi_root_hub_power
379b0e7716SRobert Mustacchifunction, see
389b0e7716SRobert Mustacchi.Xr power 9E .
399b0e7716SRobert Mustacchi.Sh DESCRIPTION
409b0e7716SRobert MustacchiThe
419b0e7716SRobert Mustacchi.Fn usba_hubdi_root_hub_power
429b0e7716SRobert Mustacchifunction is a utility function for the implementation of USB HCD
43*72d3dbb9SYuri Pankovdrivers.
44*72d3dbb9SYuri PankovUSB HCD drivers that support power management, should use set the
459b0e7716SRobert Mustacchi.Sy devo_power
469b0e7716SRobert Mustacchimember of their
479b0e7716SRobert Mustacchi.Xr dev_ops 9S
489b0e7716SRobert Mustacchistructure to the
499b0e7716SRobert Mustacchi.Fn usba_hubdi_root_hub_power
50*72d3dbb9SYuri Pankovfunction.
51*72d3dbb9SYuri PankovThey should not implement their own
529b0e7716SRobert Mustacchi.Xr power 9E
539b0e7716SRobert Mustacchifunction.
549b0e7716SRobert Mustacchi.Pp
559b0e7716SRobert MustacchiIn addition, drivers should pass the symbol
569b0e7716SRobert Mustacchi.Sy usba_hubdi_busops
579b0e7716SRobert Mustacchias the
589b0e7716SRobert Mustacchi.Sy devo_bus_ops
59*72d3dbb9SYuri Pankovmember.
60*72d3dbb9SYuri PankovIt contains a properly formatted bus operations structure.
619b0e7716SRobert Mustacchi.Sh CONTEXT
629b0e7716SRobert MustacchiThis function should not be called directly, it should only be used as a
639b0e7716SRobert Mustacchimember of a device's
649b0e7716SRobert Mustacchi.Xr dev_ops 9S
659b0e7716SRobert Mustacchistructure.
669b0e7716SRobert Mustacchi.Sh SEE ALSO
679b0e7716SRobert Mustacchi.Xr power 9E ,
689b0e7716SRobert Mustacchi.Xr dev_ops 9S
69