History log of /openbsd/sys/dev/usb/usbdi_util.c (Results 1 – 25 of 47)
Revision Date Author Comments
# 81508fe3 23-May-2024 jsg <jsg@openbsd.org>

remove unneeded includes; ok mpi@


# b86efbae 24-Feb-2021 jsg <jsg@openbsd.org>

remove unused usbdi functions

ok mpi@


# d6d3599d 25-Jan-2021 mglocker <mglocker@openbsd.org>

Add the new function usbd_clear_endpoint_feature() which allows to issue
an UR_CLEAR_FEATURE request on a specific endpoint address without the
need to have a pipe open to that endpoint.

From NetBSD

Add the new function usbd_clear_endpoint_feature() which allows to issue
an UR_CLEAR_FEATURE request on a specific endpoint address without the
need to have a pipe open to that endpoint.

From NetBSD, ok mpi@

show more ...


# 4f96862e 06-Oct-2019 mpi <mpi@openbsd.org>

tsleep(9) to tsleep_nsec(9) conversions.

ok visa@, kn@, cheloha@


# 3f45959c 18-Nov-2018 mpi <mpi@openbsd.org>

Use "%s", __func__ in DPRINTF() to reduce grep noise.


# 547f17d1 09-Jan-2017 mpi <mpi@openbsd.org>

Remove unneeded <sys/malloc.h> from Michael W. Bombardieri.


# 21dab745 14-Mar-2015 jsg <jsg@openbsd.org>

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


# f4020085 08-Dec-2014 mpi <mpi@openbsd.org>

Deprecate usb_*_report(). USB HID devices are always attached below
an uhidev(4) on OpenBSD and there is not point in rerolling your own
reportID handling. Simply use uhidev_*_report().

This is a

Deprecate usb_*_report(). USB HID devices are always attached below
an uhidev(4) on OpenBSD and there is not point in rerolling your own
reportID handling. Simply use uhidev_*_report().

This is a first step towards better error handling required to deal
with broken upd(4) firmwares.

Tested by David Higgs.

show more ...


# 7af21e63 07-Nov-2014 mpi <mpi@openbsd.org>

Give Super-Speed hubs a chance to route USB 3.0 transfers.

Without knowing their depth, hubs couldn't find the bits correspdonding
to their downstream port in the route-string. Now USB 3.0 devices

Give Super-Speed hubs a chance to route USB 3.0 transfers.

Without knowing their depth, hubs couldn't find the bits correspdonding
to their downstream port in the route-string. Now USB 3.0 devices just
work(tm) anywhere in your hub chain.

This commit would not have been possible without the cheese provided by
miod@ at #HAMoween.

show more ...


# 02819723 08-Aug-2014 mpi <mpi@openbsd.org>

Super Speed hub descriptor definition and routine, required for upcoming
external USB 3.0 hub support.


# 890c91c7 09-Jul-2014 mpi <mpi@openbsd.org>

Adds an optional bus function to set the address of a new device and
explicitly set it when required.

Right now xhci(4) does not need such function because it assigns
addresses when the first pipe o

Adds an optional bus function to set the address of a new device and
explicitly set it when required.

Right now xhci(4) does not need such function because it assigns
addresses when the first pipe of a device is opened.

ok yuo@, pirofti@

show more ...


# 1756c2e3 24-Apr-2014 mpi <mpi@openbsd.org>

Change the usbd_*_report() family of functions to take a usbd_device
and a infaceno argument instead of an iface pointer. While here,
remove some unused functions and inlined usbd_read_report_desc s

Change the usbd_*_report() family of functions to take a usbd_device
and a infaceno argument instead of an iface pointer. While here,
remove some unused functions and inlined usbd_read_report_desc since
it is used only once.

This is part of plumbing required to convert the various USB HID devices
to handle multiples report IDs.

ok andre@

show more ...


# 317d87b2 07-Mar-2014 mpi <mpi@openbsd.org>

Indtroduce usbd_get_hub_descriptor() to start cleaning uhub(4)'s mess.
This will help us deal with the different hub device descriptors used
by super speed devices.


# 3a51b6e8 13-Nov-2013 pirofti <pirofti@openbsd.org>

Polling is done per controller not per interface.

The controllers are linked through device->bus so the iface is redundant.

So fixing usbd_dopoll() to take the device as argument and making
usbd_in

Polling is done per controller not per interface.

The controllers are linked through device->bus so the iface is redundant.

So fixing usbd_dopoll() to take the device as argument and making
usbd_interface2device_handle() private (for now) inside usbdi_util.

Tested and okay mpi@

show more ...


# 9d06db31 02-Nov-2013 mpi <mpi@openbsd.org>

Remove a layer of abstraction for fetching a configuration descriptor.


# 65d64288 20-Sep-2013 mpi <mpi@openbsd.org>

Unify and document usbd_transfer(9).

Get rid of the badly named usbd_bulk_transfer() and usbd_intr_transfer()
they were two identical wrappers to submit a synchronous transfer.

Now all synchronous

Unify and document usbd_transfer(9).

Get rid of the badly named usbd_bulk_transfer() and usbd_intr_transfer()
they were two identical wrappers to submit a synchronous transfer.

Now all synchronous transfers are submited using usbd_setup_xfer(9) and
usbd_transfer(9) explicitly using the USBD_CATCH flag when signals must
be checked.

Previous version ok'd by mglocker@, with subtle inputs from miod@

show more ...


# ab0b1be7 15-Apr-2013 mglocker <mglocker@openbsd.org>

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i

Get rid of various 'typedef struct' definitions and use plain structure
definitions instead. We don't change usb.h for now to stay compatible
with userland.

Tested by mpi@ on macppc and myself on i386.

ok mpi@

show more ...


# 6083df3b 10-Apr-2013 mpi <mpi@openbsd.org>

Merge usbd_get_device_desc() into the only function using them.

ok mglocker@


# 4efb2346 10-Apr-2013 mpi <mpi@openbsd.org>

Remove unused function usb_find_desc().


# 8cb63a7a 09-Apr-2013 mpi <mpi@openbsd.org>

There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()
directly this also makes it easier to understand which function actually
generates IO.

ok mglocker@


# b047b92c 28-Mar-2013 tedu <tedu@openbsd.org>

proc.h is way too much header for usb to handle.


# 6187728e 17-Dec-2010 jakemsr <jakemsr@openbsd.org>

don't catch signals in usbd_{bulk,intr}_transfer if a timeout is
set. no other transfer methods catch signals, and it is not possible
to restart these transfers reliably.


# d874cce4 26-Jun-2008 ray <ray@openbsd.org>

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code t

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

show more ...


# 83f40385 18-Jun-2007 mbalmer <mbalmer@openbsd.org>

KNF after macro removals, no binary change.

ok dlg.


# 73030186 12-Jun-2007 mbalmer <mbalmer@openbsd.org>

Remove the definition and use of the device_ptr_t which was a struct device *.

No binary change.

ok mk.


12