History log of /freebsd-current/lib/libusb/libusb20_ugen20.c
Revision Date Author Comments
# 2a63c3be 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix


# 8010f4ad 17-Dec-2021 Brooks Davis <brooks@FreeBSD.org>

libusb: remove use of COMPAT_32BIT

This codepath used uint64_t's in place of pointers in structs and
arrays to allow 32-bit code to use 64-bit version of ioctls. Now
that we support 32-bit compat natively this is no longer needed.

Reviewed by: hselasky, jrtc27 (prior version)


# 34b0ca24 27-Dec-2019 Hans Petter Selasky <hselasky@FreeBSD.org>

Implement new libusb v2.0 API function, libusb20_dev_get_stats().

This function is useful when debugging USB device issues.

MFC after: 1 week
Sponsored by: Mellanox Technologies


# fd2ef04f 23-Mar-2018 Hans Petter Selasky <hselasky@FreeBSD.org>

Allow the libusb20_dev_get_port_path() function to be called when the
USB device is closed. This fixes a compatibility issue with upstream
libusb.

Found by: romain@
MFC after: 1 week


# 5e53a4f9 25-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

lib: further adoption of SPDX licensing ID tags.

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.


# 0b9cf972 22-Oct-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix libusb20_dev_get_desc(3) to use the "vendor product" order, not
"product vendor". This is consistent with how it's generally done.
The ordering is visible eg in usbconfig(8) output.

Note to self: MFC this to 9 and 8.

Reviewed by: hselasky@
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D8258


# 5122043e 04-Sep-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

Correct two comments.


# 99cd1f32 14-Jul-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

Add some missing definitions to build a working FreeBSD's libusb under Linux.


# c77a24c2 03-May-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

Add new USB API to get the port path of a USB device.

MFC after: 2 weeks
Requested by: emaste @


# 66194130 12-Mar-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

- 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.


# aafcb732 13-Feb-2013 Hans Petter Selasky <hselasky@FreeBSD.org>

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


# 07b6ce3b 13-Aug-2012 Hans Petter Selasky <hselasky@FreeBSD.org>

Add support for streams to LibUSB v2.0.

MFC after: 2 weeks


# d81535d1 20-Apr-2012 Hans Petter Selasky <hselasky@FreeBSD.org>

Fix some compile warnings.

MFC after: 1 week


# 2485d8a7 24-Jun-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

- Add two new API's to libusb20 which can be used to retrive information
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


# 1c497368 28-Feb-2011 Hans Petter Selasky <hselasky@FreeBSD.org>

- Add support for software pre-scaling of ISOCHRONOUS transfers.

MFC after: 14 days
Approved by: thompsa (mentor)


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 51fd3d75 14-Oct-2010 Hans Petter Selasky <hselasky@FreeBSD.org>

- Add support for LibUSB in 32-bit compatibility mode.

Approved by: thompsa (mentor)


# 6836afc4 06-Apr-2010 Andrew Thompson <thompsa@FreeBSD.org>

MFC r203147

Add a function to check if the usb devices is still connected.

Submitted by: Hans Petter Selasky


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# f3cba95c 13-Feb-2010 Wojciech A. Koszek <wkoszek@FreeBSD.org>

Resort includes to match style(9) a bit more. No functional change
is expected after this commit.

Tested by: make buildworld
Reviewed by: hps (patch without .h changes)


# d426c025 11-Feb-2010 Wojciech A. Koszek <wkoszek@FreeBSD.org>

Remove redundand headers and use more standard ones where necessary.

Reviewed by: hps@


# e50ac68b 28-Jan-2010 Andrew Thompson <thompsa@FreeBSD.org>

Add a function to check if the usb devices is still connected.

Submitted by: Hans Petter Selasky


# 1110a460 10-Nov-2009 Andrew Thompson <thompsa@FreeBSD.org>

MFC r199055

- fix refcounting error during data transfer
- 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


# ccef4ddf 08-Nov-2009 Andrew Thompson <thompsa@FreeBSD.org>

- fix refcounting error during data transfer
- 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


# de411f4c 22-Oct-2009 Andrew Thompson <thompsa@FreeBSD.org>

MFC r198376

Prevent wraparound of the timeout variable.

Submitted by: HPS
Approved by: re (kib)


# 0c35eaad 22-Oct-2009 Andrew Thompson <thompsa@FreeBSD.org>

Prevent wraparound of the timeout variable.

Submitted by: HPS


# ed6d949a 22-Jun-2009 Andrew Thompson <thompsa@FreeBSD.org>

- Make struct usb_xfer opaque so that drivers can not access the internals
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h


# 4315b3c9 12-Jun-2009 Andrew Thompson <thompsa@FreeBSD.org>

Cleanup claim/release interface code, which is specific to libusb v0.1. Remove
claim and release interface support from libusb v2.0, because it is not useful.

Submitted by: Hans Petter Selasky


# 760bc48e 28-May-2009 Andrew Thompson <thompsa@FreeBSD.org>

s/usb2_/usb_/ on all C structs for the USB stack.


# df4b8c2a 09-Mar-2009 Andrew Thompson <thompsa@FreeBSD.org>

libusb20 is now installed as libusb, remove the version number from the
directory name.