aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20_ugen20.c
Commit message (Collapse)AuthorAgeFilesLines
* libusb: remove use of COMPAT_32BITBrooks Davis2021-12-171-8/+8
| | | | | | | | This codepath used uint64_t's in place of pointers in structs and arrays to allow 32-bit code to use 64-bit version of ioctls. Now that we support 32-bit compat natively this is no longer needed. Reviewed by: hselasky, jrtc27 (prior version)
* Implement new libusb v2.0 API function, libusb20_dev_get_stats().Hans Petter Selasky2019-12-271-0/+24
| | | | | | | | | | This function is useful when debugging USB device issues. MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=356136
* Allow the libusb20_dev_get_port_path() function to be called when theHans Petter Selasky2018-03-231-17/+8
| | | | | | | | | | | USB device is closed. This fixes a compatibility issue with upstream libusb. Found by: romain@ MFC after: 1 week Notes: svn path=/head/; revision=331419
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* Fix libusb20_dev_get_desc(3) to use the "vendor product" order, notEdward Tomasz Napierala2016-10-221-2/+2
| | | | | | | | | | | | | | "product vendor". This is consistent with how it's generally done. The ordering is visible eg in usbconfig(8) output. Note to self: MFC this to 9 and 8. Reviewed by: hselasky@ MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D8258 Notes: svn path=/head/; revision=307774
* Correct two comments.Hans Petter Selasky2013-09-051-2/+2
| | | | Notes: svn path=/head/; revision=255242
* Add some missing definitions to build a working FreeBSD's libusb under Linux.Hans Petter Selasky2013-07-141-37/+41
| | | | Notes: svn path=/head/; revision=253339
* Add new USB API to get the port path of a USB device.Hans Petter Selasky2013-05-031-0/+17
| | | | | | | | 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-131-7/+11
| | | | | | | | | | - 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-141-0/+13
| | | | | | | | | | 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-131-11/+21
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=239239
* Fix some compile warnings.Hans Petter Selasky2012-04-201-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=234491
* - Add two new API's to libusb20 which can be used to retrive informationHans Petter Selasky2011-06-241-0/+5
| | | | | | | | | | | | | 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 support for software pre-scaling of ISOCHRONOUS transfers.Hans Petter Selasky2011-02-281-1/+4
| | | | | | | | MFC after: 14 days Approved by: thompsa (mentor) Notes: svn path=/head/; revision=219100
* - Add support for LibUSB in 32-bit compatibility mode.Hans Petter Selasky2010-10-141-9/+9
| | | | | | | Approved by: thompsa (mentor) Notes: svn path=/head/; revision=213852
* Resort includes to match style(9) a bit more. No functional changeWojciech A. Koszek2010-02-131-3/+3
| | | | | | | | | | 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-111-1/+0
| | | | | | | Reviewed by: hps@ Notes: svn path=/head/; revision=203775
* Add a function to check if the usb devices is still connected.Andrew Thompson2010-01-291-0/+20
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=203147
* - fix refcounting error during data transferAndrew Thompson2009-11-081-0/+6
| | | | | | | | | | | | | | | | - 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
* - 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
* Cleanup claim/release interface code, which is specific to libusb v0.1. RemoveAndrew Thompson2009-06-121-24/+0
| | | | | | | | | 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
* s/usb2_/usb_/ on all C structs for the USB stack.Andrew Thompson2009-05-281-26/+26
| | | | Notes: svn path=/head/; revision=192984
* libusb20 is now installed as libusb, remove the version number from theAndrew Thompson2009-03-091-0/+1011
directory name. Notes: svn path=/head/; revision=189587