trasz
dd66bf2b57
Fix libusb20_dev_get_desc(3) to use the "vendor product" order, not
...
"product vendor". This is consistent with how it's generally done.
The ordering is visible eg in usbconfig(8) output.
Note to self: MFC this to 9 and 8.
Reviewed by: hselasky@
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D8258
2016-10-22 14:37:13 +00:00
hselasky
f72f830cb1
Fix array size issue when using the pre-scaling feature for
...
ISOCHRONOUS USB transfers. Make sure enough length and buffer pointers
are allocated when setting up the libusb transfer structure to support
the maximum number of frames the kernel can handle.
MFC after: 1 week
2016-09-02 08:44:14 +00:00
hselasky
d8136cee93
Resolve issue with libusb C++ header file inclusion.
...
Approved by: re (marius)
PR: 210509
MFC after: 1 week
2016-06-24 10:55:14 +00:00
hselasky
113f2d3998
Add support for USB streams to the LibUSB v1.0 API and update the
...
libusb(3) manual page.
Approved by: re (gjb)
Requested by: swills
MFC after: 1 week
2016-06-23 07:12:22 +00:00
hselasky
9cb5bd5f1c
Implement libusb_hotplug_register_callback() and
...
libusb_hotplug_deregister_callback() for the LibUSB v1.0 API and
update the libusb(3) manual page.
Approved by: re (kib)
Requested by: swills
MFC after: 1 week
2016-06-22 10:38:41 +00:00
hselasky
1ae2d37eec
Add missing return statement.
...
Approved by: re (gjb)
MFC after: 1 week
2016-06-16 16:26:16 +00:00
hselasky
2d112dac06
Add multiple missing descriptor parsing functions to the LibUSB v1.0 API.
...
Approved by: re (kib)
Requested by: swills
MFC after: 1 week
2016-06-16 16:17:29 +00:00
hselasky
b6f02274aa
Add support for libusb_set_auto_detach_kernel_driver() to the LibUSB v1.0 API.
...
Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week
2016-06-16 14:26:04 +00:00
hselasky
29ad2f5a15
Add support for libusb_get_port_number() to the LibUSB v1.0 API.
...
Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week
2016-06-16 12:14:19 +00:00
hselasky
25a6439c8e
Define LIBUSB_API_VERSION.
...
Approved by: re (kostikbel)
Requested by: swills
MFC after: 1 week
2016-06-16 11:51:20 +00:00
hselasky
b6f4f4bfc4
Implement libusb_get_version() and update libusb manual page.
...
Approved by: re (glebius)
Requested by: swills
MFC after: 1 week
2016-06-16 07:48:21 +00:00
hselasky
92b2a48e22
Fix compile warning.
...
Approved by: re (delphij)
MFC after: 1 week
2016-06-13 01:33:02 +00:00
hselasky
95dbfb128a
Implement code to stop all USB endpoints before executing a USB device
...
reset command, alternate setting command or set configuration
command. Else LibUSB v1.0 will not re-open the endpoints which the
kernel closes and the USB application might wait infinitely for
transfers to complete.
Approved by: re (hrs)
MFC after: 3 days
2016-06-12 23:26:38 +00:00
pfg
9e7434b2c5
lib: minor spelling fixes in comments.
...
No functional change.
2016-05-01 19:37:33 +00:00
gjb
e0e3598ce1
MFH
...
Sponsored by: The FreeBSD Foundation
2016-04-11 15:24:59 +00:00
pfg
aa42ac0ef5
USB: replace 0 with NULL for pointers.
...
Found with devel/coccinelle.
Reviewed by: hselasky
2016-04-09 20:36:07 +00:00
gjb
fef2698edf
First pass through library packaging.
...
Sponsored by: The FreeBSD Foundation
2016-02-04 21:16:35 +00:00
bdrewery
e13d6f8b3f
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.
...
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
2015-11-25 19:10:28 +00:00
bdrewery
62a263e3d1
Remove redundant COMPAT_32BIT guard on pkgconfig files. This is already handled
...
by the LIBRARIES_ONLY mechanism protecting FILES.
Sponsored by: EMC / Isilon Storage Division
2015-10-03 16:34:21 +00:00
bdrewery
deb97713e0
Replace beforeinstall: handling with FILES.
...
This actually fixes some cases to respect LIBRARIES_ONLY.
Sponsored by: EMC / Isilon Storage Division
2015-09-18 23:49:32 +00:00
antoine
3d392581f0
bsd.lib.mk has to be included after MLINKS assignment
2015-08-15 19:00:38 +00:00
pfg
317b3132ab
libusb: Fix minor cast-qual warning.
...
Fix a warning triggered by the gcc + FORTIFY_SOURCE patches:
In function 'libusb20_parse_config_desc': lib/libusb/libusb20_desc.c:141:
warning: passing argument 1 of 'memcpy' discards qualifiers from pointer
target type
Submitted by: hselansky
2015-07-20 16:15:56 +00:00
araujo
8d3d80571c
Remove unused variables to silence CLANG warnings.
...
Remove some BLANK lines and unnecessary TABS.
Differential Revision: D2687
Reviewed by: rodrigc, hselasky
2015-06-24 01:34:35 +00:00
sjg
008d7c831f
Add META_MODE support.
...
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
2015-06-13 19:20:56 +00:00
sjg
75a137820d
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
sjg
65145fa4c8
Merge sync of head
2015-05-27 01:19:58 +00:00
hselasky
664eb6feb5
Add more USB request definitions. The values are described in section
...
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week
2015-01-16 12:11:01 +00:00
hselasky
530526c53d
Fix spelling.
2015-01-14 06:46:25 +00:00
joel
716fc8f57e
mdoc: improvements to SEE ALSO.
2014-12-27 08:31:52 +00:00
bapt
6adce30d28
Convert libraries to use LIBADD
...
While here reduce a bit overlinking
2014-11-25 11:07:26 +00:00
sjg
b137080f19
Merge from head@274682
2014-11-19 01:07:58 +00:00
jmg
fd5207ca61
only install .pc files when we are not installing 32bit compat libs...
...
This fixes the problem of installing the .pc files multiple times...
2014-10-27 23:43:25 +00:00
sjg
d7cd1d425c
Merge head from 7/28
2014-08-19 06:50:54 +00:00
hselasky
1ca71f77fa
Add more USB class codes.
...
Obtained from: libusb project at SourceForge
MFC after: 1 week
2014-08-18 14:23:07 +00:00
emaste
47370c0263
Update reported libusb version to 1.0.13
...
QEMU libusb host support needs at least libusbx-1.0.13, and our in-tree
libusb supports the required functionality. Exp-run in PR.
PR: 181035
2014-06-05 14:19:32 +00:00
hselasky
d85652abc4
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
...
from sourceforge.
PR: usb/190204
MFC after: 1 week
2014-05-25 18:06:32 +00:00
sjg
5860f0d106
Updated dependencies
2014-05-16 14:09:51 +00:00
sjg
1a7e48acf1
Updated dependencies
2014-05-10 05:16:28 +00:00
sjg
0c7e03a54c
Merge head
2014-04-27 08:13:43 +00:00
hselasky
f59574f343
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0
...
APIs to increase the maximum bandwidth limit.
MFC after: 1 week
2014-04-11 14:11:55 +00:00
eadler
4a1576d4ec
libusb: add libusb_log_level enum
...
This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html
2014-03-14 20:54:15 +00:00
hselasky
caab93f631
Comply to the official LibUSB v1.0 API:
...
"It is legal to attempt to claim an already-claimed interface."
MFC after: 1 week
2014-01-28 07:21:46 +00:00
hselasky
9327f5e312
Implement two new libusb API functions.
...
PR: usb/185454
MFC after: 2 weeks
2014-01-05 10:41:43 +00:00
sjg
62bb106222
Merge from head
2013-09-05 20:18:59 +00:00
hselasky
d2f07e2fda
Correct two comments.
2013-09-05 12:21:11 +00:00
rpaulo
56a6c80c3f
Add pkgconf files for libusb.
...
Reviewed by: hselasky
2013-07-25 03:54:08 +00:00
hselasky
9ea6fe9fbe
Add some missing definitions to build a working FreeBSD's libusb under Linux.
2013-07-14 10:22:00 +00:00
emaste
fea20f0dd0
Add libusb_get_port_numbers
...
libusbx deprecated libusb_get_port_path and replaced it with
libusb_get_port_numbers. The latter omits an extra parameter which was
unused in the FreeBSD implementation anyway.
2013-06-07 13:45:58 +00:00
joel
05a725b2d7
mdoc sweep.
2013-05-12 22:22:12 +00:00
emaste
550d992a33
Add libusb_get_port_path wrapper
...
This follows the libusbx API reference at
http://libusbx.sourceforge.net/api-1.0/group__dev.html
Reviewed by: hselasky@
2013-05-08 00:55:29 +00:00