aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb
Commit message (Collapse)AuthorAgeFilesLines
* Add more USB class codes.Hans Petter Selasky2014-08-181-0/+8
| | | | | | | | Obtained from: libusb project at SourceForge MFC after: 1 week Notes: svn path=/head/; revision=270133
* Update reported libusb version to 1.0.13Ed Maste2014-06-051-1/+1
| | | | | | | | | | 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 Notes: svn path=/head/; revision=267110
* Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-APIHans Petter Selasky2014-05-251-0/+2
| | | | | | | | | | from sourceforge. PR: usb/190204 MFC after: 1 week Notes: svn path=/head/; revision=266664
* Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0Hans Petter Selasky2014-04-112-0/+5
| | | | | | | | | APIs to increase the maximum bandwidth limit. MFC after: 1 week Notes: svn path=/head/; revision=264344
* libusb: add libusb_log_level enumEitan Adler2014-03-141-0/+13
| | | | | | | This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html Notes: svn path=/head/; revision=263191
* Comply to the official LibUSB v1.0 API:Hans Petter Selasky2014-01-281-7/+3
| | | | | | | | | "It is legal to attempt to claim an already-claimed interface." MFC after: 1 week Notes: svn path=/head/; revision=261224
* Implement two new libusb API functions.Hans Petter Selasky2014-01-054-11/+66
| | | | | | | | PR: usb/185454 MFC after: 2 weeks Notes: svn path=/head/; revision=260315
* Correct two comments.Hans Petter Selasky2013-09-051-2/+2
| | | | Notes: svn path=/head/; revision=255242
* Add pkgconf files for libusb.Rui Paulo2013-07-254-0/+41
| | | | | | | Reviewed by: hselasky Notes: svn path=/head/; revision=253637
* Add some missing definitions to build a working FreeBSD's libusb under Linux.Hans Petter Selasky2013-07-144-55/+67
| | | | Notes: svn path=/head/; revision=253339
* Add libusb_get_port_numbersEd Maste2013-06-073-2/+13
| | | | | | | | | 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. Notes: svn path=/head/; revision=251495
* mdoc sweep.Joel Dahl2013-05-121-3/+3
| | | | Notes: svn path=/head/; revision=250582
* Add libusb_get_port_path wrapperEd Maste2013-05-083-1/+18
| | | | | | | | | | This follows the libusbx API reference at http://libusbx.sourceforge.net/api-1.0/group__dev.html Reviewed by: hselasky@ Notes: svn path=/head/; revision=250342
* Constify libusb_get_pollfds returnEd Maste2013-05-072-3/+3
| | | | | | | | | | | | | | | | | | 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@ Notes: svn path=/head/; revision=250335
* Add new USB API to get the port path of a USB device.Hans Petter Selasky2013-05-036-1/+45
| | | | | | | | MFC after: 2 weeks Requested by: emaste @ Notes: svn path=/head/; revision=250201
* - Make the FreeBSD's USB library compile under Linux.Hans Petter Selasky2013-03-1314-30/+151
| | | | | | | | | | - 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. Notes: svn path=/head/; revision=248236
* Add USB API to read power draw on USB devices.Hans Petter Selasky2013-02-146-1/+39
| | | | | | | | | | Update usbconfig to print power draw on USB devices. MFC after: 2 weeks Submitted by: Matt Burke @ icritical.com Notes: svn path=/head/; revision=246789
* Add support for streams to LibUSB v2.0.Hans Petter Selasky2012-08-135-14/+43
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=239239
* LibUSB v1.0 API compiliance and bugfixes.Hans Petter Selasky2012-06-123-5/+33
| | | | | | | | | | | | | | | | | | - Use CLOCK_MONOTONIC instead of CLOCK_REALTIME, because CLOCK_MONOTONIC does not wrap into negative in near future. This fixes any potential problems using "pthread_cond_timedwait()". - Fix a bug where the "libusb_wait_for_event()" function computes an absolute timeout instead of a relative timeout. USB transfers do not depend on this timeout value. - Add dependency towards LibPthread to Makefile, because LibUSB v1.0 needs this library to function correctly. MFC after: 1 week Notes: svn path=/head/; revision=236944
* mdoc: minor Bl improvements.Joel Dahl2012-06-021-4/+5
| | | | Notes: svn path=/head/; revision=236438
* General mdoc(7) and typo fixes.Glen Barber2012-05-112-18/+18
| | | | | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235286
* Add missing LibUSB 1.0 API function: libusb_get_string_descriptor().Hans Petter Selasky2012-05-074-1/+28
| | | | | | | Reported by: Xiaofan Chen Notes: svn path=/head/; revision=235128
* Fix typo.Hans Petter Selasky2012-04-251-1/+1
| | | | Notes: svn path=/head/; revision=234687
* Bump the libusb major version due to the last commit, whichHans Petter Selasky2012-04-251-2/+2
| | | | | | | | | | changes the libusb 1.0 API. While at it, correct a manual page symlink. Suggested by: kib @ Notes: svn path=/head/; revision=234686
* Fix binary compatibility to the official LibUSB 1.0.Hans Petter Selasky2012-04-252-10/+3
| | | | | | | | | | | 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 @ Notes: svn path=/head/; revision=234684
* Fix some compile warnings.Hans Petter Selasky2012-04-206-30/+29
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=234491
* Add missing LibUSB 1.0 API function.Hans Petter Selasky2012-04-124-1/+33
| | | | | | | | Reported by: lme @ MFC after: 1 week Notes: svn path=/head/; revision=234193
* Remove superfluous paragraph macro.Joel Dahl2012-03-291-3/+0
| | | | Notes: svn path=/head/; revision=233667
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Minor mdoc fixes.Joel Dahl2012-03-241-11/+1
| | | | Notes: svn path=/head/; revision=233424
* Fix various typos in manual pages.Glen Barber2012-02-251-2/+2
| | | | | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week Notes: svn path=/head/; revision=232157
* Simplify libusb_open_device_with_vid_pid(): Only setHans Petter Selasky2011-12-031-4/+5
| | | | | | | | | | | pdev to non-NULL on success instead of unconditonally setting it and maybe resetting it later. Submitted by: Christoph Mallon MFC after: 3 days Notes: svn path=/head/; revision=228236
* libusb_open() sets the given device handle to NULL if itHans Petter Selasky2011-12-031-2/+1
| | | | | | | | | | fails, so there is no need to do it again after returning. Submitted by: Christoph Mallon MFC after: 3 days Notes: svn path=/head/; revision=228235
* Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0.Hans Petter Selasky2011-11-096-3/+332
| | | | | | | | | | 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 Notes: svn path=/head/; revision=227404
* Fix how libusb20_dev_kernel_driver_active() andHans Petter Selasky2011-10-103-8/+8
| | | | | | | | | | | | libusb_dev_kernel_driver_active() works. In case of libusb20 the manpage was wrong and in case of libusb10 the implementation was wrong. Submitted by: Kai Wang MFC after: 3 days Notes: svn path=/head/; revision=226220
* Implement missing USB debug information functions.Hans Petter Selasky2011-09-197-4/+184
| | | | | | | | Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225659
* Spelling corrections for LibUSB manual page (2/2).Hans Petter Selasky2011-08-221-64/+70
| | | | | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898 Notes: svn path=/head/; revision=225091
* Whitespace corrections for LibUSB manual page (1/2).Hans Petter Selasky2011-08-221-183/+118
| | | | | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898 Notes: svn path=/head/; revision=225090
* Use correct enum instead of constant value.Hans Petter Selasky2011-08-201-1/+1
| | | | | | | | | MFC after: 1 week Spotted by: scf @ Approved by: re (kib) Notes: svn path=/head/; revision=225035
* Update LibUSB v1.0 manual page:Hans Petter Selasky2011-08-162-22/+34
| | | | | | | | | | | | - fix some minor spelling - fix some style - add description of new function MFC after: 1 week Approved by: re (kib) Notes: svn path=/head/; revision=224917
* Add missing function to get device speed to the LibUSB v1.0 API.Hans Petter Selasky2011-08-162-0/+30
| | | | | | | | MFC after: 1 week Approved by: re (kib) Notes: svn path=/head/; revision=224903
* - Add two missing functions to the LibUSB v0.1 API.Hans Petter Selasky2011-07-166-0/+87
| | | | | | | | | | | | - Clamp the string length to 255 bytes when getting the interface description. - Clamp data request length to 65535 bytes when doing control requests. MFC after: 3 days Notes: svn path=/head/; revision=224085
* LibUSB v1.0: Need at least one frame when doing the dummy openHans Petter Selasky2011-06-281-1/+1
| | | | | | | else clear stall won't work in that case. Notes: svn path=/head/; revision=223642
* - Add two new API's to libusb20 which can be used to retrive informationHans Petter Selasky2011-06-247-1/+47
| | | | | | | | | | | | | about the parent USB device: - libusb20_dev_get_parent_address - libusb20_dev_get_parent_port - Rename libusb20_compat01.c into libusb01.c MFC after: 3 days Notes: svn path=/head/; revision=223495
* - Add missing MLINKS for libusb and some manpage fixes.Hans Petter Selasky2011-02-282-3/+180
| | | | | | | | MFC after: 14 days Approved by: thompsa (mentor) Notes: svn path=/head/; revision=219101
* - Add support for software pre-scaling of ISOCHRONOUS transfers.Hans Petter Selasky2011-02-286-22/+30
| | | | | | | | MFC after: 14 days Approved by: thompsa (mentor) Notes: svn path=/head/; revision=219100
* Check the return value of malloc().Kevin Lo2010-12-141-0/+5
| | | | | | | | Reviewed by: hselasky MFC after: 3 days Notes: svn path=/head/; revision=216431
* Correct description of the return values ofHans Petter Selasky2010-11-181-5/+10
| | | | | | | | | | | the LibUSB v1.0 libusb_control_transfer() function. PR: usb/151851 Submitted by: HIROSHI OOTA Approved by: thompsa (mentor) Notes: svn path=/head/; revision=215450
* Fix LibUSB v1.0 compliancy.Hans Petter Selasky2010-11-132-4/+11
| | | | | | | | | | | | | 1) We need to allow the USB callback to free the USB transfer itself. 2) The USB transfer buffer should only be automatically freed when freeing the USB transfer. Fixed by: hselasky Submitted by: Gustau Perez i Querol Approved by: thompsa (mentor) Notes: svn path=/head/; revision=215253
* - Add missing LibUSB API functions:Hans Petter Selasky2010-10-144-22/+120
| | | | | | | | | | | | | | | | * 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) Notes: svn path=/head/; revision=213853