summaryrefslogtreecommitdiffstats
path: root/lib/libusb
Commit message (Collapse)AuthorAgeFilesLines
* Minor mdoc fixes.joel2012-03-241-11/+1
|
* Fix various typos in manual pages.gjb2012-02-251-2/+2
| | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week
* Simplify libusb_open_device_with_vid_pid(): Only sethselasky2011-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
* libusb_open() sets the given device handle to NULL if ithselasky2011-12-031-2/+1
| | | | | | | fails, so there is no need to do it again after returning. Submitted by: Christoph Mallon MFC after: 3 days
* Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0.hselasky2011-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
* Fix how libusb20_dev_kernel_driver_active() andhselasky2011-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
* Implement missing USB debug information functions.hselasky2011-09-197-4/+184
| | | | | Approved by: re (kib) MFC after: 1 week
* Spelling corrections for LibUSB manual page (2/2).hselasky2011-08-221-64/+70
| | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898
* Whitespace corrections for LibUSB manual page (1/2).hselasky2011-08-221-183/+118
| | | | | | MFC after: 1 week Approved by: re (kib) PR: docs/159898
* Use correct enum instead of constant value.hselasky2011-08-201-1/+1
| | | | | | MFC after: 1 week Spotted by: scf @ Approved by: re (kib)
* Update LibUSB v1.0 manual page:hselasky2011-08-162-22/+34
| | | | | | | | | - fix some minor spelling - fix some style - add description of new function MFC after: 1 week Approved by: re (kib)
* Add missing function to get device speed to the LibUSB v1.0 API.hselasky2011-08-162-0/+30
| | | | | MFC after: 1 week Approved by: re (kib)
* - Add two missing functions to the LibUSB v0.1 API.hselasky2011-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
* LibUSB v1.0: Need at least one frame when doing the dummy openhselasky2011-06-281-1/+1
| | | | else clear stall won't work in that case.
* - Add two new API's to libusb20 which can be used to retrive informationhselasky2011-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
* - Add missing MLINKS for libusb and some manpage fixes.hselasky2011-02-282-3/+180
| | | | | MFC after: 14 days Approved by: thompsa (mentor)
* - Add support for software pre-scaling of ISOCHRONOUS transfers.hselasky2011-02-286-22/+30
| | | | | MFC after: 14 days Approved by: thompsa (mentor)
* Check the return value of malloc().kevlo2010-12-141-0/+5
| | | | | Reviewed by: hselasky MFC after: 3 days
* Correct description of the return values ofhselasky2010-11-181-5/+10
| | | | | | | | the LibUSB v1.0 libusb_control_transfer() function. PR: usb/151851 Submitted by: HIROSHI OOTA Approved by: thompsa (mentor)
* Fix LibUSB v1.0 compliancy.hselasky2010-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)
* - Add missing LibUSB API functions:hselasky2010-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)
* - Add support for LibUSB in 32-bit compatibility mode.hselasky2010-10-144-16/+30
| | | | Approved by: thompsa (mentor)
* - Fix some compile warnings regarding comparing signed to unsigned.hselasky2010-10-141-2/+2
| | | | Approved by: thompsa (mentor)
* LibUSB (new API):hselasky2010-10-145-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. Approved by: thompsa (mentor)
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-1/+1
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Fix typos and spelling mistakes.joel2010-08-061-1/+1
|
* Spelling fixes.joel2010-08-031-1/+1
|
* Fix return values for usb_find_busses() and usb_find_devices(). We should trythompsa2010-05-131-2/+2
| | | | | | | to return the actual number of busses and devices. Reported by: Mike Tancsa Submitted by: Hans Petter Selaksy
* Fix header file compliancy with libusb 1.0 from sourceforge.thompsa2010-05-134-2/+8
| | | | | Reported by: Xiaofan Chen Submitted by: Hans Petter Selasky
* Resort includes to match style(9) a bit more. No functional changewkoszek2010-02-1310-32/+36
| | | | | | | is expected after this commit. Tested by: make buildworld Reviewed by: hps (patch without .h changes)
* Remove redundand headers and use more standard ones where necessary.wkoszek2010-02-116-11/+1
| | | | Reviewed by: hps@
* Use more standard way for setting nonblocking flag for a filedescriptor.wkoszek2010-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@
* Within libusb 0.1 API, bus number is always faked to 0. Device numbers,wkoszek2010-02-111-0/+3
| | | | | | | | | | | | | | 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. There shouldn't be any negative change in behavior after this commit. Tested with: scanimage (sane) http://freebsd.czest.pl/~wkoszek/qemu/l.c Reviewed by: hps@
* Add a function to check if the usb devices is still connected.thompsa2010-01-295-0/+44
| | | | Submitted by: Hans Petter Selasky
* Reset variable fields in case the transfer is opened againthompsa2010-01-101-1/+12
| | | | Submitted by: Hans Petter Selasky
* Build lib/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
* Fix libusb_open_device_with_vid_pid() to return a NULL if no device isscf2009-12-121-2/+2
| | | | | | | found instead of the last device in its search list. Reviewed by: thompsa MFC after: 5 days
* Sync to P4thompsa2009-11-205-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]
* - fix refcounting error during data transferthompsa2009-11-087-35/+251
| | | | | | | | | | | | | - 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
* Prevent wraparound of the timeout variable.thompsa2009-10-221-1/+5
| | | | Submitted by: HPS
* LibUSB v1.0:alfred2009-07-309-1531/+1356
| | | | | | | | | - Significantly improve libusb10 support. - Many minor issues fixed. - P4 ID: 166189, 165853, 165991, 166052, 166069 Submitted by: hps Approved by: re
* Bump the version of all non-symbol-versioned shared libraries inkensmith2009-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)
* Sync the libusb 1.0 exported api to the latest GSoC code.thompsa2009-07-105-506/+510
| | | | | | | | | | - 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)
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-3/+1
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* Add files missed in r194674.thompsa2009-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
* Add libusb 1.0 support which is compatible with the latest revision onthompsa2009-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
* Cleanup claim/release interface code, which is specific to libusb v0.1. Removethompsa2009-06-126-124/+12
| | | | | | claim and release interface support from libusb v2.0, because it is not useful. Submitted by: Hans Petter Selasky
* Add libusb20_tr_get_length to get the transfer length.thompsa2009-06-023-4/+39
| | | | Submitted by: Hans Petter Selasky
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-285-32/+32
|
* Fix libusb20_dev_get_device_desc and defunt xref.thompsa2009-05-211-4/+4
| | | | Submitted by: Hans Petter Selasky
OpenPOWER on IntegriCloud