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
tsarna
6cf367d31d
"uep" a driver for USB eGalax touch-panels. These are commonly found on
...
Xenarc, Liliput, etc. small touchpanel LCD displays.
TODO:
- manpage
- calibration support (make hpc's tpcalib stuff more MI?)
- On i386 and other xfree-ish xservers, (currently-uncomitted) patches
are needed for X to honor wscons absolute mouse position events.
2004-05-24 23:48:36 +00:00
tsarna
b20d882c63
regen
2004-05-24 19:02:19 +00:00
tsarna
a0645ac0f8
Add IDs for eGalax USB touchpanel controllers.
...
Descriptions are not very good because the only documentation I have
says "the VID and PID may be one of these combinations", without any
additional information about the differences or even model names.
2004-05-24 19:00:42 +00:00
martin
16cb7d6f69
Make sure that we call uplcom_set_line_state() to get consistent state
...
between our idea of flow controll settings and the chips one.
In uplcom_set_line_state use the same value as the manufacturer suggests,
since the previously used (umodem based) values do not seem to work.
It is not completely clear what happened here - either the "not calling
uplcom_set_line_state" due to luck prevented the non working state to
be discovered or there are variants of the chip that need the old values.
During testing none such chips have been found - if they ever apear we
might have to make this function more intelligent, depending on the chip
in use.
2004-05-20 09:23:33 +00:00
jdolecek
958daa19cd
add support for USB_GET_DEVICEINFO and USB_GET_STRING_DESC ioctls,
...
with same meaning as for ugen(4)
2004-05-08 11:41:19 +00:00
itojun
300aa0dcd5
use bounded string ops (snprintf, strl*)
2004-04-23 17:25:25 +00:00
itojun
aca4c091d3
sprintf -> snprintf
2004-04-22 00:17:10 +00:00
martin
90aca47286
Initialize sc_rts and sc_dts to 0, instead of -1, as suggested in
...
PR kern/21043.
2004-04-09 19:06:52 +00:00
matt
f8bf8392a4
Regen.
2004-04-08 05:36:30 +00:00
matt
ebe3577cee
Add Dell BC02 Bluetooth USB Adapter
2004-04-08 05:36:00 +00:00
matt
e31defb1fb
Regen.
2004-04-07 18:11:31 +00:00
matt
6e500a5352
Add Dell's vendor code
2004-04-07 18:11:07 +00:00
tls
05e1bf3ec9
MAXBSIZE->MAXPHYS -- this mysteriously broke all *kinds* of stuff when
...
MAXBSIZE had been reduced by the user (e.g. transfers from umass disks).
2004-03-22 14:55:42 +00:00
augustss
26b7762c08
Regen.
2004-03-15 11:16:43 +00:00
augustss
ae2960eaf0
Add some devices. From FreeBSD.
2004-03-15 11:16:23 +00:00
augustss
92bc86cdb6
Add Epson Perfection 1670 scanner
2004-03-15 11:09:23 +00:00
augustss
eaf85ed85e
Regen.
2004-03-15 11:08:53 +00:00
augustss
fd28ddd148
Add Epson Perfection 1670 scanner
2004-03-15 11:08:34 +00:00
augustss
da2d21f6ee
Set the device address before reading the device descriptor.
...
This makes certain non-conforming devices work.
Suggested by Peter Burnett in kern/24716.
2004-03-15 10:35:04 +00:00
drochner
04325221da
regen
2004-03-12 13:32:00 +00:00
drochner
ff0d2298c2
add Canon EOS300d
2004-03-12 13:31:28 +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
drochner
835771a879
On disconnect, set the "subdev" pointer to NULL, otherwise
...
free()d memory will be referenced through
usbd_add_dev_event(USB_EVENT_DEVICE_DETACH)->
usbd_fill_deviceinfo()
later.
might need more review, but at least it doesn't crash on
amd64 anymore
2004-02-25 21:52:59 +00:00
augustss
187630511a
Add a serial adapter. From PR 24482
2004-02-19 01:12:05 +00:00
augustss
84fc0b7421
Regen.
2004-02-19 01:11:13 +00:00
augustss
6f5601f100
Add a serial adapter. From PR 24482
2004-02-19 01:10:42 +00:00
augustss
7cbb919e9d
Fix pasto.
2004-01-28 22:37:50 +00:00
augustss
914d460136
Add Sony Clie v3.5. From FreeBSD.
2004-01-28 22:01:38 +00:00
augustss
33d0bfd046
If vendor or product is the empty string, ignore it.
...
From FreeBSD.
2004-01-28 22:00:06 +00:00
augustss
87d594416e
Regen.
2004-01-28 21:57:11 +00:00
augustss
ade63aa50c
Add more devices. From FreeBSD.
2004-01-28 21:56:51 +00:00
augustss
2e480fe6bf
Regen.
2004-01-28 21:50:52 +00:00
augustss
dc826a966b
Add another FTDI device. From FreeBSD.
2004-01-28 21:50:28 +00:00
gson
f3b20f4de0
In alloc_all_endpoints_genuine(), search for the endpoint descriptors
...
within the configuration descriptor, not the class specific interface
descriptor. The Edirol UM-1SX now successfully attaches and works as
a standard USB MIDI interface when the "advanced driver" switch is set
to "off".
2004-01-19 07:36:35 +00:00
jdolecek
52a99e6986
Michael van Elst reports his USB2 disk works stable after latest Chuck's
...
ehci.c changes, so remove the item from TODO.
2004-01-17 13:15:05 +00:00
chs
3c9eb7a6c4
in ehci_softintr() when looping over the active xfers, save the next pointer
...
before calling ehci_check_intr(), since that will free the xfer structure
if the xfer is complete.
2004-01-09 09:19:33 +00:00
jdolecek
6c869ee3b7
add list of known issues, from Lennart Augustsson and Michael van Elst
2004-01-07 09:17:47 +00:00
gson
e11055d090
Abort the USB transfer on an endpoint when the last midi device
...
referencing it is closed. Fixes kern/23987.
2004-01-06 05:42:47 +00:00
augustss
2be4a9297b
One more device. From OpenBSD.
2004-01-05 13:49:40 +00:00
augustss
35b09dafaa
Regen.
2004-01-05 13:46:43 +00:00
augustss
150753278e
Add a number of devices. From OpenBSD.
2004-01-05 13:46:20 +00:00
augustss
8bcf98def6
Add an HP adapter. From FreeBSD.
2004-01-05 13:36:24 +00:00
augustss
7cdc2658bb
Try harder to get initial descriptor. Do a port reset now and then
...
in the retry loop.
2004-01-05 13:32:23 +00:00
augustss
4d6e985752
Fix bug in error path. From OpenBSD.
2004-01-05 13:30:45 +00:00
augustss
5f31dab3df
Add more scanners.
2004-01-05 13:29:49 +00:00
augustss
cfbab17b08
Add another device.
2004-01-05 13:29:27 +00:00
augustss
9622982931
Get rid of a vnode.h include.
2004-01-05 13:29:08 +00:00
augustss
770f7ef656
Get rid of some vnode.h includes.
2004-01-05 13:28:18 +00:00
augustss
60846c1584
Regen.
2004-01-05 13:05:39 +00:00
augustss
e3d816149f
Add lots of devices. From FreeBSD.
2004-01-05 13:05:16 +00:00
schmonz
113854bb28
Add Compaq "iPaq" HNE-200 USB Ethernet adapter.
2004-01-05 01:52:03 +00:00
schmonz
b7319ca85e
Regen (Compaq "iPaq" HNE-200 USB Ethernet adapter).
2004-01-05 01:51:34 +00:00
schmonz
f3d2103991
Add Compaq "iPaq" HNE-200 USB Ethernet adapter.
2004-01-05 01:50:00 +00:00
augustss
3c5939dc02
Cosmetic changes.
2004-01-04 11:11:56 +00:00
jdolecek
482ad5b141
make uhid_graphire*_report_descr[] const
2004-01-04 08:35:52 +00:00
dsainty
232d108953
Kill the flow control interface. Bluetooth devices are not equipped to deal
...
with flow control being applied. It is simpler and no more problematic to
accept the data and drop it if we hit a resource limit than to expect the
Bluetooth device to do anything about it (which it won't).
2004-01-04 05:47:43 +00:00
dsainty
68c4826bcf
Correct buffer selection in uhidev_set_report for non-zero report IDs (rare!)
...
Spotted by Dave Huang, noted in tech-kern.
2004-01-04 02:13:11 +00:00
augustss
956a88bd1e
Support Graphire 4x5. From Dave Huang in kern/23965.
2004-01-04 01:29:11 +00:00
augustss
0daa8ba196
Regen.
2004-01-04 01:27:38 +00:00
augustss
2da03fdec4
Add Wacom Graphire3 4x5. From Dave Huang.
2004-01-04 01:26:23 +00:00
soren
51e7baecd8
Regen.
2004-01-03 14:16:45 +00:00
soren
fd87fe0125
Add Motorola A920.
2004-01-03 14:12:57 +00:00
dsainty
d3a5c746ab
Correct a conditional masking error conditions
2004-01-02 02:36:25 +00:00
dsainty
275cfd33b4
Correctly initialise ALL of the attach argument block. Fixes panic on
...
device open (previously avoided by compiler-dependent luck :)
2004-01-01 16:10:13 +00:00
hamajima
fc324f7812
add Logitech "QuickCam for Notebook Pro" and "QuickCam Pro 4000".
...
these are match for ugen, not uaudio.
requested from Takafumi Mizuno.
2003-12-31 14:33:20 +00:00
thorpej
683cebe2c8
No longer need to include <dev/ic/wdcreg.h>
2003-12-30 19:30:39 +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
augustss
f3abb712c4
Regen.
2003-12-28 17:12:00 +00:00
augustss
7ddfb31781
Add a couple of devices.
2003-12-28 17:11:14 +00:00
sekiya
5c3f47767d
Regen.
2003-12-22 10:29:41 +00:00
sekiya
4e9f2db432
Add MELCO LUA-U2-KTX 10/100 USB network interface IDs. Uses uax driver.
2003-12-22 10:27:51 +00:00
jmc
43bf89bfc6
Fixes from PR#23177. Various lint/logic fixes:
...
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing
Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
thorpej
d8f4e7306d
No need to include wdvar.h anymore.
2003-12-14 05:34:29 +00:00
thorpej
a58ada4aad
Instead of calling wddone() directly, set a (*drv_done)() callback in
...
the ata_drive_datas structure and invoke that.
2003-12-14 05:33:29 +00:00
gson
9798a7bc46
Make the chars in the umidi_endpoint buffer unsigned; this fixes at
...
least one sign extension bug which caused umidi input to not work.
2003-12-05 06:05:53 +00:00
gson
07bb045f57
Opening umidi read-only failed to increment ep->num_open because
...
open_in_jack() treated USBD_IN_PROGRESS as a failure return.
2003-12-05 06:01:59 +00:00
keihan
b8702f530b
netbsd.org -> NetBSD.org
...
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
atatat
5f01dc8ab2
Revert revision 1.3 "add sysctl support to firmware loader" by
...
"removing sysctl support from firmware loader". It was never
referenced or called from anywhere...
Suggested by augustss@netbsd.org in private email.
2003-12-01 01:09:24 +00:00
nathanw
68f7fcf078
Make the DPRINTF text for bulk in/out opening errors match which one
...
is in and which one is out.
2003-11-24 19:47:07 +00:00
augustss
852684606a
Add a device. From OpenBSD.
2003-11-24 00:00:07 +00:00
augustss
0e57233a47
Try harder to avoid 0 ports woth AMD756. From OpenBSD.
2003-11-23 19:20:25 +00:00
augustss
50ce2db105
Fix swapped lines in cleanup in ohci_init(). From OpenBSD.
2003-11-23 19:18:06 +00:00
augustss
7686442d28
Add more scanners. From FreeBSD.
2003-11-23 19:07:10 +00:00
augustss
25fc3e9769
Regen.
2003-11-23 19:06:39 +00:00
augustss
14f83fce74
Add another device. From FreeBSD.
2003-11-23 19:06:19 +00:00
augustss
743adeaf63
Add two more adapters. From FreeBSD.
2003-11-23 18:51:49 +00:00
augustss
57264be4a3
Regen.
2003-11-23 18:50:51 +00:00
augustss
0aac4b8f68
Update copyright years.
2003-11-23 18:50:27 +00:00
augustss
a8842a070e
Regen.
2003-11-23 18:37:50 +00:00
augustss
f01a819ee7
Add a number of devices. From FreeBSD.
2003-11-23 18:37:30 +00:00
augustss
d0bdc327b0
Add another product. From OpenBSD.
2003-11-23 18:17:58 +00:00
augustss
9184608aa6
Regen.
2003-11-23 18:16:25 +00:00
augustss
cd8b22197b
Add a number of devices. From OpenBSD.
2003-11-23 18:16:03 +00:00
augustss
422ce84f58
Add some more devices. From FreeBSD.
2003-11-23 12:22:51 +00:00
augustss
02bc5c0199
Regen.
2003-11-23 12:22:19 +00:00
augustss
de08e28c43
Add uplcom devices. From FreeBSD.
2003-11-23 12:21:54 +00:00
augustss
2fecfb383c
Don't free non-malloced memory. From mlang@delysid.org
2003-11-12 11:29:12 +00:00
augustss
b87f6623d3
Regen.
2003-11-11 10:55:32 +00:00
augustss
7e013f13c6
Add a Cypress USB2 hub.
2003-11-11 10:54:56 +00:00
wiz
c2f9db9c64
Update URLs; from Jared Yanovich via jmc@openbsd.
2003-11-10 09:02:08 +00:00
wiz
864bb22441
Update URL; from Jared Yanovich via jmc@openbsd.
2003-11-10 08:58:39 +00:00
carrel
f830588016
enable support for the TREO 600
...
tested and works...
2003-11-07 21:27:56 +00:00
wiz
6a2ed83373
URL updates, from Jared Yanovich and jmc@openbsd, forwarded by the latter.
2003-11-07 17:03:25 +00:00
kivinen
cd9bd33872
eUSB ORCA Quad Reader (SHUTTLE) returns invalid CSWTAGs
...
(always 0). Added quirk to fix it.
2003-11-07 01:04:27 +00:00
kivinen
57d07fa4e6
Regenerated.
2003-11-07 01:02:18 +00:00
kivinen
ff83a852f5
Added eUSB ORCA Quad Reader (Shuttle).
2003-11-07 00:59:38 +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
8ece2f61c0
Oops, fix a commito.
2003-10-29 03:54:17 +00:00
mycroft
cb4f7a1d86
Bogus initializers suck.
2003-10-29 03:46:10 +00:00
mycroft
909205520a
KNF.
2003-10-28 23:40:27 +00:00
mycroft
16413c6f77
The "bad status" case is impossible -- the switch value is constrained to 2
...
bits -- so just add the default case to the one that returns
STATUS_WIRE_FAILED.
2003-10-28 23:37:59 +00:00
mycroft
898602e6b1
Or the config_deactivate() return values.
2003-10-28 23:33:46 +00:00
augustss
6f77e29fd2
Appease new awk by changing \$ to $.
2003-10-28 10:35:12 +00:00
augustss
5a1764fb26
Regen.
2003-10-28 10:33:18 +00:00
augustss
fe59444985
Add Treo 600. From kern/23290.
2003-10-28 10:32:54 +00:00
christos
1cb1045a68
Fix uninitialized variable warnings.
2003-10-25 18:28:31 +00:00
augustss
f42962a2c2
Add Dvorak keyboard map. From PR kern/23230, jacereda@tractor.act.uji.es.
2003-10-22 17:24:43 +00:00
augustss
6d60d8ab89
Re-add the quirks that force certain In-System Design adapters to appear
...
as (non-standard) ATA over BBB adapters. Without these quirks they are
not regocnized by the umass driver.
2003-10-22 05:38:16 +00:00
wiz
810d184699
Fix typo in comment.
2003-10-18 07:41:26 +00:00
simonb
78c2103e34
Remove assigned-to but otherwise unused variables.
...
Remove unreachable break after return statements.
2003-10-18 04:50:35 +00:00
mycroft
e879d3a728
PQUIRK_NOSENSE is dead here. Remove the code supporting it.
2003-10-17 00:20:28 +00:00
mycroft
3fd37812f4
The Yano quirk was intended to do FORCE_SHORT_INQUIRY. Not that that's gone,
...
we shouldn't need this any more, so nuke it.
2003-10-17 00:12:58 +00:00
mycroft
ecb8d5d482
Set the REQUEST SENSE command length to 12 for ATAPI, too. (UFI and ATAPI are
...
really the same...)
Fixes problems with Sony Vaio memory stick slots, which advertise themselves as
"ATAPI over CBI".
Remove the quirk for Fuji cameras, since this is almost certainly the same bug.
2003-10-16 23:39:40 +00:00
mycroft
19ef8301a7
Switch back to UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO in a few cases. Not that
...
it really matters, but UMATCH_VENDOR_PRODUCT effectively overrides the class
code, and that is not supposed to be part of the "quirk".
2003-10-16 20:01:06 +00:00
mycroft
f8c8ef3b63
Document the Olympus, ScanLogic and Sony "quirks" better. Also, the ScanLogic
...
correctly reports itself as SCSI -- it is *not* UFI.
2003-10-16 19:54:01 +00:00
wiz
68f5a56945
regen
2003-10-16 08:05:54 +00:00
wiz
7127923ca9
According to Linux USB Ids list, 0b7a belongs to zeevo, inc.
2003-10-16 08:05:42 +00:00
mycroft
d7b6d72e8c
Deal with the damn DiskOnKey devices. See the comment for an explanation.
2003-10-16 00:36:46 +00:00
rjs
9f105a9400
Regen.
2003-10-15 11:11:55 +00:00
rjs
41929af1e0
Add more IDs.
2003-10-15 11:10:45 +00:00
tron
d8c9e38848
Fix build error caused by last change.
2003-10-15 08:28:29 +00:00
simonb
9606d846fa
Don't check an uninitialsed error variable before printing an error
...
message.
2003-10-15 06:43:36 +00:00
wiz
09d05922dc
Fix mixer wraparound. Closes PR 16652.
...
Patch from Sergey Svishchev. mycroft says "looks ok".
2003-10-14 13:12:19 +00:00
augustss
359109cff2
Regen.
2003-10-13 22:34:32 +00:00
augustss
6c07c4466a
Another Logitech camera.
2003-10-13 22:34:10 +00:00
augustss
32ee02b1f9
Regen.
2003-10-13 17:16:55 +00:00
augustss
c88ef72c1d
Add some IOMEGA products.
2003-10-13 17:15:03 +00:00
dyoung
f9d6bac599
dev/scsipi/atapi_disk.h is no more, and umass_scsipi.c compiles
...
fine w/o it.
2003-10-13 01:47:55 +00:00
enami
3dbf40b29d
KNF the previous commit.
2003-10-13 00:05:36 +00:00
enami
b3931d341e
Rest of PR23128, so that ehci.c compiles again.
2003-10-13 00:05:10 +00:00
mycroft
ba41e2e19b
Fix problems with ehci on controllers that support 64-bit addressing. From
...
Cliff Wright, PR 23128. Thanks!
2003-10-12 18:04:28 +00:00
wiz
d231b1cffc
regen (Acer BT-500 Bluetooth USB Adapter).
2003-10-11 12:13:00 +00:00
wiz
5da5ca0dde
Add IDs for Acer BT-500 Bluetooth USB Adapter.
2003-10-11 12:11:13 +00:00
toshii
6bd45c6229
Fix a done list handling bug which exhibits under high shared interrupt
...
rate and bus traffic. As the interrupt register is read after checking
hcca_done_head, there was a small chance of dropping a done list.
Ignore OHCI_WDH interrupt bit if hcca_done_head is zero so that OHCI_WDH
is processed later.
2003-10-11 03:04:26 +00:00
bouyer
7719e83c8b
Following Matt Thomas's request, rename ata attribute to ata_hl, and
...
wdc_base to ata. We can now have
atabus* at ata?
in kernel config files.
2003-10-08 20:57:59 +00:00
bouyer
99d6009c2a
Make the ATA mid-layer appears as atabus, as proposed in
...
http://mail-index.netbsd.org/tech-kern/2003/09/25/0006.html
This adds a device (atabus) between IDE controllers and wd or atapibus, to
have each ATA channel show up in the device tree. Later there will be atabus
devices in /dev, so that we can do IOCTL on them.
Each atabus has its own kernel thread, to handle operations that needs polling,
e.g. reset and others.
Device probing on each bus it defered to the atabus thread creation.
This allows to do the reset and basic device probes in parallel, which reduce
boot time on systems with several pciide controllers.
2003-10-08 10:58:12 +00:00
augustss
1c24ba42ab
Several changes:
...
* Implement read for ulpt.
* If the device is not opened for reading, occasionally drain any
data the printer might have (but don't hammer the printer with reads).
* Lower the buffer size to one page.
The driver seems to work with more printers now.
2003-10-04 21:19:50 +00:00
augustss
99ebb5ba5a
Add more printers that report bidir mode, but can't handle it. From Linux.
2003-10-02 19:10:37 +00:00
augustss
301ab7ace1
Regen.
2003-10-02 19:09:53 +00:00
augustss
e45171e5c1
Add more printers (from Linux).
2003-10-02 19:09:28 +00:00
augustss
7838ca0944
Regen.
2003-10-02 18:34:35 +00:00
augustss
3d6bbf42ca
Add HP Deskjet 6127.
2003-10-02 18:34:12 +00:00
augustss
1aa1d2f8e2
The umass attach can fail in many ways. Print a message about why it
...
failed instead of just being silent about it.
2003-09-29 20:04:25 +00:00
augustss
95b435b7b3
Update URLs. From PR 23004.
2003-09-29 11:54:26 +00:00
jdolecek
330360f6a6
regen: ROLAND MIDI devices and Piengineering Xkeys entry
2003-09-28 07:15:47 +00:00
jdolecek
eb3ff4c555
add usbdevs entries and umidi quirks for Roland USB MIDI devices
...
contributed in PR kern/18096 by Clemens Ladisch
2003-09-28 07:14:56 +00:00
jdolecek
b2122d6d98
add Piengineering Xkeys 58 entry, from kern/20838
2003-09-28 06:55:57 +00:00
mycroft
ab223e99bc
Allow a device to reject CLEAR_FEATURE ENDPOINT_STALL (with a STALL) -- the
...
assumption being that the device will never use a STALL of a non-control pipe,
I guess.
2003-09-23 21:44:42 +00:00
jdolecek
7cea8a1389
cleanup & uniform descriptor owner handling:
...
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
the owner of descriptor, according to appropriate sematics
of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
pass the ioctls down to soo_ioctl() as any other ioctl
change discussed on tech-kern@
2003-09-21 19:16:48 +00:00
jdolecek
ea7271519d
regen - addition of KYE G-07 joystick entry
...
contributed in kern/22837 by Sergey Svishchev
2003-09-20 09:17:36 +00:00
jdolecek
63eb0e1ad8
add entry for KYE G-07 joystick
...
contributed in PR kern/22837 by Sergey Svishchev
2003-09-20 09:16:44 +00:00
mycroft
4b716264f7
Shuttle products do not need PQUIRK_NOTUR any more. Also removing them for the
...
other two items, since they are presumed unnecessary.
2003-09-17 07:49:11 +00:00
mycroft
09e452d82a
Do the quirk initialization earlier.
2003-09-13 03:18:13 +00:00
mycroft
96b1a8d146
Arrange for the SCSI device to be target 0, and us to be the highest target
...
number. This will make my life easier later...
2003-09-13 03:16:49 +00:00
mycroft
509e3d9fce
Set SCSIPI_CHAN_NOSETTLE.
2003-09-12 19:02:30 +00:00
mycroft
8b05b0c1d3
In usbd_setup_pipe(), check the return value from usbd_clear_endpoint_stall().
2003-09-12 16:22:57 +00:00
mycroft
af7e1b8144
Tweak a debugging printf().
2003-09-12 16:18:08 +00:00
mycroft
6c1f753c7c
ZIP drives don't need PQUIRK_NOTUR -- tested on both a 100 (by me) and a 250
...
(by gendalia). The 100 seems to have another problem that I'm looking into.
2003-09-12 14:52:38 +00:00
mycroft
dad4d4580d
Update actlen even in the case where a TD returns an error -- this is critical
...
for the umass bulk-only STALL case.
2003-09-10 20:08:29 +00:00
augustss
efbfbb9402
Regen.
2003-09-10 06:54:40 +00:00
augustss
83c306df7e
Add a couple of devices.
2003-09-10 06:52:27 +00:00
mycroft
2b919cb36a
Mostly stylistic change, making comments and printf()s similar between BBB
...
and CBI.
2003-09-10 06:38:28 +00:00
mycroft
78435d869d
Copyright maintenance.
2003-09-10 05:42:18 +00:00
mycroft
ff7d94f5ec
Er, missed one thing.
2003-09-10 05:30:15 +00:00
mycroft
9c39f1d6a5
Exorcise UMASS_QUIRK_FORCE_SHORT_INQUIRY.
2003-09-10 05:25:44 +00:00
mycroft
2fe6c4d834
On a Bulk-In data stall, make sure we copy back the data received, per the
...
spec. This is the real problem behind FORCE_SHORT_INQUIRY.
2003-09-10 05:20:21 +00:00
mycroft
7bb5db4e3e
The Sony camera reports itself as a "disk", not a "simplified direct access"
...
device -- ergo, it is "SCSI", not "RBC".
2003-09-10 03:13:53 +00:00
mycroft
b8fd3dab7d
cc -pipe -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Fix several problems with CCI handling, and enable it:
...
* We were never calling the callback function when we got a UFI CCI(!).
* We were passing a bogus residual count on non-UFI CCIs.
* After a REQUEST SENSE, the UFI CCI may include the ASC/ASCQ from the sense
information -- don't consider this a failure.
In addition, remove a horrible hack that was causing us to drop sense
information on the floor and return empty INQUIRY responses, often in the case
where there is a UNIT ATTENTION pending during the INQUIRY. (Some drives send
the data and then fail, some don't.)
This eliminates the need for quirks for the Y-E DATA FlashBuster.
These changes work on:
umass0: SAMSUNG SFD-321U [FW 0C], rev 1.10/2.10, addr 2
umass0: using UFI over CBI with CCI
sd0 at atapibus1 drive 0: <SMSC, USB FDC, 2.10> disk removable
umass0: TEAC TEAC FD-05PUB, rev 1.10/0.00, addr 2
umass0: using UFI over CBI with CCI
sd0 at atapibus0 drive 0: <TEAC, FD-05PUB, 1026> disk removable
umass0: Y-E DATA FlashBuster-U, rev 1.00/3.04, addr 2
umass0: using UFI over CBI with CCI
sd0 at atapibus0 drive 0: <Y-E DATA, USB-FDU, 3.04> disk removable
2003-09-10 02:49:18 +00:00
mycroft
73b4a9d1ee
PQUIRK_NODOORLOCK seems to be strictly unnecessary. If the drive doesn't
...
support it, we'll just get an ILLEGAL REQUEST and ignore it. Furthermore,
on the PQI Travel Flash at least, it works just fine without. These seem to
have been added in omnibus changes for particular devices, along with other
"quirks" that are now gone. Adios, we won't cry for you.
2003-09-09 01:35:47 +00:00
mycroft
a599f64320
If maxlun>0, automatically set PQUIRK_FORCELUNS, rather than using quirk
...
table entries.
2003-09-08 19:57:29 +00:00
mycroft
de88b69b7b
Remove UMASS_QUIRK_NO_START_STOP and UMASS_QUIRK_NO_MAX_LUN.
2003-09-08 19:30:59 +00:00
tron
bab150d798
Regen.
2003-09-08 16:07:15 +00:00
tron
7a0eb6d14e
Add quirk for Sandisk SDDR-86. The patch was supplied by Peter Seebach
...
in PR kern/22720.
2003-09-08 16:06:57 +00:00
mycroft
4d89e946a7
Some of the table entries are now noops. Remove them.
2003-09-05 11:24:56 +00:00
mycroft
61c35f890c
Take vigilante action and remove all the NO_MAX_LUN, NOMODESENSE and
...
NOBIGMODESENSE "quirks". These problems should be fixed without klugery
now.
2003-09-05 11:18:25 +00:00
tsutsui
4189ddf652
Remove advertising clauses from code written by Shingo WATANABE.
...
He has kindly consented it.
2003-09-04 15:17:38 +00:00
mycroft
aea8e885f0
Cast a printf() arg so that USB_DEBUG compiles on multiple platforms.
2003-09-04 03:47:03 +00:00
mycroft
9bba9f60b6
Well, this is bloody obscure...
...
My Imation USB FlashGO! adapter responds to a Get Max Lun request with a
stall. With uhci, this does the expected thing. With ohci, it was returning
a "data underrun" error because we weren't setting "buffer rounding" (i.e.
USBD_SHORT_XFER_OK), and the underrun was taking priority. This happened with
both the ohci in a Mac cube and the builtin ohci on the S3C2410.
So, set USBD_SHORT_XFER_OK on the Get Max Lun. Now I get a stall reported and
umass attaches correctly.
2003-09-04 00:02:59 +00:00
itojun
413787298f
udav*, for ether w/ Davicom DM9601 chipset. Shingo WATANABE
2003-08-22 05:13:29 +00:00
itojun
8fb8c94387
regen
2003-08-16 06:39:12 +00:00
itojun
9a9c255e39
Corega USB-TXC (uses Davicom DM9601E, does not work with existing driver)
2003-08-16 06:36:29 +00:00
augustss
6100a552cc
Add Sony Ericsson DCU10 USB Cable. PR kern/22432.
2003-08-11 08:16:34 +00:00
augustss
3a0b9f8c20
Regen.
2003-08-11 08:15:00 +00:00
augustss
d35ae49748
Add Sony Ericsson DCU10 USB Cable. PR kern/22432
2003-08-11 08:13:42 +00:00
wulf
b6db36227b
Add SIIG UISDMC2S Multicard Reader/Writer
2003-08-08 08:24:23 +00:00
wulf
03b1800985
Regen after adding SIIG UISDMC2S (0x0200) Multicard Reader/Writer
2003-08-08 08:00:57 +00:00
wulf
1a6211e5ae
Add new product code for SIIG UISDMC2S (0x0200) Multicard Reader/Writer
2003-08-08 07:52:41 +00:00
nathanw
9cf81bef79
Bunch of changes to make the Palm Tungsten T work:
...
* Mark the actual Handspring Visor as type "VISOR" and all others
"PALM4" (notably, the Sony Clie 41 changes from Visor-type to
Palm4-type).
* For Palm4-type devices, use the GET_PALM_CONNECTION_INFORMATION
query instead of the GET_CONNECTION_INFORMATION query, and interpret
the returned data structure appropriately. This permits attaching a
ucom device to newer devices such as the Tungsten T that do not
support the Visor-style query (data structure definition gleaned
from the Linux 2.4.21 visor.c).
* Crank down UVISORBUFSIZE from 1024 to 64 to avoid a problem where
the Palm device and the USB host controller deadlock. The USB host
controller is expecting an early-end-of-transmission packet with 0
data, and the Palm doesn't send one because it's already
communicated the amount of data it's going to send in a header
(which ucom/uvisor are oblivious to). This is the problem that has
been known on the pilot-link lists as the "[Free]BSD USB problem",
but not understood.
XXX It would be better for the Palm protocol to be handled entirely
in userland via ugen, since the serial protocol abstraction isn't
really adequate for the amount of structure that's here, and the
64-byte limit is just a workaround. The pilot-link tools aren't up
to the task yet, though.
2003-08-03 21:59:26 +00:00
gehenna
63452158ba
Regen (EDIROL UA-3FX)
2003-07-30 04:50:25 +00:00
gehenna
63741a9060
Add suffix 'A' for UA-3FX advanced mode.
2003-07-30 04:49:12 +00:00
gehenna
0bdf85cae2
Add EDIROL UA-3FX audio I/F
2003-07-30 04:47:55 +00:00
lukem
365cbd9428
add missing __KERNEL_RCSID()
2003-07-14 15:47:00 +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
martin
273141ddfc
Regen (Sony USB Memory Stick Slot (MSC-U03) added)
2003-06-30 12:42:27 +00:00
martin
950ba36af5
Add Sony USB Memory Stick Slot (MSC-U03),
...
from Katsuhisa ABE in PR 22017.
2003-06-30 12:41:37 +00:00