History log of /freebsd-10.1-release/usr.bin/usbhidctl/usbhid.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 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


# 235519 16-May-2012 mav

Add support for -z option for reading operations. It allows to not request
current values from device, but only receive changes.


# 227196 06-Nov-2011 ed

Add missing static keywords to usbhidctl(1)


# 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


# 203971 16-Feb-2010 imp

The NetBSD Foundation has granted permission to remove clause 3 and 4
from their software.

Obtained from: NetBSD


# 194789 23-Jun-2009 delphij

Use getprogname() instead of referencing __progname.


# 188945 23-Feb-2009 thompsa

Build fixups for the new USB stack.


# 187994 01-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


# 174826 21-Dec-2007 imp

usbhidctl appears to not report features and write size correctly

This turns out to be due to an argument botch for hid_report_size.
The PR contained patches to fix the argument botch.

Submitted by: Maurice Castro
PR: usb/118915


# 164544 23-Nov-2006 grog

usage: Include the - in the x flag.
main: Make -x set the hexdump; there's no obvious reason to toggle it.

Nitpicked by: ru
MFC after: 1 week


# 164531 22-Nov-2006 grog

Add option -x to display output values in hex in addition to decimal.


# 115317 26-May-2003 mdodd

Remove uninitialized local variable in favor of global.

PR: bin/52685
Submitted by: Alexander Nedotsukov <bland@mail.ru>
Approved by: re (scottl)


# 113273 08-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.


# 95258 22-Apr-2002 des

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


# 93349 28-Mar-2002 joe

Use libusbhid.h instead of libusb.h.


# 87699 11-Dec-2001 markm

WARNS=2 fixes.


# 75606 17-Apr-2001 n_hibma

Remove a bogus %s from a printf.

Submitted by: kris


# 67256 17-Oct-2000 n_hibma

Fix the build break.

The solution isn't perfect, instead of printing the first report, it
will the report no report id, but the proper solution is more complex
than this. We would need to iterate over the report descriptor and
figure out all the report id's before starting to print.


# 66856 09-Oct-2000 kris

Don't overflow in command-line args

Submitted by: Mike Heffner <mheffner@vt.edu>


# 62642 05-Jul-2000 n_hibma

Add the usbhidctl utility, from NetBSD, by Lennart Augusst