| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
number. No functional change.
ok miod@
|
| |
|
|
| |
leftover from the "usb event" stuff removal. Diff from Tobias Ulmer.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
interfaces as being claimed in the usbd_device's copy of the interface
descriptors
* allow ugen(4) to be attached if there are unused interfaces in a
configuration that has had drivers attached
* make ugen(4) aware that it may be sharing a device with (an)other
driver(s), and if so:
* do not let ugen(4) change the configuration
* do not let ugen(4) access the already claimed interfaces
discussed with deraadt and miod
|
| |
|
|
|
|
| |
* add functions to increment and decrement the reference count, and a
function to wait until the reference count is zero
ok martynas@
|
| |
|
|
|
|
|
|
|
| |
* add usbd_deactivate(), which should be use to set the dying flag in
struct usbd_device
* add usbd_is_dying(), which can be used to check if either the device
or the associated bus dying flag has been set
* use usbd_is_dying() to check if the deivce or bus is dying before
issuing transfers or requests
|
| |
|
|
|
|
|
|
|
| |
is dying, instead of setting a flag in struct usb_softc. as
usbd_device_handle has a pointer to the usbd_bus it's attached to,
usb devices, and functions they run or functions run on their behalf,
can now easily check if their bus is dying. use this to stop
usbd_do_request* from running and the usb task thread from adding
new tasks when a device's bus is dying.
|
| |
|
|
|
|
|
| |
USB bus, make usb_explore() a usb_task. reduces races during normal
USB device detach, since now usb_tasks and detach happen in the same
process.
ok yuo@, matthew@ helped with the task thread loop
|
| |
|
|
|
|
|
|
| |
of the last element. Bad technique. Use a pointer to the array. The
author (or later people) will often not pay attention to the consequences
of structure padding & alignment issues when they add new fields to the
base structure, and there will be fireworks.
tested by jasper, too
|
| |
|
|
| |
ok jsing@, miod@
|
| |
|
|
|
|
|
| |
which is exactly what it was trying to do.
Tested on all *hci controllers with a bunch of usb devices by at least ckuethe@
and I.
|
| |
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
|
| |
(which was used to define USB_USE_SOFTINTR).
No binary changes.
ok dlg, mk.
|
| |
|
|
|
|
| |
No binary change.
ok dlg.
|
| |
|
|
|
|
| |
No binary change.
ok ray.
|
| |
|
|
|
|
| |
No binary change.
ok mk.
|
| |
|
|
|
|
|
|
| |
were used as a layer of confusion^Wabstraction around the timeout(9) API.
No binary change.
ok jsg.
|
| |
|
|
|
|
| |
Tested by thib and myself.
ok mbalmer jsg
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
is closed and then reopened. This may be necessary now that
we no longer clear endpoint stalls every time a pipe is opened.
Previously we could assume an initial toggle value of zero because
a clear-stall operation resets the device's toggle state.
Derived from work in FreeBSD.
This is most likely to affect devices like printers, which open
pipes for short periods of time and close them again.
ok dlg@
|
| |
|
|
|
|
|
| |
Supports bulk, control and interrupt pipes, letting USB1 keyboards and most
network interfaces work when connected to a USB2 hub.
ok dlg@
|
| | |
|
| | |
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
| |
This includes numerous fixes and paves the way for usb 2.0 support.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
kue(4) Ethernet devices.
|
| |
|
|
|
|
| |
driver. I would appreciate it if someone with the hardware looked into it.
I also have to take a closer look at changes to the USB Ethernet drivers,
as well as import some drivers we are missing (uftdi, if_upl, yap, etc.)
|
| |
|
|
| |
umass.c and ukbd.c as the diffs are a bit hairier.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
form of a diff to augustss@netbsd.org so that future syncs will be very easy.
This commit also adds support for ADMtek AN986 "Pegasus" based USB Ethernet,
CATC USB-EL1210A based USB Ethernet, and USB Printers (all untested).
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
struct device->bdevice.
|
| |
|
|
|
|
|
| |
Make sure not to call tsleep() from suspend/resume routine.
Move more of the transfer completion processing to HC independent code.
Fix some problems with transfer abort & timeout.
Merge the soft_{td,qh} with the real {td,qh}. This saves time and space.
|
| | |
|
| |
|