summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2018-04-16 15:42:26 +0000
committertrasz <trasz@FreeBSD.org>2018-04-16 15:42:26 +0000
commitf04681e37ceaf810d79c5762bd794f2ccade5bed (patch)
treedd7386edf16aef21aa0d811a5bde0095d942b739 /share/man
parentbbda8afb1565fff6839c65272e52640f2e49a784 (diff)
downloadFreeBSD-src-f04681e37ceaf810d79c5762bd794f2ccade5bed.zip
FreeBSD-src-f04681e37ceaf810d79c5762bd794f2ccade5bed.tar.gz
MFC r328194:
Add sysctls to control device side USB identifiers. This makes it possible to change string and numeric vendor and product identifiers, as well as anything else there might be to change for a particular device side template, eg the MAC address. Relnotes: yes
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man4/usb_template.435
1 files changed, 29 insertions, 6 deletions
diff --git a/share/man/man4/usb_template.4 b/share/man/man4/usb_template.4
index 786f323..c9a6815 100644
--- a/share/man/man4/usb_template.4
+++ b/share/man/man4/usb_template.4
@@ -61,11 +61,12 @@ descriptors.
.
USB templates are selected using the
.Va hw.usb.template
-sysctl and tunable.
-.
-The
-.Va hw.usb.template
-value can be changed at any time, but will not
+sysctl and tunable,
+or by using the
+.Xr usbconfig 8
+.Cm set_template
+subcommand.
+The sysctl values can be changed at any time, but will not
have any effect until the USB device has been re-enumerated.
.
Available templates are:
@@ -83,10 +84,32 @@ Available templates are:
.It Dv 9 Ta USB MIDI
.El
.
+.Sh SYSCTL VARIABLES
+The following variables are available as both
+.Xr sysctl 8
+variables and
+.Xr loader 8
+tunables:
+.Bl -tag -width indent
+.It Va hw.usb.template
+Currently selected template.
+.It Va hw.usb.templates.N
+Configuration for template number
+.Va N .
+.It Va hw.usb.templates.N.vendor_id
+16-bit vendor identifier (VID), usually assigned by USB-IF.
+.It Va hw.usb.templates.N.product_id
+16-bit product identifier (PID).
+.It Va hw.usb.templates.N.manufacturer
+String containing human-readable manufacturer name.
+.It Va hw.usb.templates.N.product
+String containing human-readable product name.
+.El
.Sh SEE ALSO
.Xr cfumass 4 ,
.Xr usb 4 ,
-.Xr usfs 4
+.Xr usfs 4 ,
+.Xr usbconfig 8
.Sh STANDARDS
The
.Nm
OpenPOWER on IntegriCloud