aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb
Commit message (Collapse)AuthorAgeFilesLines
...
* - Add support for LibUSB in 32-bit compatibility mode.Hans Petter Selasky2010-10-144-16/+30
| | | | | | | Approved by: thompsa (mentor) Notes: svn path=/head/; revision=213852
* - Fix some compile warnings regarding comparing signed to unsigned.Hans Petter Selasky2010-10-141-2/+2
| | | | | | | Approved by: thompsa (mentor) Notes: svn path=/head/; revision=213849
* LibUSB (new API):Hans Petter Selasky2010-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) Notes: svn path=/head/; revision=213848
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whileJoel Dahl2010-08-161-1/+1
| | | | | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> Notes: svn path=/head/; revision=211397
* Fix typos and spelling mistakes.Joel Dahl2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210933
* Spelling fixes.Joel Dahl2010-08-031-1/+1
| | | | Notes: svn path=/head/; revision=210823
* Fix return values for usb_find_busses() and usb_find_devices(). We should tryAndrew Thompson2010-05-131-2/+2
| | | | | | | | | | to return the actual number of busses and devices. Reported by: Mike Tancsa Submitted by: Hans Petter Selaksy Notes: svn path=/head/; revision=208021
* Fix header file compliancy with libusb 1.0 from sourceforge.Andrew Thompson2010-05-134-2/+8
| | | | | | | | 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-1310-32/+36
| | | | | | | | | | is expected after this commit. Tested by: make buildworld Reviewed by: hps (patch without .h changes) Notes: svn path=/head/; revision=203815
* Remove redundand headers and use more standard ones where necessary.Wojciech A. Koszek2010-02-116-11/+1
| | | | | | | Reviewed by: hps@ Notes: svn path=/head/; revision=203775
* 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
* Within libusb 0.1 API, bus number is always faked to 0. Device numbers,Wojciech A. Koszek2010-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@ Notes: svn path=/head/; revision=203773
* Add a function to check if the usb devices is still connected.Andrew Thompson2010-01-295-0/+44
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=203147
* Reset variable fields in case the transfer is opened againAndrew Thompson2010-01-101-1/+12
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=202025
* Build lib/ with WARNS=6 by default.Ed Schouten2010-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. Notes: svn path=/head/; revision=201381
* 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-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] Notes: svn path=/head/; revision=199575
* - fix refcounting error during data transferAndrew Thompson2009-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 Notes: svn path=/head/; revision=199055
* Prevent wraparound of the timeout variable.Andrew Thompson2009-10-221-1/+5
| | | | | | | Submitted by: HPS Notes: svn path=/head/; revision=198376
* LibUSB v1.0:Alfred Perlstein2009-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 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-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) 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
* mdoc(7) police: Fixed broken xrefs.Ruslan Ermilov2001-08-221-1/+1
| | | | Notes: svn path=/head/; revision=82139
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* Fixed prototypes. About half of them were wrong (mainly due to constBruce Evans2001-02-061-10/+10
| | | | | | | poisoning having not reached here). Notes: svn path=/head/; revision=72066
* Added used include of <sys/cdefs.h>.Bruce Evans2001-02-061-0/+4
| | | | | | | Declare all the interfaces documented in usb.3 (2 were missing). Notes: svn path=/head/; revision=72065
* mdoc(7) police: use certified section headers wherever possible.Ruslan Ermilov2000-11-171-1/+1
| | | | Notes: svn path=/head/; revision=68854
* Remove fullstops from the end of .Xr lines in SEE ALSO section.Ben Smithurst2000-11-151-1/+1
| | | | Notes: svn path=/head/; revision=68751
* Sync with NetBSD:Nick Hibma2000-10-165-59/+132
| | | | | | | | | | | | | K&R -> ANSI Bugfix: 'Keep the bit position even when the report descriptor says POP.' Add hid_use_report_desc, hid_parse_usage_page, hid_parse_usage_in_page. Changed iface for hid_report_size. Notes: svn path=/head/; revision=67217
* Sync with NetBSD:Nick Hibma2000-08-262-5/+5
| | | | | | | | Print unknown usages with 4 digits. Mask in page extraction. Notes: svn path=/head/; revision=65116
* Remove DIAGASSERTNick Hibma2000-07-073-25/+0
| | | | Notes: svn path=/head/; revision=62757
* The USB library from NetBSD by Lennart Augustsson <lennart@augustsson.net>.Nick Hibma2000-06-118-0/+1122
Notes: svn path=/head/; revision=61560