aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb10.c
Commit message (Collapse)AuthorAgeFilesLines
* 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 support for software pre-scaling of ISOCHRONOUS transfers.Hans Petter Selasky2011-02-281-15/+3
| | | | | | | | MFC after: 14 days Approved by: thompsa (mentor) Notes: svn path=/head/; revision=219100
* Fix LibUSB v1.0 compliancy.Hans Petter Selasky2010-11-131-0/+4
| | | | | | | | | | | | | 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-141-12/+72
| | | | | | | | | | | | | | | | * 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
* LibUSB (new API):Hans Petter Selasky2010-10-141-0/+15
| | | | | | | | | | | - 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) Notes: svn path=/head/; revision=213848
* Fix header file compliancy with libusb 1.0 from sourceforge.Andrew Thompson2010-05-131-0/+2
| | | | | | | | Reported by: Xiaofan Chen Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=208020
* Resort includes to match style(9) a bit more. No functional changeWojciech A. Koszek2010-02-131-7/+8
| | | | | | | | | | is expected after this commit. Tested by: make buildworld Reviewed by: hps (patch without .h changes) Notes: svn path=/head/; revision=203815
* Use more standard way for setting nonblocking flag for a filedescriptor.Wojciech A. Koszek2010-02-111-7/+9
| | | | | | | | | | | | | This makes libusb porting a bit easier. There shouldn't by any negative change in behaviour after this commit. Remove redundant headers. Reviewed by: hps@ Notes: svn path=/head/; revision=203774
* Fix libusb_open_device_with_vid_pid() to return a NULL if no device isSean Farley2009-12-121-2/+2
| | | | | | | | | | found instead of the last device in its search list. Reviewed by: thompsa MFC after: 5 days Notes: svn path=/head/; revision=200424
* Sync to P4Andrew Thompson2009-11-201-7/+34
| | | | | | | | | | | | - fix a transfer cancelling bug/segfault [1] - correct a return code in the transfer cancel function. - add new API function, libusb20_tr_bulk_intr_sync(). Submitted by: HPS Reported by: Robert Jenssen [1] Notes: svn path=/head/; revision=199575
* - fix refcounting error during data transferAndrew Thompson2009-11-081-4/+22
| | | | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=199055
* LibUSB v1.0:Alfred Perlstein2009-07-301-680/+812
| | | | | | | | | | | | - Significantly improve libusb10 support. - Many minor issues fixed. - P4 ID: 166189, 165853, 165991, 166052, 166069 Submitted by: hps Approved by: re Notes: svn path=/head/; revision=195957
* Sync the libusb 1.0 exported api to the latest GSoC code.Andrew Thompson2009-07-101-210/+252
| | | | | | | | | | | | | - 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) Notes: svn path=/head/; revision=195560
* Add files missed in r194674.Andrew Thompson2009-06-231-0/+1140
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 Notes: svn path=/head/; revision=194676