summaryrefslogtreecommitdiff
path: root/devel/libusb/patches
AgeCommit message (Collapse)AuthorFilesLines
2002-11-18The USB API found in FreeBSD originated in NetBSD. Correct theschmonz1-0/+13
publicity statement in the configure script.
2002-08-25Merge changes in packages from the buildlink2 branch that havejlam1-1/+1
buildlink2.mk files back into the main trunk.
2002-08-19Update to 0.1.6a. There is no documentation included on the changes, but amycroft2-114/+5
cursory inspection suggests that they are mostly build related, and some minor bug fixes to the platform-dependent code.
2002-03-03Patch to build it on -current systems after the renaming in usb.h.veego1-21/+98
Use the same logic as in usbutil.
2002-03-03Patch from sourceforge (revision 1.12 of bsd.c):veego1-0/+32
Patch from seagull at aracnet.com: Some time ago, I identified a problem with libusb under FreeBSD. The issue is that the current implementation of bsd.c assumes that a particular endpoint is unidirectional. If you write, for example, to endpoint 2, you can't later on read from that same endpoint and visa-versa. Although USB pipes are unidrectional, they can be "stacked" on the same endpoint. Endpoint 2, for example, has two pipes: 0x02 and 0x82, with the high bit representing the transfer direction of the pipe. Since the BSD USB stack does not let you open two descriptors for the same endpoint, and it does not let you close and reopen an endpoint in the middle of a "session", I had originally proposed that the endpoint always be opened O_RDWR so that bidirectional communication would be supported. However, it was later pointed out that a device which really did only have a unidrectional pipe on an endpoint would fail on ENXIO if you tried to open it O_RDWR, so I went back to the drawing board and came up with a patch for bsd.c which should solve the issue for both cases. What it does is first attempt to open the endpoint O_RDWR. If that fails on ENXIO, then it attempts to open the pipe in the direction appropriate for the operation that you were committing.
2002-01-03Updated to 0.1.4. List of changes is unknown (ChangeLog was not updated).martti2-83/+0
2001-06-15patch from Havard Eidnes: correct handling of "mode" argument todrochner1-5/+10
ensure_ep_open()
2001-03-28one more control endpoint hackdrochner1-3/+21
2001-03-28user level USB access library, used by Linux apps mostlydrochner3-0/+71