| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
conflict where machines with two controllers with the same unit
number (i.e. ehci0 and uhci0) would have reported to buses 0.
ok miod@
|
| |
|
|
| |
leftover from the "usb event" stuff removal. Diff from Tobias Ulmer.
|
| |
|
|
|
|
| |
them from userland, and nothing in the kernel uses them.
ok krw@, miod@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
* fill 'udi_serial' with the serial number in usbd_fill_deviceinfo().
* add compatability ioctl/struct so old binaries continue to work.
discussed with deraadt and miod
|
| |
|
|
| |
ok jakemsr@
|
| |
|
|
| |
ok krw@
|
| | |
|
| |
|
|
|
|
|
| |
woken up by a wakeup, but only by the actual timeout expiry. On
architectures which share a kva upage area between processes, we would
not want an accidental wakeup (too short).
discussed with various
|
| |
|
|
| |
krw@ miod@ ok.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Some device could not handle the device descriptor request
with short bLength (less than the device descriptor size(18 byte)).
To handle such kind of devices, add complemental request loop to
current logic.
(memo: and I also found a device which can not response to any device
descriptor request. It always returns only 8 byte-length head of the
descriptor for 1st query. This is the reason why the device descriptor
loop of this usb subsystem start with 8-byte length query.)
|
| |
|
|
| |
to cause issues as per netbsd pr/39023. deraadt@ yuo@ ok.
|
| |
|
|
|
|
|
|
| |
and then the whole string based on the returned size, not just one byte.
The Lexar card reader kindly loaned by
Denis Doroshenko (denis dot doroshenko at gmail.com) it's happy now, and
after further inspection it's what other OSs do.
Discussed with yuo@. krw@ yuo@ ok.
|
| |
|
|
|
|
|
|
|
|
|
| |
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@
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
it fails, reset the port and try again. this seems to fix some devices that
would punt with "device problem, disabling port" otherwise.
from augustss@netbsd with some change as per discussion with theo.
set the address before getting the descriptor. from peterbu at bemac dot com
via netbsd kern/24716.
tested by many.
|
| | |
|
| |
|
|
|
|
| |
so that it shows up before the :. as a result, all the usb devices do not
need to have name printing code anymore. all this now works and prints
nicely because usbd_probe_and_attach() is serialized. ok kettenis
|
| |
|
|
| |
attached at a time; ok kettenis
|
| |
|
|
|
| |
otherwise just adding M_ZERO to malloc() and removing the immediately
adjacent memset(,0,).
|
| |
|
|
| |
prompted and "much better" by marco@, ok pyr@
|
| |
|
|
| |
buffer to itself; checked by jsg and kettenis and others
|
| | |
|
| | |
|
| |
|
|
|
|
| |
No binary change.
ok mk.
|
| |
|
|
|
|
| |
around a single function only and it did not even use all of it's arguments.
ok jsg.
|
| |
|
|
|
|
| |
No binary change.
ok jsg.
|
| |
|
|
| |
ok jsg.
|
| |
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
| |
actually work, surprise surprise; ok claudio cnst
|
| | |
|
| |
|
|
| |
is consumable by anyone who includes it (matches idea in pcidevs)
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
ok pascoe@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
| |
ddb>. Discovered by trying 'usbdevs -v' while a broken card reader was
trying to attach. Broken device provided by Manuel Pata.
ok pedro@ deraadt@
|
| |
|
|
|
| |
userland-visible sys/select.h. Consistent with what Net and Free do.
OK deraadt@, tested with full ports build by naddy@.
|
| |
|
|
|
| |
Originally committed in 2001, backed out in a sync, now back in.
saves close to 12k of kernel size. commit deraadt@
|
| |
|
|
|
|
|
|
| |
pipe. Some devices such as some iPods react badly. Normal devices
don't need it. From nathanw via NetBSD. Fixes the 2nd generation iPod
mini donated by Ed Wandasiewicz.
ok pascoe@
|
| |
|
|
|
|
|
|
| |
This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
snprintf() style semantics [which people fail to grok]; ok otto
|
| |
|
|
|
|
|
| |
Supports bulk, control and interrupt pipes, letting USB1 keyboards and most
network interfaces work when connected to a USB2 hub.
ok dlg@
|