| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Restore handling of the third argument (id) of hid_start_parse(), same as
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
Notes:
svn path=/stable/8/; revision=243059
|
| |
|
|
|
|
|
|
| |
HID Report ID is unsigned value, so clear the rest of bits from possible
sign expansion.
Notes:
svn path=/stable/8/; revision=235867
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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=/stable/8/; revision=229389
|
| |
|
|
|
|
|
|
|
| |
- Add support for libusbhid in 32-bit compatibility mode.
- Add missing check for ugd_actlen being too small.
- Add missing inclusion guard to usbvar.h header file.
Notes:
svn path=/stable/8/; revision=229388
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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.
Notes:
svn path=/stable/8/; revision=224886
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge improvements from kernel HID parser to the userland usbhid(3)
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.
MFC r207812
hid_get_data() now expects that the hid data passed in always contains
the report ID byte. Thus we should not skip the the report ID byte in
hid_interrupt(). Also, if HUP_KEYBOARD usage is an array, do not try
to modify the 'data' pointer, instead, increase the hid_item_t field
'pos' by 'report_size' before calling hid_get_data() during each
iteration.
Notes:
svn path=/stable/8/; revision=208262
|
| |
|
|
|
|
|
| |
Use fixed width integer types for parsing the binary hid data.
Notes:
svn path=/stable/8/; revision=208248
|
| |
|
|
|
|
|
| |
Support getting signed and unsigned HID data.
Notes:
svn path=/stable/8/; revision=208236
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=192992
|
| |
|
|
|
|
|
|
| |
Submitted by: daichi
Pointy hat: me
Notes:
svn path=/head/; revision=189108
|
| |
|
|
| |
Notes:
svn path=/head/; revision=188945
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Ok'd by: kan
Notes:
svn path=/head/; revision=169807
|
| |
|
|
| |
Notes:
svn path=/head/; revision=152763
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Discussed with, okayed, authorized, requested by, on behalf of: n_hibma (MAINTAINER)
Notes:
svn path=/head/; revision=146957
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140505
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=130030
|
| |
|
|
|
|
|
|
|
| |
Make global _usage_page unsigned.
Reviewed by: imp (mentor)
Notes:
svn path=/head/; revision=125716
|
| |
|
|
|
|
|
|
|
|
|
| |
items.
PR: misc/58971
Reviewed by: imp (mentor), mdodd
Obtained from: NetBSD
Notes:
svn path=/head/; revision=125121
|
| |
|
|
|
|
|
|
| |
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
PR: docs/60457
Notes:
svn path=/head/; revision=123705
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119893
|
| |
|
|
|
|
|
| |
Approved by: re (blanket)
Notes:
svn path=/head/; revision=115225
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=104073
|
| |
|
|
| |
Notes:
svn path=/head/; revision=97586
|
| |
|
|
|
|
|
| |
MFC after: 6 days
Notes:
svn path=/head/; revision=93351
|
| |
|
|
|
|
|
| |
MFC after: 6 days
Notes:
svn path=/head/; revision=93350
|
| |
|
|
|
|
|
| |
MFC after: 7 days
Notes:
svn path=/head/; revision=93331
|
| |
|
|
|
|
|
| |
MFC after: 7 days
Notes:
svn path=/head/; revision=93309
|
| |
|
|
| |
Notes:
svn path=/head/; revision=92917
|
| |
|
|
|
|
|
|
|
|
|
|
| |
c++ keywords.
This keeps us in sync with NetBSD because they actually committed
my delta first.
Ok'd by: lennard
Notes:
svn path=/head/; revision=90996
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84306
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84224
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82139
|
| |
|
|
| |
Notes:
svn path=/head/; revision=74870
|
| |
|
|
|
|
|
| |
poisoning having not reached here).
Notes:
svn path=/head/; revision=72066
|
| |
|
|
|
|
|
| |
Declare all the interfaces documented in usb.3 (2 were missing).
Notes:
svn path=/head/; revision=72065
|
| |
|
|
| |
Notes:
svn path=/head/; revision=68854
|
| |
|
|
| |
Notes:
svn path=/head/; revision=68751
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=67217
|
| |
|
|
|
|
|
|
| |
Print unknown usages with 4 digits.
Mask in page extraction.
Notes:
svn path=/head/; revision=65116
|
| |
|
|
| |
Notes:
svn path=/head/; revision=62757
|
|
|
Notes:
svn path=/head/; revision=61560
|