christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
augustss
834327c847
Don't keep the devinfo string on the stack, instead use malloc/free.
...
This should cure some rare stack overflows.
2005-05-11 10:02:28 +00:00
augustss
5283bc3d82
Root hubs don't have transaction translators, so don't print anything
...
about them for depth 0. From FreeBSD.
2005-04-30 20:54:13 +00:00
mycroft
2d562a01e2
Copyright maintenance.
2005-03-02 11:37:27 +00:00
perry
f31bd063e9
nuke trailing whitespace
2005-02-27 00:26:58 +00:00
joff
9a12dd0ebe
Implementation requirements of usb_needs_reattach(), from OpenBSD and required
...
for atu(4) to do a USB reconnect after firmware upload.
2005-01-24 01:30:38 +00:00
augustss
4d2499feda
Free memory in the correct order. Pointed out by Jeff Rizzo.
2004-10-26 05:00:59 +00:00
augustss
90d454c7f7
Keep track of what high speed port (if any) a device belongs to so we can
...
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver that
allows control transfers to be translated. Interrupt transfers do not work.
Warn when any low/full speed device is opened.
2004-10-23 16:17:56 +00:00
augustss
4eb781d843
Print information for high speed hubs about the number of TTs.
...
Print a message when low/full speed devices are ignored on high speed hubs.
2004-10-22 12:03:21 +00:00
mycroft
658b1114e7
Ignore a port error that happens to come in at the same time as a connect
...
status change. Some root hubs seem to report both.
2004-06-29 06:30:05 +00:00
petrov
3936b06424
Initialize restartcnt. from FreeBSD.
2004-06-11 17:25:47 +00:00
itojun
300aa0dcd5
use bounded string ops (snprintf, strl*)
2004-04-23 17:25:25 +00:00
toshii
05069ebd4d
Use the correct wValue to get hub desriptors.
...
Also, make wValue checks of root hub codes less strict.
2003-12-29 08:17:10 +00:00
ichiro
6236662a85
change URL pointers of USB[1,2] specification
2003-02-08 03:32:50 +00:00
dsainty
439063014c
Initialise uhubdebug so that it's patchable in a kernel image
2003-01-02 03:20:09 +00:00
thorpej
b75a007d9f
Add trailing ; to CFATTACH_DECL.
2002-10-02 16:51:16 +00:00
thorpej
90c48d2563
Use CFATTACH_DECL().
2002-10-01 01:25:25 +00:00
thorpej
bf97c13c6c
Declare all cfattach structures const.
2002-09-27 20:41:46 +00:00
simonb
4e3613273b
Remove breaks after returns, unreachable returns and returns after
...
returns(!).
2002-09-23 05:51:10 +00:00
augustss
86650920c9
Get rid of trailing white space.
2002-07-11 21:14:24 +00:00
augustss
7679101a11
Add a comment.
2001-11-20 16:08:37 +00:00
augustss
7e4459fe10
Keep track of device speed for USB 2.0.
2001-11-20 13:48:03 +00:00
augustss
3b323cfaae
Better error message.
2001-11-16 02:21:54 +00:00
augustss
3db4a768d4
Handle devices that disappear during reset gracefully.
2001-11-16 01:57:47 +00:00
lukem
667807e40c
add RCSIDs
2001-11-13 06:24:53 +00:00
augustss
dc901ef1f3
Compare pointer with NULL instead of using them as a condition.
2001-10-26 17:53:59 +00:00
augustss
97d4315865
Better debug message.
2001-10-24 15:30:17 +00:00
augustss
c5a4cc1291
Only clear the endpoint on stall (from FreeBSD).
2001-09-28 23:42:16 +00:00
augustss
df20cb2972
Change the operation of the USB event thread. Before it only performed
...
USB device discovery, now it can also perform (short) tasks for device
drivers that need a process context, but don't have one.
This is not pretty, but better than using busy-wait in an interrupt context.
2001-01-21 19:00:06 +00:00
augustss
79f0bd6e1f
Update many URLs.
2000-12-29 01:24:55 +00:00
augustss
d71044b313
Don't give up so easily if the device does not respond properly.
...
Mostly from Nick Hibma (FreeBSD).
2000-09-24 02:08:38 +00:00
augustss
4b45dfbb69
Fix a device diconnect bug found by Christian Groessler <cpg@aladdin.de>.
2000-09-22 02:34:58 +00:00
augustss
ed9486e158
Bring the coding style into the 80s, i.e., get rid of __P and use
...
ANSI prototypes and declarations.
2000-06-01 14:28:57 +00:00
augustss
30c20f930f
Change my email address.
2000-04-27 15:26:44 +00:00
augustss
46fb8de93a
Use a 255 ms interrupt interval even if the descriptor in the hub asks
...
for something else, because the spec says that it should be 255.
2000-04-21 19:51:43 +00:00
augustss
3d9d091685
Change the exact sequence of commands when a hub is attached to follow
...
Windoze more closely. This makes more devices work.
After two years of doing USB work I've finally access to a USB protocol
analyzer. Which means I should be able to mimic what Windoze does in
certain cases instead of just following the specs. Following the specs
is not enough since the devices often don't.
2000-04-21 16:05:50 +00:00
augustss
fc72e72d7d
Change (almost) all static to Static. The symbol `Static' can then be defined
...
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
augustss
7d05674ba7
Distinguish between device and interface classes.
...
(I finally found a document that said that they were different.)
2000-02-29 21:37:00 +00:00
augustss
0b2e81991d
Avoid panic when a non-working hub is detached.
2000-02-12 23:44:16 +00:00
augustss
4b93911b25
Generate usb events on attach and detach.
2000-02-02 13:18:45 +00:00
augustss
481e8339dc
Change the USB event mechanism to include more information about devices
...
and drivers. Partly from FreeBSD.
2000-02-02 07:33:59 +00:00
augustss
c3716a6bb9
Add an argument to usbd_open_pipe_intr() to specify the polling interval
...
for an interrupt pipe in case we don't what what the descriptor suggests.
2000-01-19 00:23:58 +00:00
augustss
bb2a9b3008
Add some more debug printing.
1999-11-24 23:13:19 +00:00
augustss
3386c68b46
Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma.
1999-11-18 23:32:25 +00:00
augustss
0d2fabdf26
A number of stylistic changes to increase readability (many suggested
...
by Nick Hibma):
use NULL not 0
declare all local definitions static
rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
rename s/r/err/
use implicit test for no err
KNF
1999-11-12 00:34:57 +00:00
augustss
03a522d3c1
Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
...
the USB stack compiles on FreeBSD again.
1999-10-13 08:10:55 +00:00
augustss
11403b6ec1
Fix some bugs in USB controller detach code.
1999-10-12 20:02:47 +00:00
augustss
d0bbed5169
Remove an obsolete comment.
1999-10-11 09:15:34 +00:00
augustss
7049e8eb1b
Add preliminary (untested) code for detaching the USB host controller
...
(needed for CardBus based controllers).
1999-09-15 10:25:30 +00:00
augustss
ff6a476e6c
Rearrange the code a little so we can decide if we are in process
...
or interrupt context in a reliable way. Mainly used for DIAGNOSTIC.
1999-09-13 19:18:17 +00:00