Commit Graph

1426 Commits

Author SHA1 Message Date
gehenna f144837e0e Stylistic changes 2001-12-14 08:58:49 +00:00
gehenna 2d27ad7c73 Define a new structure to store wire specific control methods.
The basic BBB/CBI functions are stored as members of constant structure.
When attached device, softc holds one of that constant structures.
2001-12-14 08:46:19 +00:00
ichiro 69424fd268 typo fix 2001-12-14 08:33:54 +00:00
gehenna 49bba69842 Use device handle and interface number which are stored in softc. 2001-12-14 06:21:56 +00:00
gehenna 53f34def69 Change style to store endpoint addresses and pipes. 2001-12-14 05:58:13 +00:00
augustss 04c10fc0cf Initialize lock. 2001-12-13 17:25:37 +00:00
augustss 0ba8bac8fe Fix some bugs. But the driver is still borken. 2001-12-13 02:16:21 +00:00
augustss 8e98b4a185 Add some special cases for the Sitecom adapter.
Make endian safe.
Fix some minor bugs.
2001-12-12 23:59:48 +00:00
augustss 0a4d7b9de3 Add a scanner quirk for keeping the pipes open between device opening.
Idea from Enami.
2001-12-12 15:48:18 +00:00
augustss 7727919172 Use USBD_NO_COPY in for some transfers where it was missing. 2001-12-12 15:44:47 +00:00
augustss 2fdd0f5a4b Some more paranoia checks when DIAGNOSTIC. 2001-12-12 15:38:58 +00:00
augustss 29c3fe261b Add some comments. 2001-12-12 15:38:27 +00:00
augustss 95d1208c14 Regen. 2001-12-12 15:37:21 +00:00
augustss 290d3a0d9e Add some devices. 2001-12-12 15:36:59 +00:00
augustss dfbcffae07 Remove some stupid casts. 2001-12-12 15:36:08 +00:00
augustss 4a802f4928 Add USB-IrDA bridge.
Needs more testing.
2001-12-12 15:27:24 +00:00
augustss 22735e5d44 Move usbd_clear_endpoint_toggle() prototype to usbdi.h. 2001-12-12 15:23:58 +00:00
gehenna 968318a989 Use vendor/product variables 2001-12-12 14:24:53 +00:00
gehenna 0f983137af Don't change wire protocol state in umass generic function 2001-12-12 13:23:20 +00:00
gehenna 54e3c1962e bcopy -> memcpy 2001-12-12 13:17:03 +00:00
augustss aa816a6d89 Regen. 2001-12-10 03:36:54 +00:00
augustss 9cfe511c73 Add some devices. 2001-12-10 03:36:12 +00:00
gehenna c9b557f40e Add an item 2001-12-09 03:06:46 +00:00
cjs b445461d1e Rebuild these to fix the "generated from" line. 2001-12-07 07:43:10 +00:00
cjs 9dd4ce03d0 Add Palm m500/m505 and Sony Clie USB cradle device IDs. 2001-12-07 06:59:44 +00:00
augustss 22fd9bbb5f Add IrDA related defines. 2001-12-06 17:00:26 +00:00
augustss ec901ec7fe Regen. 2001-12-05 23:25:56 +00:00
augustss 12812553f8 Add a NEC USB 2.0 hub. (USB 2.0 hubs are very rare creatures at the moment!) 2001-12-05 23:25:31 +00:00
augustss 02aa2a59bc Handle vendor/product lookup with a common routine. 2001-12-03 01:47:12 +00:00
augustss 23d4159897 Add a subroutine to search for a vendor/product pair. 2001-12-02 23:25:25 +00:00
bouyer 65768c08e2 No need to include atavar.h here. 2001-12-02 22:59:40 +00:00
bouyer 4809ad42cb Clean up attach of wd/atapibus:
kill ata_atapi_attach. Change atapibus to use a struct scsipi_channel instead
of ata_atapi_attach as attach arch. Create a ata_device, compatible with
scsipi_channel, to attach wd.
2001-12-02 22:44:32 +00:00
enami e69c410de5 Shorten wmesg so that they can be distinguished in ps/top output. 2001-12-01 09:42:39 +00:00
enami b56cddb826 Fix null pointer dereference when EHCI_DEBUG is defined (and
debug is enabled).
2001-12-01 09:39:32 +00:00
augustss 2781ac8e07 Regen. 2001-11-30 13:41:17 +00:00
augustss a287e24799 Add new devices. From URA Hiroshi in PR 14790. 2001-11-30 13:41:00 +00:00
augustss 4b06fc39aa Regen. 2001-11-29 13:58:41 +00:00
augustss 7a7025366e Add some ISD devices. 2001-11-29 13:58:22 +00:00
augustss c01e71bac5 Plug a memory leak in an error case. 2001-11-29 11:07:12 +00:00
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem 9f42ccc795 use #ifdef DDB (for consistency with the rest of the kernel) 2001-11-28 05:45:27 +00:00
augustss 380fd47edb Change wchan name for usb task thread. 2001-11-26 20:16:55 +00:00
augustss a6ba091eef Add a quirk for Olympus C-1. From FreeBSD (by iedowse) 2001-11-25 19:15:46 +00:00
augustss 596224e54f Pay attention to the timeout value passed down by the scsipi layer. 2001-11-25 19:05:22 +00:00
augustss 6fcfa35836 Regen. 2001-11-25 17:17:42 +00:00
augustss f070b78088 Add Olympus C-1. 2001-11-25 17:17:22 +00:00
enami 71651851a4 Match against EPSON GT-9700F. 2001-11-23 10:31:54 +00:00
enami 674f6e4d18 Regen. 2001-11-23 10:30:49 +00:00
enami 9930efdacf Add product id of EPSON GT-9700F. 2001-11-23 10:29:30 +00:00
augustss cdc819cd8a Improve xfer abort sequence.
Fix another bug in qTD chain allocation.
2001-11-23 01:16:27 +00:00
augustss 6d8419a6cc Handle Zip quirks differently.
Ugh!  This driver need major overhaul.
2001-11-23 01:15:28 +00:00
augustss 6f95b070ca Update mass storage protocol numbers. 2001-11-23 01:14:45 +00:00
augustss 37c8189778 Correct a comment. 2001-11-22 21:59:33 +00:00
augustss 7467533f5a Improve dump routine slightly. 2001-11-22 04:31:01 +00:00
augustss 6e3a855c27 Fix a bug in qTD chain allocation.
Fix a qTD leak.
Handle out of memory conditions better.

