aboutsummaryrefslogtreecommitdiff
path: root/lib/libusbhid
Commit message (Collapse)AuthorAgeFilesLines
* USB HID descriptors may push/pop the current state to allowHans Petter Selasky2020-06-051-16/+18
| | | | | | | | | | | | | | | | | | description of items residing in a so-called union. FreeBSD currently only supports 4 such pop 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) MFC after: 3 days Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=361827
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+0
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-267-7/+21
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* MFHGlen Barber2016-04-112-4/+4
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=297824
| * USB: replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-092-4/+4
| | | | | | | | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: hselasky Notes: svn path=/head/; revision=297764
* | First pass through library packaging.Glen Barber2016-02-041-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * Sync from headSimon J. Gerraty2012-11-043-9/+23
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=242545
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+16
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Restore handling of the third argument (id) of hid_start_parse(), same asAlexander Motin2012-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 Notes: svn path=/head/; revision=240762
* HID Report ID is unsigned value, so clear the rest of bits from possibleAlexander Motin2012-05-161-1/+1
| | | | | | | sign expansion. Notes: svn path=/head/; revision=235510
* MFprojects/hid:Alexander Motin2011-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. Notes: svn path=/head/; revision=225839
* MFprojects/hid:Alexander Motin2011-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 Notes: svn path=/head/; revision=224511
* - Add support for libusbhid in 32-bit compatibility mode.Hans Petter Selasky2010-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. Notes: svn path=/head/; revision=213920
* Use fixed width integer types for parsing the binary hid data.Andrew Thompson2010-05-132-6/+9
| | | | | | | | PR: usb/146367 Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=208023
* Support getting signed and unsigned HID data.Andrew Thompson2010-05-121-6/+10
| | | | | | | | Submitted by: Alex Deiter Reviewed by: Hans Petter Selaksy Notes: svn path=/head/; revision=208012
* Merge improvements from kernel HID parser to the userland usbhid(3)Kai Wang2010-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 Notes: svn path=/head/; revision=205728
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-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) Notes: svn path=/head/; revision=195767
* Fix missed change from usb2_gen_descriptor to usb_gen_descriptorAndrew Thompson2009-05-281-1/+1
| | | | Notes: svn path=/head/; revision=192992
* Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl.Andrew Thompson2009-02-271-2/+4
| | | | | | | | Submitted by: daichi Pointy hat: me Notes: svn path=/head/; revision=189108
* Build fixups for the new USB stack.Andrew Thompson2009-02-233-1/+11
| | | | Notes: svn path=/head/; revision=188945
* src/usr.bin/usbhidaction/usbhidaction.cAlfred Perlstein2009-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 Notes: svn path=/head/; revision=187994
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* Fix prototypes.Ruslan Ermilov2005-11-241-6/+6
| | | | Notes: svn path=/head/; revision=152763
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Release n_hibma's maintainership due to his ENOTIME.Jens Schweikhardt2005-06-041-2/+0
| | | | | | | Discussed with, okayed, authorized, requested by, on behalf of: n_hibma (MAINTAINER) Notes: svn path=/head/; revision=146957
* Sort sections.Ruslan Ermilov2005-01-201-4/+4
| | | | Notes: svn path=/head/; revision=140505
* Add __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.Dag-Erling Smørgrav2004-06-031-0/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=130030
* Do not cast dval.Maksim Yevmenkin2004-02-112-3/+2
| | | | | | | | | Make global _usage_page unsigned. Reviewed by: imp (mentor) Notes: svn path=/head/; revision=125716
* The report size is not a local item, so don't clear it when clearing local ↵Maksim Yevmenkin2004-01-281-1/+0
| | | | | | | | | | | items. PR: misc/58971 Reviewed by: imp (mentor), mdodd Obtained from: NetBSD Notes: svn path=/head/; revision=125121
* Correct URI to USB specs.Hideyuki KURASHINA2003-12-211-1/+1
| | | | | | | | Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: docs/60457 Notes: svn path=/head/; revision=123705
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-221-9/+9
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Sync with NetBSD.Matthew N. Dodd2003-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. Notes: svn path=/head/; revision=113273
* MF NetBSD:Matthew N. Dodd2003-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(). Notes: svn path=/head/; revision=113193
* Zap now-unused SHLIB_MINORPeter Wemm2002-09-281-1/+0
| | | | Notes: svn path=/head/; revision=104073
* mdoc(7) police: Tidy up the markup.Ruslan Ermilov2002-05-301-29/+37
| | | | Notes: svn path=/head/; revision=97586
* Install libusbhid, and use it instead of libusb.Josef Karthauser2002-03-282-2/+2
| | | | | | | MFC after: 6 days Notes: svn path=/head/; revision=93351
* Update the documentation to reflect the change from libusb to libusbhid.Josef Karthauser2002-03-283-221/+11
| | | | | | | MFC after: 6 days Notes: svn path=/head/; revision=93350
* Finish the libusb.h -> libusbhid.h migration.Josef Karthauser2002-03-286-8/+8
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=93331
* Rename libusb.h to libusbhid.h, via a repocopy.Josef Karthauser2002-03-282-102/+1
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=93309