View | Details | Raw Unified | Return to bug 203249 | Differences between
and this patch

Collapse All | Expand All

(-)share/man/man4/usb_quirk.4 (+51 lines)
Lines 178-183 Link Here
178
See
178
See
179
.Pa /sys/dev/usb/quirk/usb_quirk.h
179
.Pa /sys/dev/usb/quirk/usb_quirk.h
180
for the complete list of supported quirks.
180
for the complete list of supported quirks.
181
.Sh LOADER TUNABLE
182
The following tunable can be set at the
183
.Xr loader 8
184
prompt before booting the kernel, or stored in
185
.Xr loader.conf 5 .
186
.Bl -tag -width indent
187
.It Va usb.quirk.%d
188
The value is a string whose format is:
189
.Bd -literal -offset indent
190
.Qo VendorId ProductId LowRevision HighRevision UQ_QUIRK,... Qc
191
.Ed
192
.Pp
193
Installs the quirks
194
.Ic UQ_QUIRK1,...
195
for all USB devices that will match
196
.Ic VendorId ,
197
.Ic ProductId
198
with a hardware revision included between
199
.Ic LowRevision
200
and
201
.Ic HighRevision .
202
.Pp
203
.Ic VendorId ,
204
.Ic ProductId ,
205
.Ic LowRevision
206
and
207
.Ic HighRevision
208
are all 16 bits numbers that can be decimal or hexadecimal based.
209
.Pp
210
100 variables
211
.Ic usb.quirk.0, .1, ..., .99
212
can be defined.
213
.Pp
214
If a matching entry is found in the kernel internal quirks table, it
215
is replaced by the new defined one.
216
.Pp
217
If not, a new entry is created (while the table is not full).
218
.Pp
219
Kernel iterates over
220
.Ic usb.quirk.N
221
variables
222
.Ic (N = 0; N < 100)
223
and stop after the first non-existent one.
224
.El
181
.Sh EXAMPLES
225
.Sh EXAMPLES
182
After attaching a
226
After attaching a
183
.Nm u3g
227
.Nm u3g
Lines 186-191 Link Here
186
.Bd -literal -offset indent
230
.Bd -literal -offset indent
187
usbconfig -d ugen0.3 add_quirk UQ_MSC_EJECT_WAIT
231
usbconfig -d ugen0.3 add_quirk UQ_MSC_EJECT_WAIT
188
.Ed
232
.Ed
233
.Pp
234
To install a quirk at boot time, place one or several lines like the
235
following in
236
.Xr loader.conf 5 :
237
.Bd -literal -offset indent
238
usb.quirk.0="0x04d9 0xfa50 0 0xffff UQ_KBD_IGNORE"
239
.Ed
189
.Sh SEE ALSO
240
.Sh SEE ALSO
190
.Xr usbconfig 8
241
.Xr usbconfig 8
191
.Sh HISTORY
242
.Sh HISTORY

Return to bug 203249