Commit Graph

23 Commits

Author SHA1 Message Date
Xin LI
1946089b52 Use getprogname() instead of referencing __progname. 2009-06-23 23:16:00 +00:00
Andrew Thompson
bf41796c4e Build fixups for the new USB stack. 2009-02-23 18:36:54 +00:00
Alfred Perlstein
7e474656a6 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
2009-02-02 00:49:39 +00:00
Warner Losh
f7d681bc5d 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
2007-12-21 03:40:36 +00:00
Greg Lehey
9f238ea6d9 Bump document date.
Nitpicked by:   ru
MFC after:	1 week
2006-11-23 05:08:06 +00:00
Greg Lehey
eb29cfdd00 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
2006-11-23 05:07:32 +00:00
Greg Lehey
9a2a66f1bb Add option -x to display output values in hex in addition to decimal. 2006-11-23 00:20:54 +00:00
Ruslan Ermilov
6c7216df78 Sort sections. 2005-01-18 13:43:56 +00:00
Philippe Charnier
0a2956bbc0 Correct reference to a non existant man page. 2004-01-04 16:34:16 +00:00
Matthew N. Dodd
caf357a2c8 Remove uninitialized local variable in favor of global.
PR:		 bin/52685
Submitted by:	 Alexander Nedotsukov <bland@mail.ru>
Approved by:	 re (scottl)
2003-05-26 04:58:26 +00:00
Matthew N. Dodd
cf0e07e504 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.
2003-04-09 01:52:49 +00:00
Dag-Erling Smørgrav
d397408818 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}/.
2002-04-22 13:44:47 +00:00
Philippe Charnier
e8937ba009 Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Ruslan Ermilov
55cfa593f8 Style nits. 2002-04-15 09:33:34 +00:00
Ruslan Ermilov
6370bbfe57 Don't unnecessarily include .mk files. 2002-04-15 09:33:00 +00:00
Josef Karthauser
7b8cfc5217 Install libusbhid, and use it instead of libusb.
MFC after:	6 days
2002-03-28 18:44:25 +00:00
Josef Karthauser
e2d8b54630 Use libusbhid.h instead of libusb.h. 2002-03-28 18:14:20 +00:00
Mark Murray
1a27f4f2c3 WARNS=2 fixes. 2001-12-11 23:25:13 +00:00
Nick Hibma
1a2cdef496 Remove a bogus %s from a printf.
Submitted by:	kris
2001-04-17 15:00:03 +00:00
Nick Hibma
1d10fe5062 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.
2000-10-17 17:13:38 +00:00
Kris Kennaway
b2338d532a Don't overflow in command-line args
Submitted by:	Mike Heffner <mheffner@vt.edu>
2000-10-09 05:44:39 +00:00
Sheldon Hearn
144d39d4b8 Rename the `name'' argument to `item'' and mark it up as an argument.
Make use of the marked up argument to clarify the text in the DESCRIPTION
section.
Insert a missing word: ``the''.
Make the phrase in the BUGS section a full sentence.
Sort the cross-references in the SEE ALSO section correctly.
2000-07-20 11:39:14 +00:00
Nick Hibma
09d308a828 Add the usbhidctl utility, from NetBSD, by Lennart Augusst 2000-07-05 17:43:33 +00:00