361921 |
08-Jun-2020 |
hselasky |
MFC r361827: USB HID descriptors may push/pop the current state to allow description of items residing in a so-called union. FreeBSD currently only supports 4 such push levels.
If the push level is not restored within the processing of the same HID item, an invalid memory location may be used for subsequent HID item processing.
Verify that the push level is always valid when processing HID items.
Reported by: Andy Nguyen (Google) Sponsored by: Mellanox Technologies |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
240762 |
20-Sep-2012 |
mav |
Restore handling of the third argument (id) of hid_start_parse(), same as it is done in NetBSD/OpenBSD, and as it was here before r205728.
I personally think this API or its implementation is incorrect, as it is not correct to filter collections based on report ID, as they are orthogonal in general case, but I see no harm from supporting this feature.
PR: usb/171810 Submitted by: Vitaly Magerya <vmagerya@gmail.com> MFC after: 1 month
|
235510 |
16-May-2012 |
mav |
HID Report ID is unsigned value, so clear the rest of bits from possible sign expansion.
|
225839 |
28-Sep-2011 |
mav |
MFprojects/hid: Import the rest of HID improvements from the branch: - improve report descriptor parser in libusbhid to handle several kinds of reports same time; - add to the libusbhid API two functions wrapping respective kernel IOCTLs for reading and writing reports; - tune uhid IOCTL interface to allow reading and writing arbitrary report, when multiple supported by the device; - teach usbhidctl to set output and feature reports; - make usbhidaction support all the same item names as bhidctl.
Sponsored by: iXsystems, inc.
|
224511 |
30-Jul-2011 |
mav |
MFprojects/hid: - Fix usbhidctl and usbhidaction to handle HID devices with multiple report ids, such as multimedia keyboards. - Add collection type and report id to the `usbhidctl -r` output. They are important for proper device understanding and debugging. - Fix usbhidaction tool to properly handle items having report_count more then 1.
Approved by: re (kib) MFC after: 2 weeks
|
213920 |
16-Oct-2010 |
hselasky |
- Add support for libusbhid in 32-bit compatibility mode. - Add missing check for ugd_actlen being too small. - Add missing inclusion guard to usbvar.h header file. - This also fixes buildworld breakage since r213852.
|
208023 |
13-May-2010 |
thompsa |
Use fixed width integer types for parsing the binary hid data.
PR: usb/146367 Submitted by: Hans Petter Selasky
|
208012 |
12-May-2010 |
thompsa |
Support getting signed and unsigned HID data.
Submitted by: Alex Deiter Reviewed by: Hans Petter Selaksy
|
205728 |
27-Mar-2010 |
kaiw |
Merge improvements from kernel HID parser to the userland usbhid(3) parser. This merge does not change any API and should not break any native or thirdparty applications.
Changes include:
* Merge multiple report ID support and other improvements from kernel HID parser. * Ignore rid argument in hid_start_parser, parse all the report items since we now support multiple report ID. * Skip report ID byte in hid_get_data() and set report ID byte in hid_set_data(), if report ID is non-zero. * Reimplement hid_get_report_id: instead get report id from uhid device (which is always 0), try parsing the report descriptor and return the first report ID encountered.
Reviewed by: hps Silent on: -usb mailing list
|
195767 |
19-Jul-2009 |
kensmith |
Bump the version of all non-symbol-versioned shared libraries in preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.
Reviewed by: kib Approved by: re (rwatson)
|
192992 |
28-May-2009 |
thompsa |
Fix missed change from usb2_gen_descriptor to usb_gen_descriptor
|
189108 |
27-Feb-2009 |
thompsa |
Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl.
Submitted by: daichi Pointy hat: me
|
188945 |
23-Feb-2009 |
thompsa |
Build fixups for the new USB stack.
|
187994 |
02-Feb-2009 |
alfred |
src/usr.bin/usbhidaction/usbhidaction.c src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h
Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver.
Reported and tested by:
Daichi GOTO and Masanori OZAWA.
src/sys/dev/usb2/core/usb2_process.c
Correct USB process names.
Reported by:
Andre Guibert de Bruet
src/sys/dev/usb2/serial/uftdi2.c
Integrate changes from old USB stack.
Submitted by: hps
|
169807 |
21-May-2007 |
deischen |
Bump library versions in preparation for 7.0.
Ok'd by: kan
|
152763 |
24-Nov-2005 |
ru |
Fix prototypes.
|
148297 |
22-Jul-2005 |
kensmith |
Bump the shared library version number of all libraries that have not been bumped since RELENG_5.
Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
|
146957 |
04-Jun-2005 |
schweikh |
Release n_hibma's maintainership due to his ENOTIME.
Discussed with, okayed, authorized, requested by, on behalf of: n_hibma (MAINTAINER)
|
140505 |
20-Jan-2005 |
ru |
Sort sections.
|
130030 |
03-Jun-2004 |
des |
Add __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.
MFC after: 1 week
|
125716 |
11-Feb-2004 |
emax |
Do not cast dval. Make global _usage_page unsigned.
Reviewed by: imp (mentor)
|
125121 |
28-Jan-2004 |
emax |
The report size is not a local item, so don't clear it when clearing local items.
PR: misc/58971 Reviewed by: imp (mentor), mdodd Obtained from: NetBSD
|
123705 |
21-Dec-2003 |
rushani |
Correct URI to USB specs.
Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: docs/60457
|
119893 |
08-Sep-2003 |
ru |
mdoc(7): Use the new feature of the .In macro.
|
115225 |
22-May-2003 |
ru |
Assorted mdoc(7) fixes.
Approved by: re (blanket)
|
113273 |
09-Apr-2003 |
mdodd |
Sync with NetBSD.
- Bump shared library version on libusbhid. - Retire libusbhid.h; it is called usbhid.h now. - hid_start_parse() takes a third argument. - hid_locate() takes a fifth argument. - hid_report_size() order of arguments changes. - Other changes, including formatting and whitespace.
Bump __FreeBSD_version.
This change will break all third party applications that rely on previous FreeBSD specific behavior.
|
113193 |
07-Apr-2003 |
mdodd |
MF NetBSD:
- Reduce diffs with NetBSD. - Formatting and explicit values for enum declaration. - Order of prototypes. - zero report_size in hid_clear_local() - errx() needs no newline - Don't initialie variable in declaration in hid_parse_usage_in_page(). - Use fmtcheck() in hid_usage_in_page().
|
104073 |
28-Sep-2002 |
peter |
Zap now-unused SHLIB_MINOR
|
97586 |
30-May-2002 |
ru |
mdoc(7) police: Tidy up the markup.
|
93351 |
28-Mar-2002 |
joe |
Install libusbhid, and use it instead of libusb.
MFC after: 6 days
|
93350 |
28-Mar-2002 |
joe |
Update the documentation to reflect the change from libusb to libusbhid.
MFC after: 6 days
|
93331 |
28-Mar-2002 |
joe |
Finish the libusb.h -> libusbhid.h migration.
MFC after: 7 days
|
93309 |
28-Mar-2002 |
joe |
Rename libusb.h to libusbhid.h, via a repocopy.
MFC after: 7 days
|
92917 |
21-Mar-2002 |
obrien |
Remove __P() usage.
|
90996 |
20-Feb-2002 |
alfred |
Prefix structure members to protect them against clashes with eg. c++ keywords.
This keeps us in sync with NetBSD because they actually committed my delta first.
Ok'd by: lennard
|
84306 |
01-Oct-2001 |
ru |
mdoc(7) police: Use the new .In macro for #include statements.
|
84224 |
30-Sep-2001 |
dillon |
Add __FBSDID()s to libusb
|
82139 |
22-Aug-2001 |
ru |
mdoc(7) police: Fixed broken xrefs.
|
74870 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
72066 |
06-Feb-2001 |
bde |
Fixed prototypes. About half of them were wrong (mainly due to const poisoning having not reached here).
|
72065 |
06-Feb-2001 |
bde |
Added used include of <sys/cdefs.h>.
Declare all the interfaces documented in usb.3 (2 were missing).
|
68854 |
17-Nov-2000 |
ru |
mdoc(7) police: use certified section headers wherever possible.
|
68751 |
15-Nov-2000 |
ben |
Remove fullstops from the end of .Xr lines in SEE ALSO section.
|
67217 |
16-Oct-2000 |
n_hibma |
Sync with NetBSD:
K&R -> ANSI
Bugfix: 'Keep the bit position even when the report descriptor says POP.'
Add hid_use_report_desc, hid_parse_usage_page, hid_parse_usage_in_page.
Changed iface for hid_report_size.
|
65116 |
26-Aug-2000 |
n_hibma |
Sync with NetBSD: Print unknown usages with 4 digits. Mask in page extraction.
|
62757 |
07-Jul-2000 |
n_hibma |
Remove DIAGASSERT
|
61560 |
11-Jun-2000 |
n_hibma |
The USB library from NetBSD by Lennart Augustsson <lennart@augustsson.net>.
|