My USB 2.0 CD-RW now mounts nicely and I can access files.
Performance is still lacking (it's at about 2Mbyte/s).
2001-11-22 04:20:49 +00:00
augustss bc136d1c2e Make it compile without debug. 2001-11-21 16:22:58 +00:00
augustss 9dae283057 Add another "feature". 2001-11-21 16:12:56 +00:00
augustss b2dc7b3fd3 Follow a safer protocol when updating the QH.
The EHCI driver isn't really working properly, but now the SCSI driver
correctly identifies my CD-RW drive! :-)
2001-11-21 16:05:13 +00:00
augustss 2c4813fa9d Use NULL not 0. 2001-11-21 15:48:37 +00:00
augustss df1a49923c Fix indentation and typos. 2001-11-21 15:37:41 +00:00
augustss 5539d5afe6 Implement (incorrect?) data toggle clear method.
Implement allocation of qTD chains.
2001-11-21 14:00:12 +00:00
augustss 6bba920516 Wrap dump routine prototypes in #ifdef USB_DEBUG 2001-11-21 13:44:47 +00:00
augustss ca0b46691f Mask correct interrupt after error interrupt. 2001-11-21 13:43:38 +00:00
augustss 02f41ec3e6 Mask the correct interrupt after a door bell interrupt. 2001-11-21 13:42:19 +00:00
augustss 0adc2bbba2 Implement bulk transfers. 2001-11-21 13:04:50 +00:00
augustss 2d72c2726c Add some interrupt processing. 2001-11-21 12:28:23 +00:00
augustss 4d4da7e06a Fix typo in comment. 2001-11-21 12:25:55 +00:00
augustss 1029005107 Pay more attention to if the HC is being unplugged. 2001-11-21 08:18:39 +00:00
itojun bf755aea42 make it compilable without OHCI_DEBUG 2001-11-21 05:52:50 +00:00
augustss c907a8fbbd Add missing } 2001-11-21 02:47:07 +00:00
augustss 4f7b354305 Set up control xfers.
Handle xfer timeouts.
Better debug messages.
2001-11-21 02:44:30 +00:00
augustss 28a6a57942 Use a task to perform the timeout abort so we have a process context when
sleeping.
2001-11-21 02:41:18 +00:00
augustss 5506bb0f06 Some more debug stuff. 2001-11-21 02:39:31 +00:00
augustss 2478d1b320 Cast some args to bitmask_snprintf(). 2001-11-21 02:38:35 +00:00
augustss b171d0908b Create a special kernel thread to run the usb short lived tasks (instead
of using the device discovery threads).
2001-11-20 23:53:26 +00:00
augustss 9716a5f26d Don't bother with interrupts when being disconnected. 2001-11-20 21:12:46 +00:00
augustss a8de831b24 Support port indicator light. 2001-11-20 16:25:35 +00:00
augustss 2f560c9410 Sanity check max packet lengths. 2001-11-20 16:09:01 +00:00
augustss 7679101a11 Add a comment. 2001-11-20 16:08:37 +00:00
augustss e5353fd3b5 Use longer reset for root hubs (as told in the spec). 2001-11-20 16:08:10 +00:00
augustss 8366f16a80 Don't wait for door bell interrupt when controller has been disconnected. 2001-11-20 14:28:44 +00:00
augustss 86e6ea35eb Update for new speed handling. 2001-11-20 13:50:07 +00:00
augustss a598bed92e Simplify async list handling. 2001-11-20 13:49:23 +00:00
augustss b38958f960 Use device speed in setup.
Simplify async list handling.
2001-11-20 13:49:07 +00:00
augustss 7e4459fe10 Keep track of device speed for USB 2.0. 2001-11-20 13:48:03 +00:00
augustss 482dbdf4e3 More USB 2.0 definitions. 2001-11-20 13:46:09 +00:00
augustss 2db9b8d2c8 Start of pipe open routine. 2001-11-19 02:57:16 +00:00
augustss 0f70418027 Add more fields to hardware structs.
Add memory allocation for various data structures.
2001-11-18 00:39:46 +00:00
augustss 1f6462461a Make it possible to report device speeds with ioctl(USB_DEVICEINFO). 2001-11-17 01:49:53 +00:00
augustss 25ffd2ae73 Regen. 2001-11-17 01:44:03 +00:00
augustss c434bdf8c7 Yet another device. 2001-11-17 01:43:40 +00:00
augustss b2b2b2b448 Implement port reset sequence correctly. 2001-11-16 23:52:10 +00:00
augustss f73c358f8c Add some more data structure defs. 2001-11-16 15:33:13 +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
augustss 07ea2e28cb Recognize port status changes.
Hand over low and full speed devices to companion controller.
2001-11-16 01:57:08 +00:00
augustss 122d2863d8 Add root hub emulation. 2001-11-15 23:25:09 +00:00
augustss b684cbc2a7 usbd_interface2device_handle() cannot fail. 2001-11-15 15:15:58 +00:00
augustss effc318eca Regen. 2001-11-14 17:50:44 +00:00
augustss 77a68c4bf2 Add another printer dongle. 2001-11-14 17:50:21 +00:00