fvdl
a3cea30b50
Implement an USB memory reserve. Allocate some memory per host controller
...
in the wanted bus_dma space. If an allocation fails during operation
(i.e. when hotplugging an umass device), fall back to using the reserve.
The amount can be configured as USB_MEM_RESERVE. The default value is
256k.
Ideally, there would be a way to steal pages in the desired area from
UVM, but that's far more complicated, and this is not intrusive, plus
it works.
2004-12-21 16:41:24 +00:00
augustss
d32a749096
Allow strings descriptor 0 to be fetched. It's the default language index.
2004-10-26 20:46:16 +00:00
drochner
7f3933adae
typo in comment
2004-07-22 18:45:40 +00:00
mycroft
c206d4cf15
hcpriv is not actually used here. Remove references to it.
2004-07-17 20:12:02 +00:00
mycroft
ac575d2a58
Make one message dependent on ohcidebug, so it doesn't interfere with polled
...
operation; e.g. when entering a root device or in DDB.
2004-06-29 03:56:04 +00:00
martin
ce925f4f4f
Interrupt descriptors might become invalid while being processed in
...
uhci_check_intr - so remember their next pointer before calling it.
Patch provided by Matthew Orgass in PR kern/24542.
2004-03-02 16:32:05 +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
mycroft
c6589d2082
Ignore a CRCTO error on a SETUP transaction in combination with STALLED or NAK.
...
This fixes problems with the GL641.
2003-11-04 19:11:21 +00:00
mycroft
af7e1b8144
Tweak a debugging printf().
2003-09-12 16:18:08 +00:00
drochner
8c4f2074f2
avoid a gcc3 warning about a never-true comparision in the
...
mstohz() macro
2003-07-03 11:24:13 +00:00
gson
34388cbdcc
Function names printed in debug messages did not always match the
...
actual name of the function.
2003-05-13 04:41:59 +00:00
simonb
9bfb5c46f4
Remove unreachable break after return.
2003-02-23 04:19:26 +00:00
tsutsui
881b65ce01
Use mstohz() in <sys/param.h> rather than homegrown MS_TO_TICKS().
2003-02-22 05:24:16 +00:00
augustss
fe29dd94be
Bail out early in isoc_done if the ii is not on the interrupt list.
2003-02-19 01:35:04 +00:00
augustss
47f7f552a2
Don't take xfers off the interrupt list if they are not on it yet.
2003-02-16 23:15:27 +00:00
ichiro
6236662a85
change URL pointers of USB[1,2] specification
2003-02-08 03:32:50 +00:00
augustss
f2590fdb81
Reissue the MAXP command on resume. From FreeBSD.
2003-01-01 16:25:59 +00:00
dsainty
3204b83aa5
Be somewhat more persuasive about enabling the port on a port reset.
...
USB protocol dictates that the port enable must be implied by the port
reset. To implement this on (at least) the VIA VT83C572 this means we
need to wait around tweaking the chip state until the port actually
transitions to enabled (or the device goes away). Likely fixes
kern/11018.
2002-12-31 02:21:31 +00:00
dsainty
0bdb52527a
CONSTCOND away some lint warnings
2002-12-31 02:04:49 +00:00
augustss
434abd832d
Add #ifdef USB_USE_SOFTINTR for some softintr code. From FreeBSD.
2002-09-29 21:13:01 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
augustss
86650920c9
Get rid of trailing white space.
2002-07-11 21:14:24 +00:00
lukem
06de426449
SIMPLEQ rototill:
...
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
augustss
0a15c2acd4
Change DMAADDR macro slightly.
2002-05-28 12:42:38 +00:00
augustss
4bc0b333ea
Update dma memory access API a little.
2002-05-19 06:24:30 +00:00
augustss
b32942bb23
Whitespace fixes.
2002-03-17 18:02:52 +00:00
tsutsui
ce457aa10e
Fix a couple of typo:
...
- s/ehci/uhci/ (in unused arg of macro)
- s/ohci/uhci/ (in panic message)
2002-03-16 16:13:41 +00:00
augustss
e4ca1c8a44
Use the correct pointer for the timeout abort.
2002-03-04 00:53:33 +00:00
augustss
5d2b04bb42
Move the interrupt bailout when a cancelled ii is found.
2002-02-27 12:42:41 +00:00
augustss
5663022c32
Remove spurious splusb().
...
Lower abort hardware wait.
2002-02-27 12:12:45 +00:00
augustss
f8204d29e1
Switch to the same abort mechanism as in [eo]hci; it should be more
...
robust.
2002-02-11 11:40:33 +00:00
augustss
7f01f1dd6b
Some white space fixes from FreeBSD.
2002-02-03 18:15:20 +00:00
augustss
044c8f0a7a
Use M_WAITOK instead of M_NOWAIT when allocating extra descriptors.
...
Spotted by OpenBSD.
2002-01-27 23:00:34 +00:00
tsutsui
448d063b57
Call malloc(9) with M_ZERO flag instead of memset() after malloc().
2002-01-14 13:23:36 +00:00
augustss
2c4813fa9d
Use NULL not 0.
2001-11-21 15:48:37 +00:00
augustss
4d4da7e06a
Fix typo in comment.
2001-11-21 12:25:55 +00:00
augustss
2478d1b320
Cast some args to bitmask_snprintf().
2001-11-21 02:38:35 +00:00
augustss
9716a5f26d
Don't bother with interrupts when being disconnected.
2001-11-20 21:12:46 +00:00
augustss
e5353fd3b5
Use longer reset for root hubs (as told in the spec).
2001-11-20 16:08:10 +00:00
augustss
7e4459fe10
Keep track of device speed for USB 2.0.
2001-11-20 13:48:03 +00:00
lukem
667807e40c
add RCSIDs
2001-11-13 06:24:53 +00:00
augustss
ea0061b951
Change reset sequence to get status change bits set right on startup.
2001-10-25 02:08:13 +00:00
augustss
1f93717101
Some more paranoia tests when entering the interrupt routine.
2001-10-24 21:04:04 +00:00
augustss
adca9c589f
More debug.
2001-10-24 20:20:03 +00:00
augustss
1c11481abf
More null pointer checks in dump routine.
2001-10-24 00:42:05 +00:00
pooka
1e72a22c49
move DIAGNOSTIC-printf up one block to make it reachable
...
noted by Christophe Kalt in private email
2001-10-02 17:59:38 +00:00
augustss
be12c4395c
Don't write back status bits that are cleared when written.
2001-08-06 15:15:08 +00:00
augustss
981c2a6401
Rearrange register dump when the controller is dying. Fixes PR 13430.
2001-07-11 14:11:00 +00:00
augustss
1077c84a99
Avoid a potential null pointer dereference. From OpenBSD.
2001-04-01 14:59:52 +00:00
augustss
a2c1a2899f
Try to make resume work on more machines.
2001-03-25 22:52:21 +00:00