| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
any transfer when autoconf(9) asks for it.
This brings uhci(4) in sync with ohci(4) and ehci(4).
ok pirofti@
|
|
|
|
|
|
|
| |
first step to merge the code of our controllers that deal with usbd
transfers.
Tested with miod@
|
|
|
|
| |
of defining it in every controller specific structure.
|
|
|
|
|
|
|
|
|
|
| |
transfer is submitted when a zero-length bulk or interrupt transfer
is requested.
This is the missing part of FreeBSD's svn r159024 that should have
been committed with ehci's r1.57.
ok uebayasi@
|
|
|
|
|
|
| |
cleaning up some shutdown-hook related code on the way.
(A few drivers related to sparc are still skipped at kettenis' request)
ok kettenis mlarkin, tested by many others too
|
|
|
|
|
|
|
|
|
| |
usbd_xfer object' which includes the `abort_task'. Otherwise
usb_abort_task_thread() may try to dequeue the recycled task then it
causes panic with page fault.
reported by Edd Barrett and Wade, Daniel.
ok mpi
|
|
|
|
|
|
| |
are only used as wrappers around usb_{alloc,free}mem().
ok deraadt@, mglocker@
|
|
|
|
|
|
| |
pre-allocate TDs to put them in the free list.
ok deraadt@, mglocker@
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
Spotted by Artturi Alm. Thanks!
|
|
|
|
|
|
|
|
|
|
| |
wait for an interrupt when the bus is in polling mode. Otherwise
some devices like my YE-Data USB Floppy take a short sharp trip to
ddb> at 'halt -p'.
Most of the functions were already doing the wait.
ok miod@. With modification that printf's become DPRINTF's.
|
|
|
|
|
|
|
|
| |
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.
ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago
|
|
|
|
|
|
| |
in *hci_softc
ok miod@, krw@
|
|
|
|
|
|
| |
* check the dying flag in timeout and interrupt handlers
fixes crash when disconnecting cardbus usb adapters
|
|
|
|
| |
routine
|
|
|
|
|
|
| |
uhci_device_setintr().
ok jakemsr@
|
|
|
|
|
| |
failure and return USBD_NOMEM, callers will do TRT.
ok jakemser@ deraadt@ kettenis@ tedu@
|
|
|
|
|
|
|
|
|
|
|
| |
be run from the generic task kthread, because xfers that need to be
aborted block newly queued tasks from running (i.e. the xfer to be aborted
blocks the abort of that task). as there are now three types of usb
tasks, add an argument to usb_init_task() and another member to struct
usb_task to specify the task type.
fixes boot hangs that are showing up because we now use usb tasks to
attach/detach usb devices.
|
|
|
|
|
|
| |
for now. But since it is not being handled, do not ack it on the
chip.
Discussed with kettenis a while back
|
|
|
|
|
|
| |
that crept in with rev 1.77, spotted by the clang static analyser.
ok deraadt@
|
|
|
|
|
| |
traversal code to suspend/resume
ok oga kettenis blambert
|
| |
|
| |
|
|
|
|
|
| |
It is OK to return 0 in that case, but it is not OK to print a
diagnostic.
|
|
|
|
|
| |
functions
ok kettenis
|
|
|
|
|
|
|
| |
PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME}
so that we can eventually (many more steps...) kill the powerhook garbage
and use the activate mechanism.
no objections
|
|
|
|
| |
ok marco@ oga@ miod@
|
|
|
|
|
| |
the suspend and resume operations
ok kettenis
|
|
|
|
| |
ok jsing@, miod@
|
|
|
|
|
|
| |
This is needed for the addition of further suspend/resume actions.
Okay deraadt@, marco@.
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
|
|
| |
curlen -= curlen % mps;
can for very large transfers result in an intermediate variable growing
larger than it should. Probably can't really happen in the real world.
Do the same u_int repairs to the other matching drivers
ok blambert kjell miod kettenis
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
add new quirk entry for uvideo which is required isoc transfer.
Some usb2.0 devices use isochronous transfer but current usb
subsystem does not support isoc transfer in ehci(usb2.0) bus.
This patch introduce new psuedo usb hub request UHF_PORT_DISOWN_TO_1_1
to handover the device to ehci to usb1.1 bus(ohci or uhci).
ok mglocker@ deraadt@ fgsch@
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
from netbsd via dragonfly. pointed by theo. ok by many.
|
| |
|
|
|
|
| |
prompted and "much better" by marco@, ok pyr@
|
| |
|
|
|
|
|
|
| |
From Marc Winiger <mw@msys.ch>
ok dlg, claudio.
|
|
|
|
|
|
|
|
| |
(which was used to define USB_USE_SOFTINTR).
No binary changes.
ok dlg, mk.
|
|
|
|
|
|
| |
used.
ok jsg.
|
|
|
|
|
|
| |
No binary change.
ok mk.
|
|
|
|
|
|
|
| |
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg
for looking over it; we found at least four mistakes in the initial diff.)
ok jsg.
|
|
|
|
|
|
|
|
| |
were used as a layer of confusion^Wabstraction around the timeout(9) API.
No binary change.
ok jsg.
|
|
|
|
|
|
|
| |
and it was not consistently used. It was confusing as it suggested these
functions were static, which they were not.
discussed with dlg and jsg, ok jsg.
|
| |
|
| |
|