#
362224 |
|
16-Jun-2020 |
kevans |
MFC r361977: libusb: improve compatibility
Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API. Descriptions and functionality for these derived from the documentation at [0]. The current set of capabilities are all supported by libusb.
These were detected as missing after updating net/freerdp to 2.1.1, which attempted to use both.
[0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html
|
#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
328142 |
|
18-Jan-2018 |
kevans |
MFC r322322: Expose device caps as libusb_bos_descriptor::dev_capability
Some libusb consumers in Linux-land (in this case, libusb4java) expect a dev_capability member that they can use to enumerate the device capabilities.
No particular layout is expected of this, just that it can be traversed using the bLength member until bNumDeviceCapabilities are read and that the consumer may then use one of the libusb_get_*_descriptor methods to extract specific (usb 2.0 vs. ss) capability information.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302171 |
|
24-Jun-2016 |
hselasky |
Resolve issue with libusb C++ header file inclusion.
Approved by: re (marius) PR: 210509 MFC after: 1 week
|
#
302125 |
|
23-Jun-2016 |
hselasky |
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
|
#
302080 |
|
22-Jun-2016 |
hselasky |
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
|
#
301968 |
|
16-Jun-2016 |
hselasky |
Add multiple missing descriptor parsing functions to the LibUSB v1.0 API.
Approved by: re (kib) Requested by: swills MFC after: 1 week
|
#
301966 |
|
16-Jun-2016 |
hselasky |
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
|
#
301964 |
|
16-Jun-2016 |
hselasky |
Add support for libusb_get_port_number() to the LibUSB v1.0 API.
Approved by: re (kostikbel) Requested by: swills MFC after: 1 week
|
#
301957 |
|
16-Jun-2016 |
hselasky |
Define LIBUSB_API_VERSION.
Approved by: re (kostikbel) Requested by: swills MFC after: 1 week
|
#
301956 |
|
16-Jun-2016 |
hselasky |
Implement libusb_get_version() and update libusb manual page.
Approved by: re (glebius) Requested by: swills MFC after: 1 week
|
#
277245 |
|
16-Jan-2015 |
hselasky |
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
|
#
270133 |
|
18-Aug-2014 |
hselasky |
Add more USB class codes.
Obtained from: libusb project at SourceForge MFC after: 1 week
|
#
266664 |
|
25-May-2014 |
hselasky |
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API from sourceforge.
PR: usb/190204 MFC after: 1 week
|
#
263191 |
|
14-Mar-2014 |
eadler |
libusb: add libusb_log_level enum
This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html
|
#
260315 |
|
05-Jan-2014 |
hselasky |
Implement two new libusb API functions.
PR: usb/185454 MFC after: 2 weeks
|
#
251495 |
|
07-Jun-2013 |
emaste |
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.
|
#
250342 |
|
07-May-2013 |
emaste |
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@
|
#
250335 |
|
07-May-2013 |
emaste |
Constify libusb_get_pollfds return
The correct return type, per our libusb(3) man page and the libusb.org and libusbx projects (whose interface we intend to follow for our libusb), is const struct libusb_pollfd **.
Unfortunately the doxygen-generated libusbx API documentation[1] omits[2] the const for some reason.
[1] http://libusbx.sourceforge.net/api-1.0/group__poll.html#gab1a72869a926552b27a6c667695df3a2
[2] http://sourceforge.net/mailarchive/forum.php?thread_name=497D10BE.8090007%40n-dimensional.de&forum_name=libusb-devel
Reviewed by: hselasky@
|
#
248236 |
|
13-Mar-2013 |
hselasky |
- Make the FreeBSD's USB library compile under Linux. - Fix a compile warning where the return value of a call to a write() function was ignored. - Remove redundant include files from userland USB header files. - Add some now needed include files to various C-files.
|
#
235128 |
|
07-May-2012 |
hselasky |
Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().
Reported by: Xiaofan Chen
|
#
234684 |
|
25-Apr-2012 |
hselasky |
Fix binary compatibility to the official LibUSB 1.0. This is useful for GNU/kFreeBSD and the libusb2debian port. Applications using the asynchronous API of LibUSB 1.0 needs to be recompiled after this update.
Found by: lme @
|
#
234193 |
|
12-Apr-2012 |
hselasky |
Add missing LibUSB 1.0 API function.
Reported by: lme @ MFC after: 1 week
|
#
227404 |
|
09-Nov-2011 |
hselasky |
Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0. Some header file parts of this patch were taken from a patch submitted by Maya Erez <merez@codeaurora.org> to the LibUSB developers list.
MFC after: 1 week
|
#
225659 |
|
19-Sep-2011 |
hselasky |
Implement missing USB debug information functions.
Approved by: re (kib) MFC after: 1 week
|
#
224903 |
|
16-Aug-2011 |
hselasky |
Add missing function to get device speed to the LibUSB v1.0 API.
MFC after: 1 week Approved by: re (kib)
|
#
213853 |
|
14-Oct-2010 |
hselasky |
- Add missing LibUSB API functions: * libusb_strerror() * libusb_get_driver[_np]() * libusb_detach_kernel_driver[_np]() - Factor out setting of non-blocking flag inside libusb. - Add missing NULL check after libusb_get_device() call. - Correct some wrong error codes due to copy and paste error.
PR: usb/150546 Submitted by: Robert Jenssen, Alexander Leidinger Approved by: thompsa (mentor)
|
#
213848 |
|
14-Oct-2010 |
hselasky |
LibUSB (new API): - Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces.
Approved by: thompsa (mentor)
|
#
208020 |
|
12-May-2010 |
thompsa |
Fix header file compliancy with libusb 1.0 from sourceforge.
Reported by: Xiaofan Chen Submitted by: Hans Petter Selasky
|
#
203815 |
|
13-Feb-2010 |
wkoszek |
Resort includes to match style(9) a bit more. No functional change is expected after this commit.
Tested by: make buildworld Reviewed by: hps (patch without .h changes)
|
#
203775 |
|
11-Feb-2010 |
wkoszek |
Remove redundand headers and use more standard ones where necessary.
Reviewed by: hps@
|
#
199055 |
|
08-Nov-2009 |
thompsa |
- fix refcounting error during data transfer - fix a memory leak on the USB backend - fix invalid pointer computations (in one case memory outside the allocated area was written in LibUSB v1.0) - make sure memory is always initialised, also in failing cases - add missing functions from v1.0.4
PR: usb/140325 Reported by: Robert Jenssen Submitted by: Hans Petter Selasky MFC After: 3 days
|
#
195957 |
|
29-Jul-2009 |
alfred |
LibUSB v1.0:
- Significantly improve libusb10 support. - Many minor issues fixed. - P4 ID: 166189, 165853, 165991, 166052, 166069
Submitted by: hps Approved by: re
|
#
195560 |
|
10-Jul-2009 |
thompsa |
Sync the libusb 1.0 exported api to the latest GSoC code.
- Fix possible uninitialised variables and null derefs - Support big transfers - Various bug fixes and style changes
Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Approved by: re (kib)
|
#
194676 |
|
22-Jun-2009 |
thompsa |
Add files missed in r194674.
Add libusb 1.0 support which is compatible with the latest revision on Sourceforge. Libusb 1.0 is a portable usb api released December 2008 and supersedes the original libusb released 10 years ago, it supports isochronous endpoints and asynchronous I/O. Many applications have already started using the interfaces.
This has been developed as part of Google Summer of Code this year by Sylvestre Gallon and has been cribbed early due to it being desirable in FreeBSD 8.0
Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Reviewed by: Hans Petter Selasky
|