Skip site navigation (1)Skip section navigation (2)

CVS log for src/usr.bin/usbhidctl/usbhid.c

[BACK] Up to [FreeBSD] / src / usr.bin / usbhidctl

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 3 13:16:47 2012 UTC (5 weeks, 2 days ago) by mav
Branches: RELENG_8
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +284 -111 lines
SVN rev 229389 on 2012-01-03 13:16:47Z by mav

MFC r225839:
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.

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 3 12:47:55 2012 UTC (5 weeks, 2 days ago) by mav
Branches: RELENG_9
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +284 -111 lines
SVN rev 229387 on 2012-01-03 12:47:55Z by mav

MFC r225839:
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.

Revision 1.17.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.17.2.1: preferred, colored; next MAIN 1.17.2.2: preferred, colored
Changes since revision 1.17.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Nov 6 08:18:30 2011 UTC (3 months ago) by ed
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -6 lines
SVN rev 227196 on 2011-11-06 08:18:30Z by ed

Add missing static keywords to usbhidctl(1)

Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Sep 28 14:52:25 2011 UTC (4 months, 1 week ago) by mav
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +284 -111 lines
SVN rev 225839 on 2011-09-28 14:52:25Z by 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.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 15 14:19:26 2011 UTC (5 months, 3 weeks ago) by mav
Branches: RELENG_8
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +39 -15 lines
SVN rev 224886 on 2011-08-15 14:19:26Z by mav

MFC r224511:
 - 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.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jul 30 13:22:44 2011 UTC (6 months, 1 week ago) by mav
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +39 -15 lines
SVN rev 224511 on 2011-07-30 13:22:44Z by 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

Revision 1.11.12.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.15.2.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.15.2.2: preferred, colored
Changes since revision 1.15.2.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.15.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 3 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.15.2.2: preferred, colored
Changes since revision 1.15.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Feb 16 21:43:57 2010 UTC (23 months, 3 weeks ago) by imp
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +0 -7 lines
SVN rev 203971 on 2010-02-16 21:43:57Z by imp

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

Obtained from:	NetBSD

Revision 1.11.10.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (23 months, 4 weeks ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.15.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.15.2.1: preferred, colored; next MAIN 1.15.2.2: preferred, colored
Changes since revision 1.15.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jun 23 23:16:00 2009 UTC (2 years, 7 months ago) by delphij
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3 lines
SVN rev 194789 on 2009-06-23 23:16:00Z by delphij

Use getprogname() instead of referencing __progname.

Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Feb 23 18:36:54 2009 UTC (2 years, 11 months ago) by thompsa
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1 lines
SVN rev 188945 on 2009-02-23 18:36:54Z by thompsa

Build fixups for the new USB stack.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Feb 2 00:49:39 2009 UTC (3 years ago) by alfred
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -5 lines
SVN rev 187994 on 2009-02-02 00:49:39Z by 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

Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.9.24.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Dec 21 03:40:36 2007 UTC (4 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 23 05:07:32 2006 UTC (5 years, 2 months ago) by grog
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
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

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Nov 23 00:20:54 2006 UTC (5 years, 2 months ago) by grog
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +21 -9 lines
Add option -x to display output values in hex in addition to decimal.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon May 26 04:58:26 2003 UTC (8 years, 8 months ago) by mdodd
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_6, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5
Branch point for: RELENG_6_4
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -2 lines
Remove uninitialized local variable in favor of global.

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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Apr 9 01:52:49 2003 UTC (8 years, 10 months ago) by mdodd
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -3 lines
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.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Apr 22 13:44:39 2002 UTC (9 years, 9 months ago) by des
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1 lines
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}/.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 3 16:48:25 2002 UTC (9 years, 10 months ago) by joe
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +0 -0 lines
MFC: Add the usbhidctl tool.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Mar 28 18:14:20 2002 UTC (9 years, 10 months ago) by joe
Branches: MAIN
Branch point for: RELENG_4
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1 lines
Use libusbhid.h instead of libusb.h.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Dec 11 23:25:13 2001 UTC (10 years, 2 months ago) by markm
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -7 lines
WARNS=2 fixes.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Apr 17 15:00:03 2001 UTC (10 years, 9 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Remove a bogus %s from a printf.

Submitted by:	kris

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 17 17:13:38 2000 UTC (11 years, 3 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -17 lines
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.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 9 05:44:39 2000 UTC (11 years, 4 months ago) by kris
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3 lines
Don't overflow in command-line args

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

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Jul 5 17:43:33 2000 UTC (11 years, 7 months ago) by n_hibma
Branches: MAIN
CVS tags: PRE_SMPNG
Add the usbhidctl utility, from NetBSD, by Lennart Augusst

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options