summaryrefslogtreecommitdiff
path: root/lib/libusb
Commit message (Collapse)AuthorAgeFilesLines
* MFC r236944:Hans Petter Selasky2012-06-193-5/+33
| | | | | | | LibUSB v1.0 API compliance and bugfixes. Notes: svn path=/stable/8/; revision=237262
* MFC r235286:Glen Barber2012-05-182-18/+18
| | | | | | | | | General mdoc(7) and typo fixes. PR: 167734 Notes: svn path=/stable/8/; revision=235576
* MFC r228235, r228236, r233667, r234687, r234491, r234193, and r233424:Hans Petter Selasky2012-05-0410-53/+71
| | | | | | | | | | | Minor code simplification. No functional change. Fix some compile warnings. Fix some mdoc issues. Add missing LibUSB 1.0 API function. Notes: svn path=/stable/8/; revision=235017
* MFC r232157, r232158:Glen Barber2012-04-261-2/+2
| | | | | | | | | | | | | | | | r232157: Fix various typos in manual pages. Submitted by: amdmi3 PR: 165431 r232158: Whitespace cleanup: o Wrap sentences on to new lines o Cleanup trailing whitespace Notes: svn path=/stable/8/; revision=234719
* MFC r227404:Hans Petter Selasky2011-12-036-3/+332
| | | | | | | Add USB 3.0 descriptor support. Notes: svn path=/stable/8/; revision=228223
* MFC r226220Hans Petter Selasky2011-10-123-8/+8
| | | | | | | Fix libusb compliance. Notes: svn path=/stable/8/; revision=226282
* MFC r225659:Hans Petter Selasky2011-09-267-4/+184
| | | | | | | Implement missing USB debug information functions. Notes: svn path=/stable/8/; revision=225759
* MFC r224903, r224917, r225035, r225090, r225091:Hans Petter Selasky2011-08-234-227/+210
| | | | | | | | | | - Add missing API function to the LibUSB v1.0 API. - Update LibUSB v1.0 manual page. PR: docs/159898 Notes: svn path=/stable/8/; revision=225102
* MFC r224085:Hans Petter Selasky2011-07-196-0/+87
| | | | | | | | - Add missing APIs. - Add some rangechecks. Notes: svn path=/stable/8/; revision=224213
* MFC r223642.Hans Petter Selasky2011-06-281-1/+1
| | | | | | | LibUSB v1.0 clear stall bugfix. Notes: svn path=/stable/8/; revision=223643
* MFC r223495:Hans Petter Selasky2011-06-277-1/+47
| | | | | | | | | | | | - Add two new API's to libusb20 which can be used to retrive information about the parent USB device (which is usually an USB HUB): - libusb20_dev_get_parent_address - libusb20_dev_get_parent_port - Rename libusb20_compat01.c into libusb01.c Notes: svn path=/stable/8/; revision=223612
* MFC r210823, r211397, r210933, r219101, r213852, r213849 and r208020:Hans Petter Selasky2011-06-228-26/+217
| | | | | | | | - Add support for LibUSB in 32-bit compatibility mode. - Some manpage related fixes. Notes: svn path=/stable/8/; revision=223419
* MFC r219100Hans Petter Selasky2011-04-086-22/+30
| | | | | | | | | - Add support for software pre-scaling of ISOCHRONOUS transfers. Approved by: thompsa (mentor) Notes: svn path=/stable/8/; revision=220434
* MFC r216431:Kevin Lo2010-12-281-0/+5
| | | | | | | | | Check return value of malloc(). Reviewed by: hselasky Notes: svn path=/stable/8/; revision=216751
* MFC r215450Andrew Thompson2010-11-281-5/+10
| | | | | | | | | | Correct description of the return values of the LibUSB v1.0 libusb_control_transfer() function. PR: usb/151851 Notes: svn path=/stable/8/; revision=215984
* MFC r215253Andrew Thompson2010-11-282-4/+11
| | | | | | | | | | | Fix LibUSB v1.0 compliancy. 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. Notes: svn path=/stable/8/; revision=215983
* MFC r213848Andrew Thompson2010-11-285-0/+39
| | | | | | | | | - Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces. Notes: svn path=/stable/8/; revision=215982
* MFC r213853Andrew Thompson2010-11-194-22/+120
| | | | | | | | | | | | | | | | - 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 Notes: svn path=/stable/8/; revision=215546
* MFC r203815Andrew Thompson2010-11-1910-32/+36
| | | | | | | | Resort includes to match style(9) a bit more. No functional change is expected after this commit. Notes: svn path=/stable/8/; revision=215477
* MFC r203775Andrew Thompson2010-11-196-11/+1
| | | | | | | Remove redundand headers and use more standard ones where necessary. Notes: svn path=/stable/8/; revision=215476
* MFC r203774Andrew Thompson2010-11-191-7/+9
| | | | | | | | Use more standard way for setting nonblocking flag for a filedescriptor. This makes libusb porting a bit easier. Notes: svn path=/stable/8/; revision=215475
* MFC r203773Andrew Thompson2010-05-171-0/+3
| | | | | | | | | | | | Within libusb 0.1 API, bus number is always faked to 0. Device numbers, however, are possitive and seem to be reverse sorted in the list. Conform device numbering and bring a result that is consistent with the libusb 0.1 API. It is now possible to distinguish a device based on its (bus, dev) numbers. Notes: svn path=/stable/8/; revision=208237
* MFC r208021Andrew Thompson2010-05-171-2/+2
| | | | | | | | Fix return values for usb_find_busses() and usb_find_devices(). We should try to return the actual number of busses and devices. Notes: svn path=/stable/8/; revision=208235
* MFC r208020Andrew Thompson2010-05-174-2/+8
| | | | | | | Fix header file compliancy with libusb 1.0 from sourceforge. Notes: svn path=/stable/8/; revision=208233
* MFC r203147Andrew Thompson2010-04-075-0/+44
| | | | | | | | | Add a function to check if the usb devices is still connected. Submitted by: Hans Petter Selasky Notes: svn path=/stable/8/; revision=206332
* MFC r202025Andrew Thompson2010-01-171-1/+12
| | | | | | | Reset variable fields in case the transfer is opened again Notes: svn path=/stable/8/; revision=202504
* Merge from head to stable/8:Sean Farley2009-12-201-2/+2
| | | | | | | | | | | r200424: Fix libusb_open_device_with_vid_pid() to return a NULL if no device is found instead of the last device in its search list. Reviewed by: thompsa Notes: svn path=/stable/8/; revision=200757
* MFC r199575Andrew Thompson2009-12-095-11/+155
| | | | | | | | | | | | - 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=/stable/8/; revision=200312
* MFC r199055Andrew Thompson2009-11-117-35/+251
| | | | | | | | | | | | | | - 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 Notes: svn path=/stable/8/; revision=199165
* MFC r198376Andrew Thompson2009-10-231-1/+5
| | | | | | | | | | Prevent wraparound of the timeout variable. Submitted by: HPS Approved by: re (kib) Notes: svn path=/stable/8/; revision=198386
* LibUSB v1.0:Alfred Perlstein2009-07-309-1518/+1343
| | | | | | | | | | | | - 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
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | 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
* Sync the libusb 1.0 exported api to the latest GSoC code.Andrew Thompson2009-07-105-505/+509
| | | | | | | | | | | | | - 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
* - Make struct usb_xfer opaque so that drivers can not access the internalsAndrew Thompson2009-06-231-3/+1
| | | | | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h Notes: svn path=/head/; revision=194677
* Add files missed in r194674.Andrew Thompson2009-06-235-0/+2861
| | | | | | | | | | | | | | | | | | 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
* Add libusb 1.0 support which is compatible with the latest revision onAndrew Thompson2009-06-235-799/+1227
| | | | | | | | | | | | | | | | | 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=194674
* Cleanup claim/release interface code, which is specific to libusb v0.1. RemoveAndrew Thompson2009-06-126-124/+12
| | | | | | | | | claim and release interface support from libusb v2.0, because it is not useful. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=194069
* Add libusb20_tr_get_length to get the transfer length.Andrew Thompson2009-06-023-4/+39
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=193313
* s/usb2_/usb_/ on all C structs for the USB stack.Andrew Thompson2009-05-285-32/+32
| | | | Notes: svn path=/head/; revision=192984
* Fix libusb20_dev_get_device_desc and defunt xref.Andrew Thompson2009-05-211-4/+4
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=192550
* MFp4 //depot/projects/usb@159934Andrew Thompson2009-04-051-145/+301
| | | | | | | | | Update libusb function descriptions. Submitted by: Chuck Robey Notes: svn path=/head/; revision=190746
* Add prototypes for libusb20_be_[gs]et_template.Xin LI2009-03-171-0/+2
| | | | Notes: svn path=/head/; revision=189939
* Update libusb.3 name and add mlinks for usb.3 and libusb20.3Andrew Thompson2009-03-102-4/+7
| | | | Notes: svn path=/head/; revision=189628
* Be compatible with LibUSB from sourceforge and close the handle after resetAndrew Thompson2009-03-101-1/+5
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=189621
* libusb20 is now installed as libusb, remove the version number from theAndrew Thompson2009-03-0912-0/+6135
| | | | | | | directory name. Notes: svn path=/head/; revision=189587
* Follow NetBSD and rename libusb to libusbhid.Josef Karthauser2002-03-278-1175/+0
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=93282
* Remove __P() usage.David E. O'Brien2002-03-211-15/+15
| | | | Notes: svn path=/head/; revision=92917
* Prefix structure members to protect them against clashes with eg.Alfred Perlstein2002-02-201-2/+2
| | | | | | | | | | | | 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
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Add __FBSDID()s to libusbMatthew Dillon2001-09-304-11/+12
| | | | Notes: svn path=/head/; revision=84224