FreeBSD Bugzilla – Attachment 161317 Details for
Bug 203249
[patch] Patch to allow dynamic USB quirks at boot (USB 2 stack)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
usb_quirk.4 patch
usb_quirk.4.diff (text/plain), 1.64 KB, created by
Maxime Soulé
on 2015-09-23 21:33:37 UTC
(
hide
)
Description:
usb_quirk.4 patch
Filename:
MIME Type:
Creator:
Maxime Soulé
Created:
2015-09-23 21:33:37 UTC
Size:
1.64 KB
patch
obsolete
>--- share/man/man4/usb_quirk.4.orig 2015-09-23 21:17:30.000000000 +0200 >+++ share/man/man4/usb_quirk.4 2015-09-23 23:28:53.000000000 +0200 >@@ -178,6 +178,50 @@ > See > .Pa /sys/dev/usb/quirk/usb_quirk.h > for the complete list of supported quirks. >+.Sh LOADER TUNABLE >+The following tunable can be set at the >+.Xr loader 8 >+prompt before booting the kernel, or stored in >+.Xr loader.conf 5 . >+.Bl -tag -width indent >+.It Va usb.quirk.%d >+The value is a string whose format is: >+.Bd -literal -offset indent >+.Qo VendorId ProductId LowRevision HighRevision UQ_QUIRK,... Qc >+.Ed >+.Pp >+Installs the quirks >+.Ic UQ_QUIRK1,... >+for all USB devices that will match >+.Ic VendorId , >+.Ic ProductId >+with a hardware revision included between >+.Ic LowRevision >+and >+.Ic HighRevision . >+.Pp >+.Ic VendorId , >+.Ic ProductId , >+.Ic LowRevision >+and >+.Ic HighRevision >+are all 16 bits numbers that can be decimal or hexadecimal based. >+.Pp >+100 variables >+.Ic usb.quirk.0, .1, ..., .99 >+can be defined. >+.Pp >+If a matching entry is found in the kernel internal quirks table, it >+is replaced by the new defined one. >+.Pp >+If not, a new entry is created (while the table is not full). >+.Pp >+Kernel iterates over >+.Ic usb.quirk.N >+variables >+.Ic (N = 0; N < 100) >+and stop after the first non-existent one. >+.El > .Sh EXAMPLES > After attaching a > .Nm u3g >@@ -186,6 +230,13 @@ > .Bd -literal -offset indent > usbconfig -d ugen0.3 add_quirk UQ_MSC_EJECT_WAIT > .Ed >+.Pp >+To install a quirk at boot time, place one or several lines like the >+following in >+.Xr loader.conf 5 : >+.Bd -literal -offset indent >+usb.quirk.0="0x04d9 0xfa50 0 0xffff UQ_KBD_IGNORE" >+.Ed > .Sh SEE ALSO > .Xr usbconfig 8 > .Sh HISTORY
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203249
:
161251
| 161317