aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20_desc.c
Commit message (Collapse)AuthorAgeFilesLines
* Be bug compatible with other operating systems by allowing non-sequentialHans Petter Selasky2020-12-141-8/+12
| | | | | | | | | | | | | | | | | interface numbering for USB descriptors in userspace. Else certain USB control requests using the interface number, won't be recognized by the USB firmware. Refer to section 9.2.3 in the USB 2.0 specification: Interfaces are numbered from zero to one less than the number of concurrent interfaces supported by the configuration. PR: 251784 MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=368632
* 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
* lib: minor spelling fixes in comments.Pedro F. Giffuni2016-05-011-1/+1
| | | | | | | No functional change. Notes: svn path=/head/; revision=298896
* libusb: Fix minor cast-qual warning.Pedro F. Giffuni2015-07-201-5/+3
| | | | | | | | | | | | | Fix a warning triggered by the gcc + FORTIFY_SOURCE patches: In function 'libusb20_parse_config_desc': lib/libusb/libusb20_desc.c:141: warning: passing argument 1 of 'memcpy' discards qualifiers from pointer target type Submitted by: hselansky Notes: svn path=/head/; revision=285720
* Remove unused variables to silence CLANG warnings.Marcelo Araujo2015-06-241-5/+2
| | | | | | | | | | Remove some BLANK lines and unnecessary TABS. Differential Revision: D2687 Reviewed by: rodrigc, hselasky Notes: svn path=/head/; revision=284744
* - Make the FreeBSD's USB library compile under Linux.Hans Petter Selasky2013-03-131-2/+6
| | | | | | | | | | - 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
* Fix some compile warnings.Hans Petter Selasky2012-04-201-7/+7
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=234491
* Add definition of some USB 3.0 descriptors to libusb 1.0 and libusb 2.0.Hans Petter Selasky2011-11-091-0/+4
| | | | | | | | | | 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 Notes: svn path=/head/; revision=227404
* Resort includes to match style(9) a bit more. No functional changeWojciech A. Koszek2010-02-131-1/+2
| | | | | | | | | | 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
* - fix refcounting error during data transferAndrew Thompson2009-11-081-0/+3
| | | | | | | | | | | | | | | | - 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
* libusb20 is now installed as libusb, remove the version number from theAndrew Thompson2009-03-091-0/+785
directory name. Notes: svn path=/head/; revision=189587