usbconfig.8 (cae1884d4791726f5acf5d64bba9a3583b63e38b) usbconfig.8 (d69b9cc26d1c24a4cbc37478a571b1f531aa7bcc)
1.\" $FreeBSD$
2.\"
3.\" Copyright (c) 2008-2019 Hans Petter Selasky. All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\" $FreeBSD$
2.\"
3.\" Copyright (c) 2008-2019 Hans Petter Selasky. All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.Dd December 20, 2021
26.Dd December 21, 2021
27.Dt USBCONFIG 8
28.Os
29.Sh NAME
30.Nm usbconfig
31.Nd configure the USB subsystem
32.Sh SYNOPSIS
33.Nm
34.Op Fl u Ar unit
35.Op Fl a Ar addr
36.Op Fl i Ar interface_index
27.Dt USBCONFIG 8
28.Os
29.Sh NAME
30.Nm usbconfig
31.Nd configure the USB subsystem
32.Sh SYNOPSIS
33.Nm
34.Op Fl u Ar unit
35.Op Fl a Ar addr
36.Op Fl i Ar interface_index
37.Op Fl v
37.Op cmds...
38.Nm
39.Fl d Ar [[/dev/]ugen]<unit>.<addr>
40.Op Fl i Ar interface_index
38.Op cmds...
39.Nm
40.Fl d Ar [[/dev/]ugen]<unit>.<addr>
41.Op Fl i Ar interface_index
42.Op Fl v
41.Op cmds...
42.Sh DESCRIPTION
43The
44.Nm
45utility is used to configure and dump information about the USB subsystem.
46.Pp
47The options are as follows:
48.Bl -tag -width " "
49.It Fl u Ar unit
50Limit device range to USB devices connected to the given USBUS unit.
51.It Fl a Ar addr
52Limit device range to the given USB device index.
53Should only be used in conjunction with the unit argument.
54.It Fl d Ar [[/dev/]ugen]<unit>.<addr>
55Limit device range to USB devices connected to the given unit and address.
56The unit and address coordinates may be prefixed by the lowercased word "ugen",
57or the full path name
58.Pa /dev/ugen .
43.Op cmds...
44.Sh DESCRIPTION
45The
46.Nm
47utility is used to configure and dump information about the USB subsystem.
48.Pp
49The options are as follows:
50.Bl -tag -width " "
51.It Fl u Ar unit
52Limit device range to USB devices connected to the given USBUS unit.
53.It Fl a Ar addr
54Limit device range to the given USB device index.
55Should only be used in conjunction with the unit argument.
56.It Fl d Ar [[/dev/]ugen]<unit>.<addr>
57Limit device range to USB devices connected to the given unit and address.
58The unit and address coordinates may be prefixed by the lowercased word "ugen",
59or the full path name
60.Pa /dev/ugen .
61.It Fl h
62Show help and available commands.
59.It Fl i Ar interface_index
60Specify interface index as indicated by the command description.
61If this argument is not specified a value of zero will be used for the interface index.
63.It Fl i Ar interface_index
64Specify interface index as indicated by the command description.
65If this argument is not specified a value of zero will be used for the interface index.
62.It Fl h
63Show help and available commands.
66.It Fl v
67Shortcut to activate the
68.Cm dump_device_desc ,
69.Cm dump_curr_config_desc ,
70and
71.Cm show_ifdrv
72commands
73.Pq Dq verbose mode .
64.El
65.Pp
66The following commands may be used with
67.Nm :
68.Bl -tag -width indent
69.It Cm set_config Ar cfg_index
70Choose the configuration for the USB device.
71Valid values range from zero to the number reported as the

--- 113 unchanged lines hidden ---
74.El
75.Pp
76The following commands may be used with
77.Nm :
78.Bl -tag -width indent
79.It Cm set_config Ar cfg_index
80Choose the configuration for the USB device.
81Valid values range from zero to the number reported as the

--- 113 unchanged lines hidden ---