| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Submitted by: amdmi3
PR: 165431
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
pdev to non-NULL on success instead of unconditonally
setting it and maybe resetting it later.
Submitted by: Christoph Mallon
MFC after: 3 days
|
|
|
|
|
|
|
| |
fails, so there is no need to do it again after returning.
Submitted by: Christoph Mallon
MFC after: 3 days
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Approved by: re (kib)
MFC after: 1 week
|
|
|
|
|
|
| |
MFC after: 1 week
Approved by: re (kib)
PR: docs/159898
|
|
|
|
|
|
| |
MFC after: 1 week
Approved by: re (kib)
PR: docs/159898
|
|
|
|
|
|
| |
MFC after: 1 week
Spotted by: scf @
Approved by: re (kib)
|
|
|
|
|
|
|
|
|
| |
- fix some minor spelling
- fix some style
- add description of new function
MFC after: 1 week
Approved by: re (kib)
|
|
|
|
|
| |
MFC after: 1 week
Approved by: re (kib)
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
else clear stall won't work in that case.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
MFC after: 14 days
Approved by: thompsa (mentor)
|
|
|
|
|
| |
MFC after: 14 days
Approved by: thompsa (mentor)
|
|
|
|
|
| |
Reviewed by: hselasky
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
the LibUSB v1.0 libusb_control_transfer() function.
PR: usb/151851
Submitted by: HIROSHI OOTA
Approved by: thompsa (mentor)
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
| |
Approved by: thompsa (mentor)
|
|
|
|
| |
Approved by: thompsa (mentor)
|
|
|
|
|
|
|
|
| |
- 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)
|
|
|
|
|
|
| |
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
| |
|
| |
|
|
|
|
|
|
|
| |
to return the actual number of busses and devices.
Reported by: Mike Tancsa
Submitted by: Hans Petter Selaksy
|
|
|
|
|
| |
Reported by: Xiaofan Chen
Submitted by: Hans Petter Selasky
|
|
|
|
|
|
|
| |
is expected after this commit.
Tested by: make buildworld
Reviewed by: hps (patch without .h changes)
|
|
|
|
| |
Reviewed by: hps@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
Submitted by: Hans Petter Selasky
|
|
|
|
| |
Submitted by: Hans Petter Selasky
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
found instead of the last device in its search list.
Reviewed by: thompsa
MFC after: 5 days
|
|
|
|
|
|
|
|
|
| |
- 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 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
|
|
|
|
| |
Submitted by: HPS
|
|
|
|
|
|
|
|
|
| |
- Significantly improve libusb10 support.
- Many minor issues fixed.
- P4 ID: 166189, 165853, 165991, 166052, 166069
Submitted by: hps
Approved by: re
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
| |
- 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)
|
|
|
|
| |
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
claim and release interface support from libusb v2.0, because it is not useful.
Submitted by: Hans Petter Selasky
|
|
|
|
| |
Submitted by: Hans Petter Selasky
|
| |
|
|
|
|
| |
Submitted by: Hans Petter Selasky
|