Commit Graph

2068 Commits

Author SHA1 Message Date
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
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
jschauma
0f675a710b Regen after adding LaCie Pocket Drive and ACDC Pen Drive. 2003-06-26 00:20:18 +00:00
jschauma
1777ce56e3 Add support for two new devices:
-  LaCie Pocket Drive (http://www.lacie.com/products/product.htm?id=10023)
-  a Pen Drive (http://www.flash-memory-store.com/51usbflasdri.html)

The latter shows as a uhub with a umass and a ugen.  The ugen is the
"Secure Write" device, which presumably allows password protection with the
appropriate (windows only) driver.  Works fine without.

Ok by augustss.
2003-06-26 00:18:08 +00:00
augustss
d495634233 Regen. 2003-06-23 23:01:09 +00:00
augustss
30b0700839 Add my new Laks watch with a flash disk.
Yes, I'm a geek.
2003-06-23 23:00:46 +00:00
augustss
a28c261a76 Regen. 2003-06-23 21:56:59 +00:00
augustss
49ccba6c53 Add new device. From Urban Boquist. 2003-06-23 21:56:36 +00:00
augustss
7cdd37a934 Another quirk from Urban Boquist. 2003-06-23 21:11:29 +00:00
martin
d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
rjs
67e2545285 Regen. 2003-06-16 12:46:39 +00:00
rjs
946b6bccf2 Add vendor IDs for Ericsson, Hirose and AEI. 2003-06-16 12:45:20 +00:00
grant
42ddc68577 regen 2003-06-08 13:34:23 +00:00
grant
c1b1b84e38 add another vendor ID for OnSpec Electronic Inc. 2003-06-08 13:33:16 +00:00
augustss
be0211e579 Regn. 2003-06-07 17:01:24 +00:00
augustss
6c3bbf2a48 Eicon diva 852 isdn ta support. From Pavel Arnost, PR kern/21818. 2003-06-07 17:00:41 +00:00
augustss
18bd4aa617 Regen. 2003-06-03 23:22:16 +00:00
augustss
bd311307e3 Add Motorola T720c and a quirk for it. 2003-06-03 23:22:00 +00:00
gehenna
637efc0116 Add AboCom UFE2000. 2003-05-25 14:36:56 +00:00
gehenna
9e736dcfd9 Regen. 2003-05-25 14:32:43 +00:00
gehenna
d76735d9cf Add AboCom UFE2000 USB2.0 Fast Ethernet Adapter 2003-05-25 14:31:41 +00:00
augustss
d9c803e9da Regen. 2003-05-24 23:30:47 +00:00