mycroft
ab236698f0
ugen_isoc_rintr() may recycle the xfer immediately. Therefore, we avoid
...
touching the xfer after calling the callback in usb_transfer_complete().
From PR 25960.
2004-07-17 20:16:13 +00:00
mycroft
c206d4cf15
hcpriv is not actually used here. Remove references to it.
2004-07-17 20:12:02 +00:00
mycroft
30533d66ac
AUOPEN_* != AUMODE_*. Duh. Make unidirectional devices work again.
2004-07-16 22:39:23 +00:00
mycroft
68e6b1d115
The previous change was not complete. /brick me
2004-07-16 20:08:23 +00:00
mycroft
c3cc87104d
Whoops! Don't try to set parameters for a direction that doesn't exist.
...
(audio_set_defaults() can do this.)
2004-07-09 18:08:00 +00:00
mycroft
e3694d0dc1
Adjust some silliness that was causing us to do extra work for "frame list
...
rollover" interrupts, which we pretty much ignore.
2004-07-09 05:07:06 +00:00
mycroft
005f3f7095
Clean up a little.
2004-07-09 02:57:48 +00:00
rumble
bbbaf17cc4
The MCT advertises both the interrupt and bulkin endpoints as
...
interrupts. Go from assuming that the first enumerated interrupt
is the bulkin (since this may not be the case) to assuming that
the true interrupt endpoint will have a 0x2 wMaxPacketSize.
From FreeBSD's umct.c, ok'd by mycroft@, closes PR25959.
2004-07-08 00:54:21 +00:00
mycroft
7c36059937
Previous fix was not right. Also fix a couple of other problems -- we were
...
never actually setting the mode if using audioctl.
2004-07-07 22:04:28 +00:00
mycroft
0d1387f79f
Regen.
2004-07-07 21:54:38 +00:00
mycroft
b236e06a7b
GREENHOUSE2_USBKR100 -> REALTEK_RTL8150L, per PR 20425.
2004-07-07 21:54:21 +00:00
mycroft
bd6daf04d5
Regen.
2004-07-07 21:31:24 +00:00
mycroft
b4d61283e6
Add another Zire device, from PR 25929.
2004-07-07 21:11:02 +00:00
mycroft
d9e25c2ba9
Rearrange to fix a potential crash when changing parameters with audioctl and
...
the device is closed. Reported in PR 24066.
2004-07-07 20:21:06 +00:00
mycroft
b48bbc8b8a
Fix an error in a printf() format.
...
Swap the order that two items are written; possibly fixes a race condition
that would affect isoc transfers.
2004-07-06 04:53:09 +00:00
mycroft
3ad4dd10ca
Fix a byte order error.
2004-07-06 04:18:05 +00:00
mycroft
81ff095ed7
Remove the call to ulpt_reset(). Although this *shouldn't* cause printers to
...
disconnect, it does, and this is *not* what the "prime" behavior was for in
lpt.
2004-07-03 19:33:15 +00:00
mycroft
2d24a9bd14
When starting a bulk-only transfer, punt early if the device is going away.
2004-06-30 05:53:46 +00:00
mycroft
9f98e14be5
Fix an endianness problem (EHCI_NULL was being double-swapped).
2004-06-30 03:11:56 +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
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
mycroft
00188614f1
Fix some UMATCH values.
2004-06-28 07:49:16 +00:00
mycroft
f9fd558bdc
Tracy's Clie reports that it's SFF-8070 when it's really UFI. Bah.
2004-06-28 06:47:48 +00:00
mycroft
173e7d6ab6
Do not do a CBI reset before returning STATUS_CMD_FAILED. This causes any
...
sense information to be thrown away, and is therefore nonsensical.
2004-06-26 02:17:00 +00:00
mycroft
c9c4a2d0bb
Fix usage of incorrect buffer in CBI, possibly causing general failure to
...
transfer data correctly. See PR 25676.
2004-06-25 14:14:34 +00:00
mycroft
7b51844a76
Do not return STATUS_WIRE_FAILED in response to a CBI stall. This is perfectly
...
normal, and is used to report errors. Instead, use STATUS_CMD_FAILED, which
causes us to do a REQUEST SENSE. Should address PR 22960.
2004-06-25 14:07:27 +00:00
mycroft
d27abec08f
Add a comment explaining quirk table policy.
2004-06-25 13:23:55 +00:00
mycroft
b15cb82a2d
Further cleanup of toggle handling. Now that we use EHCI_QH_DTC, we don't
...
need to fiddle with the TOGGLE bit in the overlay descriptor, so minimize
how much we fuss with it.
2004-06-23 06:45:56 +00:00
mycroft
dbee7a2507
In the "seemed like a good idea until I found the fatal flaw" department...
...
Attempting to read a maximum-size string descriptor causes my kue device to go
completely apeshit. So, go back to the original method, but allow the device
to return a shorter string than it claimed.
2004-06-23 06:27:54 +00:00
mycroft
1bce39942b
Whoops, use the correct value for the maximum string descriptor length.
2004-06-23 05:23:19 +00:00
mycroft
ef77780b63
Yes, some devices return incorrect lengths in their string descriptors. Rather
...
than losing, do what Windows does: just request the maximum size, and allow a
shorter response. Obsoletes the need for UQ_NO_STRINGS, and therefore these
"quirks" are removed.
2004-06-23 02:30:52 +00:00
mycroft
a20e630437
Fix an error in a debug printf().
2004-06-22 22:00:11 +00:00
mycroft
7c3a6504d0
Adjust a couple of comments to make it clear WTF is going on.
2004-06-22 18:27:46 +00:00
mycroft
60208395fd
Update comment.
2004-06-22 18:05:18 +00:00
mycroft
a995be9908
Fix a printf() error.
2004-06-22 12:21:04 +00:00
mycroft
a31a65fb9f
Remove comment about the data toggle being borked.
2004-06-22 09:46:46 +00:00
enami
8bafaf56a7
As the ehci_idone() now uses the variable `epipe' unconditionally, always
...
declare it (in other words, make this file compile w/o EHCI_DEBUG).
2004-06-22 09:16:56 +00:00
mycroft
7a2cdd24f9
Fix a stupid bug in ehci_check_intr() that caused use to try to complete a
...
transaction that was still running. Now ehci can handle multiple devices
being active at once.
2004-06-22 08:55:25 +00:00
mycroft
4114710563
Oops. Remove a couple of printf()s.
2004-06-22 07:40:19 +00:00
mycroft
941901b304
Failure to properly mask off UE_DIR_IN from the endpoint address was causing
...
OHCI_ED_FORMAT_ISO and EHCI_QH_HRECL to get set spuriously, causing rather
interesting lossage.
Suddenly I get MUCH better performance with ehci...
2004-06-22 07:20:35 +00:00
mycroft
46d9c14fee
Set the data toggle correctly, and use EHCI_QTD_DTC. This fixes problems with
...
my ALi-based drive enclosure (it works now, rather than failing to attach).
Also seems to work with a GL811-based enclosure and an ASUS enclosure with a
CD-RW, on both Intel and NEC controllers.
Note: The ALi enclosure is currently very SLOW, due to some issue with taking
too long to notice that the QTD is complete. This requires more investigation.
2004-06-22 05:25:10 +00:00
augustss
79295fa58d
Remove change accidentally committed by tls.
2004-06-14 13:52:55 +00:00
tsarna
4605dd7457
Add calibration support to uep driver.
...
Untested, still need a userland utility to calibrate with.
2004-06-12 17:52:41 +00:00
mycroft
738ef9dc5d
Fix an unimportant typo.
2004-06-12 16:02:42 +00:00
petrov
3936b06424
Initialize restartcnt. from FreeBSD.
2004-06-11 17:25:47 +00:00
jdolecek
849c8f1904
attach to Sitecom USB to serial cable
...
patch submitted in PR kern/25510
2004-06-05 08:41:43 +00:00
jdolecek
3173ee1a05
regen:
...
add Sitecom USB to serial cable
info submitted in PR kern/25510
2004-06-05 08:40:10 +00:00
jdolecek
80ce2a5588
add Sitecom USB to serial cable
...
info submitted in PR kern/25510
2004-06-05 08:39:31 +00:00
grant
52620d764c
regen
2004-05-30 09:28:48 +00:00
grant
cd624764ba
add 2nd vendor ID for Chicony Electronics (0x0c45) and add Chicony
...
TwinkleCam USB camera (0x600d).
2004-05-30 09:27:56 +00:00