Commit Graph

22 Commits

Author SHA1 Message Date
mpi
7e22724d8f Instead of generating I/O to get the active configuration number, just read
it from the cached descriptor.
2013-04-22 08:37:20 +00:00
mpi
c53d93b033 Make use of the new usb(4) ioctl to retrieve the device descriptor from
memory instead of generating I/O as adertised by the libusb API.

ok mglocker@
2013-04-17 14:28:17 +00:00
mpi
549396691b Make use of the new usb(4) ioctls to retrieve the config descriptor from
memory instead of generating I/O as adertised by the libusb API.

ok mglocker@
2013-04-12 08:22:10 +00:00
ajacoutot
58f1a6f9f6 USE_LIBTOOL=Yes is the default now. 2013-03-21 08:45:11 +00:00
espie
bcf3856632 PERMIT_* / REGRESS->TEST sweep 2013-03-11 10:50:00 +00:00
jasper
989289a59f remove empty files 2012-11-13 10:42:27 +00:00
mpi
00095af6da Remove -pthread patch, from Brad
ok ajacoutot@
2012-08-25 15:25:51 +00:00
mpi
df86aa6dd4 Associate an ugen node to an USB device even if it is not attached as
first device and don't use the new bConfigurationValue for the index
when caching the config descriptor.

Fix scanning problems reported and tested by ajacoutot@
2012-08-05 10:55:24 +00:00
sthen
e8efbdf060 revert -pthread in cflags, after a bit of discussion with aja and guenther
and looking at the port which wanted -pthread in cflags, I came to the
conclusion that the other port was wrong, so it's right to zap this again.
ok mpi ajacoutot
2012-07-08 22:21:32 +00:00
sthen
905b965e39 add -pthread to cflags as well as libs in the pc file. ok jasper@ mpi@ 2012-07-08 17:41:14 +00:00
kili
ebf7813e4d Add missing patch. 2012-06-19 21:10:59 +00:00
mpi
592ef45d74 Rework the OpenBSD backend to add *basic support* for non ugen(4) devices.
It is now possible to have a read access and submit control transfers to
all USB devices using libusb, please note that controllers and hubs also
appear as devices.

Requested by many, tested by and ok ajacoutot@, jasper@, henning@, shten@
2012-06-19 20:45:00 +00:00
mpi
381c9bac1e Remove now unused BUILD_DEPENDS.
spotted by Brad
2012-04-23 08:48:08 +00:00
mpi
a9524fd4e8 Re-adds `-pthread' to the .pc file, this unbreaks application depending
on libusb1, I wrongly removed this patch during the last commit.

spotted by nigel@
2012-04-22 19:52:05 +00:00
mpi
8873cee4c9 Update libusb1 to 1.0.9
All OpenBSD specific code has been committed upstream.

ok sthen@, ajacoutot@, jasper@
2012-04-22 09:06:37 +00:00
mpi
7790e61292 Correctly catch attempts to do isochronous OUT transfers and fix a warning
from upstream.
2012-04-08 13:14:54 +00:00
mpi
0dd16b57f8 Fix a memleak reported by upstream.
ok ajacoutot@
2012-02-01 13:26:20 +00:00
mpi
82918e4d22 Always try to open a node in rw mode if possible, the same endpoint may
be used for reading and writting and don't close it if a timeout occured

Fix a regression reported by mpf@, ok ajacoutot@
2012-01-18 14:09:52 +00:00
mpi
94e772dbcc Various changes for OpenBSD's backend with inputs from upstream.
Transfer completion notifications are now send asynchronously this should
prevent potential lock of applications using a different thread for polling
events.

Fix interrupt tranfers, reported by and helped to debug, sebastia@

Other minor improvements and style fixes.

Tested by sebastia@ and ajacoutot@

ok ajacoutot@
2011-11-18 15:18:50 +00:00
jasper
d165273a78 unbreak 2011-11-04 12:17:50 +00:00
mpi
9649dd70c6 Add missing build depend spotted by nigel@ and fix two minor issues in the
backend.

Tested and ok ajacoutot@
2011-11-04 09:18:11 +00:00
mpi
ca07d5e3c4 Import libusb1 1.0.8
libusb is a library for USB device access from userland.

Note that the OpenBSD backend based on ugen(4) does not provide 
asynchronous I/O.

with tests, tweaks and ok ajacoutot@
2011-11-02 14:31:56 +00:00