summaryrefslogtreecommitdiffstats
path: root/lib/libusbhid
Commit message (Collapse)AuthorAgeFilesLines
* Restore handling of the third argument (id) of hid_start_parse(), same asmav2012-09-203-9/+23
| | | | | | | | | | | | 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
* HID Report ID is unsigned value, so clear the rest of bits from possiblemav2012-05-161-1/+1
| | | | sign expansion.
* MFprojects/hid:mav2011-09-284-13/+61
| | | | | | | | | | | | | | 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.
* MFprojects/hid:mav2011-07-301-5/+7
| | | | | | | | | | | | - 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
* - Add support for libusbhid in 32-bit compatibility mode.hselasky2010-10-163-3/+25
| | | | | | - 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.
* Use fixed width integer types for parsing the binary hid data.thompsa2010-05-132-6/+9
| | | | | PR: usb/146367 Submitted by: Hans Petter Selasky
* Support getting signed and unsigned HID data.thompsa2010-05-121-6/+10
| | | | | Submitted by: Alex Deiter Reviewed by: Hans Petter Selaksy
* Merge improvements from kernel HID parser to the userland usbhid(3)kaiw2010-03-276-251/+406
| | | | | | | | | | | | | | | | | | | | 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
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-07-191-1/+1
| | | | | | | | 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)
* Fix missed change from usb2_gen_descriptor to usb_gen_descriptorthompsa2009-05-281-1/+1
|
* Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl.thompsa2009-02-271-2/+4
| | | | | Submitted by: daichi Pointy hat: me
* Build fixups for the new USB stack.thompsa2009-02-233-1/+11
|
* src/usr.bin/usbhidaction/usbhidaction.calfred2009-02-026-7/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bump library versions in preparation for 7.0.deischen2007-05-211-1/+1
| | | | Ok'd by: kan
* Fix prototypes.ru2005-11-241-6/+6
|
* Bump the shared library version number of all libraries that have notkensmith2005-07-221-1/+1
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* Release n_hibma's maintainership due to his ENOTIME.schweikh2005-06-041-2/+0
| | | | Discussed with, okayed, authorized, requested by, on behalf of: n_hibma (MAINTAINER)
* Sort sections.ru2005-01-201-4/+4
|
* Add __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.des2004-06-031-0/+4
| | | | MFC after: 1 week
* Do not cast dval.emax2004-02-112-3/+2
| | | | | | Make global _usage_page unsigned. Reviewed by: imp (mentor)
* The report size is not a local item, so don't clear it when clearing local ↵emax2004-01-281-1/+0
| | | | | | | | items. PR: misc/58971 Reviewed by: imp (mentor), mdodd Obtained from: NetBSD
* Correct URI to USB specs.rushani2003-12-211-1/+1
| | | | | Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: docs/60457
* mdoc(7): Use the new feature of the .In macro.ru2003-09-081-1/+1
|
* Assorted mdoc(7) fixes.ru2003-05-221-9/+9
| | | | Approved by: re (blanket)
* Sync with NetBSD.mdodd2003-04-098-186/+130
| | | | | | | | | | | | | | - 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.
* MF NetBSD:mdodd2003-04-074-13/+24
| | | | | | | | | | - 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().
* Zap now-unused SHLIB_MINORpeter2002-09-281-1/+0
|
* mdoc(7) police: Tidy up the markup.ru2002-05-301-29/+37
|
* Install libusbhid, and use it instead of libusb.joe2002-03-282-2/+2
| | | | MFC after: 6 days
* Update the documentation to reflect the change from libusb to libusbhid.joe2002-03-283-221/+11
| | | | MFC after: 6 days
* Finish the libusb.h -> libusbhid.h migration.joe2002-03-286-8/+8
| | | | MFC after: 7 days
* Rename libusb.h to libusbhid.h, via a repocopy.joe2002-03-282-102/+1
| | | | MFC after: 7 days
* Remove __P() usage.obrien2002-03-213-45/+45
|
* Prefix structure members to protect them against clashes with eg.alfred2002-02-201-2/+2
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-012-2/+2
|
* Add __FBSDID()s to libusbdillon2001-09-304-11/+12
|
* mdoc(7) police: Fixed broken xrefs.ru2001-08-222-2/+2
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* Fixed prototypes. About half of them were wrong (mainly due to constbde2001-02-062-20/+20
| | | | poisoning having not reached here).
* Added used include of <sys/cdefs.h>.bde2001-02-063-0/+12
| | | | Declare all the interfaces documented in usb.3 (2 were missing).
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-172-2/+2
|
* Remove fullstops from the end of .Xr lines in SEE ALSO section.ben2000-11-152-2/+2
|
* Sync with NetBSD:n_hibma2000-10-168-73/+170
| | | | | | | | | | 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.
* Sync with NetBSD:n_hibma2000-08-264-9/+9
| | | | | Print unknown usages with 4 digits. Mask in page extraction.
* Remove DIAGASSERTn_hibma2000-07-073-25/+0
|
* The USB library from NetBSD by Lennart Augustsson <lennart@augustsson.net>.n_hibma2000-06-1111-0/+1504
OpenPOWER on IntegriCloud