Glen Barber
876d357fa7
MFH
...
Sponsored by: The FreeBSD Foundation
2016-04-11 15:24:59 +00:00
Pedro F. Giffuni
2bf493863f
USB: replace 0 with NULL for pointers.
...
Found with devel/coccinelle.
Reviewed by: hselasky
2016-04-09 20:36:07 +00:00
Glen Barber
a70cba9582
First pass through library packaging.
...
Sponsored by: The FreeBSD Foundation
2016-02-04 21:16:35 +00:00
Bryan Drewery
7b3ea376a2
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.
...
This both avoids some dependencies on xinstall.host and allows
bootstrapping on older releases to work due to lack of at least 'install -l'
support.
Sponsored by: EMC / Isilon Storage Division
2015-11-25 19:10:28 +00:00
Bryan Drewery
43fa36d52c
Remove redundant COMPAT_32BIT guard on pkgconfig files. This is already handled
...
by the LIBRARIES_ONLY mechanism protecting FILES.
Sponsored by: EMC / Isilon Storage Division
2015-10-03 16:34:21 +00:00
Bryan Drewery
de0e3997d9
Replace beforeinstall: handling with FILES.
...
This actually fixes some cases to respect LIBRARIES_ONLY.
Sponsored by: EMC / Isilon Storage Division
2015-09-18 23:49:32 +00:00
Antoine Brodin
84d5c498b5
bsd.lib.mk has to be included after MLINKS assignment
2015-08-15 19:00:38 +00:00
Pedro F. Giffuni
5a5c6e994c
libusb: Fix minor cast-qual warning.
...
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
2015-07-20 16:15:56 +00:00
Marcelo Araujo
721d6da7ef
Remove unused variables to silence CLANG warnings.
...
Remove some BLANK lines and unnecessary TABS.
Differential Revision: D2687
Reviewed by: rodrigc, hselasky
2015-06-24 01:34:35 +00:00
Simon J. Gerraty
ccfb965433
Add META_MODE support.
...
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
44d314f704
dirdeps.mk now sets DEP_RELDIR
2015-06-08 23:35:17 +00:00
Simon J. Gerraty
98e0ffaefb
Merge sync of head
2015-05-27 01:19:58 +00:00
Hans Petter Selasky
8778569724
Add more USB request definitions. The values are described in section
...
9.4.11 and 9.4.12 of the "Universal Serial Bus 3.0 Specification"
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week
2015-01-16 12:11:01 +00:00
Hans Petter Selasky
930a420683
Fix spelling.
2015-01-14 06:46:25 +00:00
Joel Dahl
4990a1c050
mdoc: improvements to SEE ALSO.
2014-12-27 08:31:52 +00:00
Baptiste Daroussin
6b129086dc
Convert libraries to use LIBADD
...
While here reduce a bit overlinking
2014-11-25 11:07:26 +00:00
Simon J. Gerraty
9268022b74
Merge from head@274682
2014-11-19 01:07:58 +00:00
John-Mark Gurney
89ca4e2de0
only install .pc files when we are not installing 32bit compat libs...
...
This fixes the problem of installing the .pc files multiple times...
2014-10-27 23:43:25 +00:00
Simon J. Gerraty
ee7b0571c2
Merge head from 7/28
2014-08-19 06:50:54 +00:00
Hans Petter Selasky
1dfd04f70c
Add more USB class codes.
...
Obtained from: libusb project at SourceForge
MFC after: 1 week
2014-08-18 14:23:07 +00:00
Ed Maste
76e994f506
Update reported libusb version to 1.0.13
...
QEMU libusb host support needs at least libusbx-1.0.13, and our in-tree
libusb supports the required functionality. Exp-run in PR.
PR: 181035
2014-06-05 14:19:32 +00:00
Hans Petter Selasky
6736336e88
Add empty LIBUSB_CALL macro, to be compatible to the libusb 1.0-API
...
from sourceforge.
PR: usb/190204
MFC after: 1 week
2014-05-25 18:06:32 +00:00
Simon J. Gerraty
fae50821ae
Updated dependencies
2014-05-16 14:09:51 +00:00
Simon J. Gerraty
76b28ad6ab
Updated dependencies
2014-05-10 05:16:28 +00:00
Simon J. Gerraty
9d2ab4a62d
Merge head
2014-04-27 08:13:43 +00:00
Hans Petter Selasky
f355a4ddf7
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0
...
APIs to increase the maximum bandwidth limit.
MFC after: 1 week
2014-04-11 14:11:55 +00:00
Eitan Adler
cb0187afbb
libusb: add libusb_log_level enum
...
This is documented on http://libusb.sourceforge.net/api-1.0/group__lib.html
2014-03-14 20:54:15 +00:00
Hans Petter Selasky
7766d56803
Comply to the official LibUSB v1.0 API:
...
"It is legal to attempt to claim an already-claimed interface."
MFC after: 1 week
2014-01-28 07:21:46 +00:00
Hans Petter Selasky
03205428b8
Implement two new libusb API functions.
...
PR: usb/185454
MFC after: 2 weeks
2014-01-05 10:41:43 +00:00
Simon J. Gerraty
d1d0158641
Merge from head
2013-09-05 20:18:59 +00:00
Hans Petter Selasky
5122043efe
Correct two comments.
2013-09-05 12:21:11 +00:00
Rui Paulo
041d3f3f09
Add pkgconf files for libusb.
...
Reviewed by: hselasky
2013-07-25 03:54:08 +00:00
Hans Petter Selasky
99cd1f32af
Add some missing definitions to build a working FreeBSD's libusb under Linux.
2013-07-14 10:22:00 +00:00
Ed Maste
a9205626a7
Add libusb_get_port_numbers
...
libusbx deprecated libusb_get_port_path and replaced it with
libusb_get_port_numbers. The latter omits an extra parameter which was
unused in the FreeBSD implementation anyway.
2013-06-07 13:45:58 +00:00
Joel Dahl
2710751bc3
mdoc sweep.
2013-05-12 22:22:12 +00:00
Ed Maste
5906bf4984
Add libusb_get_port_path wrapper
...
This follows the libusbx API reference at
http://libusbx.sourceforge.net/api-1.0/group__dev.html
Reviewed by: hselasky@
2013-05-08 00:55:29 +00:00
Ed Maste
22a962c9fe
Constify libusb_get_pollfds return
...
The correct return type, per our libusb(3) man page and the libusb.org
and libusbx projects (whose interface we intend to follow for our libusb),
is const struct libusb_pollfd **.
Unfortunately the doxygen-generated libusbx API documentation[1] omits[2]
the const for some reason.
[1] http://libusbx.sourceforge.net/api-1.0/group__poll.html#gab1a72869a926552b27a6c667695df3a2
[2] http://sourceforge.net/mailarchive/forum.php?thread_name=497D10BE.8090007%40n-dimensional.de&forum_name=libusb-devel
Reviewed by: hselasky@
2013-05-07 20:35:47 +00:00
Hans Petter Selasky
c77a24c24a
Add new USB API to get the port path of a USB device.
...
MFC after: 2 weeks
Requested by: emaste @
2013-05-03 07:44:58 +00:00
Simon J. Gerraty
69e6d7b75e
sync from head
2013-04-12 20:48:55 +00:00
Hans Petter Selasky
6619413096
- Make the FreeBSD's USB library compile under Linux.
...
- 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.
2013-03-13 12:23:14 +00:00
Simon J. Gerraty
7cf3a1c6b2
Updated dependencies
2013-03-11 17:21:52 +00:00
Simon J. Gerraty
f5f7c05209
Updated dependencies
2013-02-16 01:23:54 +00:00
Hans Petter Selasky
aafcb73207
Add USB API to read power draw on USB devices.
...
Update usbconfig to print power draw on USB devices.
MFC after: 2 weeks
Submitted by: Matt Burke @ icritical.com
2013-02-14 12:22:40 +00:00
Simon J. Gerraty
7cd2dcf076
Updated/new Makefile.depend
2012-11-08 21:24:17 +00:00
Simon J. Gerraty
23090366f7
Sync from head
2012-11-04 02:52:03 +00:00
Marcel Moolenaar
7750ad47a9
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
...
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
Hans Petter Selasky
07b6ce3ba9
Add support for streams to LibUSB v2.0.
...
MFC after: 2 weeks
2012-08-13 18:10:52 +00:00
Hans Petter Selasky
f7287225df
LibUSB v1.0 API compiliance and bugfixes.
...
- Use CLOCK_MONOTONIC instead of CLOCK_REALTIME, because CLOCK_MONOTONIC
does not wrap into negative in near future. This fixes any potential
problems using "pthread_cond_timedwait()".
- Fix a bug where the "libusb_wait_for_event()" function computes an
absolute timeout instead of a relative timeout. USB transfers do
not depend on this timeout value.
- Add dependency towards LibPthread to Makefile, because LibUSB v1.0
needs this library to function correctly.
MFC after: 1 week
2012-06-12 07:28:25 +00:00
Joel Dahl
9ee2158b55
mdoc: minor Bl improvements.
2012-06-02 08:47:26 +00:00
Glen Barber
a3fb6da9ba
General mdoc(7) and typo fixes.
...
PR: 167734
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days
2012-05-11 20:06:46 +00:00