Commit Graph

1575 Commits

Author SHA1 Message Date
augustss a7dea23b26 Regen. 2002-01-25 22:54:53 +00:00
augustss 6fd474bf85 Fix typo pointed out by Manuel Bouyer. 2002-01-25 22:54:34 +00:00
ichiro e00f8610ea regen 2002-01-22 03:17:28 +00:00
ichiro c1227aa54e supported RATOC Systems REX-USB60 2002-01-22 03:13:28 +00:00
ichiro 9684a618c1 add product
RATOC Systems USB serial adapter REX-USB60
2002-01-22 03:12:18 +00:00
augustss 12f71ce4b8 Regen. 2002-01-21 11:20:42 +00:00
augustss 8f9166873c Add some new devices. 2002-01-21 11:20:25 +00:00
tsutsui 448d063b57 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-14 13:23:36 +00:00
tsutsui e6f8529d26 Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:58:16 +00:00
drochner db154a4d20 "attach radio at radio":
using one word as both attribute and device doesn't work well,
radio.c is pulled in even with no such device in the configuration,
and the kernel doesn't link due to missing "radio_cd".
So call the attribute "radiodev" to avoid confusion.
2002-01-07 17:44:42 +00:00
augustss f854b2521f Add a DIAGNOSTIC check. From FreeBSD. 2002-01-03 22:20:45 +00:00
augustss 501071c88f Correct the frequency calculation. 2002-01-03 21:52:26 +00:00
augustss f1ee77f0c3 Add USTIR_DEBUG. 2002-01-03 18:57:36 +00:00
augustss eb62bf638c Add the ustir driver, for SigmaTel STIr4200 USB/IrDA Bridge.
Written by David Sainty <David.Sainty@dtsp.co.nz>.
2002-01-03 18:54:31 +00:00
augustss e4552bb657 Add a comment. 2002-01-02 22:44:44 +00:00
augustss 68d53cd694 Fix typo in last commit. 2002-01-02 20:58:12 +00:00
augustss f7839315fb Some more usb_proc_ptr changes.
Also some minor stylistic changes.
2002-01-02 20:55:58 +00:00
augustss cee8ba6db9 Get rid of a few stray __P(). 2002-01-02 17:20:09 +00:00
augustss b99cd0e9f5 More whitespace fixes from FreeBSD. 2002-01-02 16:20:14 +00:00
augustss c572876ecb Fix another descriptor parsing bug. Thanks to Tero Kivinen for
patiently supplying me with debug output.
2002-01-02 11:10:50 +00:00
augustss 71dd2d73a6 Fix typos. 2002-01-02 03:47:35 +00:00
augustss 1d26d9e5fd Move debug define.
Remove some cruft.
Update with some stuff from Warner Losh's driver.
2002-01-02 03:44:56 +00:00
augustss f63f2e4dfe Add udsbr(4), a D-Link DSB-R100 FM radio (untested). 2002-01-02 03:21:36 +00:00
augustss 371722006a Add a missing subclass definition. 2002-01-01 14:23:37 +00:00
augustss cec9735688 Delay bus enumeration a little in case the controller is a companion
controller.  This way the main controller can gain ownership of the port
before enumeration starts.
2001-12-31 15:55:51 +00:00
augustss d8e5a1dc07 Dump enpoint number instead of endpoint index. 2001-12-31 15:54:27 +00:00
augustss 88da42185c Don't try to deactivate child if we have no bus yet. 2001-12-31 12:52:50 +00:00
augustss 0498c38d3d Whitespace fixes (from FreeBSD). 2001-12-31 12:37:13 +00:00
augustss 637dc4b2fe Change xfer abort to wait for the softintr to run. 2001-12-31 12:20:35 +00:00
augustss 096f451f64 Change abort slightly.
Change debug output.
2001-12-31 12:16:57 +00:00
augustss f1397b7e37 Dump more of the command. 2001-12-31 12:15:46 +00:00
augustss 152efb1a0e Make a typedef for struct proc to make portingeasier. 2001-12-31 12:15:21 +00:00
augustss d14e739b92 Don't allow setting the configuration when an endpoint is open. From
FreeBSD.
2001-12-31 11:56:37 +00:00
augustss 0a3269865e Only clear stall if endpoint is stalled. From FreeBSD. 2001-12-31 11:54:06 +00:00
augustss ff21b251a0 Make sure we don't have any pending softintrs when entering polling mode.
Thanks to Darrin for finding and fixing this problem when using USB
keyboards in DDB.
2001-12-30 20:26:59 +00:00
augustss 776b0e7851 A little more debug. 2001-12-30 19:37:43 +00:00
augustss 70dea46276 Fix typo. 2001-12-30 19:22:28 +00:00
augustss dd4b4280f7 Add new scanners to the table.
(The scanners don't actually have to work to be in the uscanner table,
this is how Linux does it and uscanner is just there because Linux has it.)
2001-12-30 11:13:22 +00:00
augustss fb4d205cd6 Regen. 2001-12-30 11:08:19 +00:00
augustss 095e2b87e3 Fix typo in last commit. 2001-12-30 11:01:44 +00:00
augustss bdbdfed4ec Add some missing files. 2001-12-30 11:01:24 +00:00
gehenna 7a22165e1c fix product ID 2001-12-30 05:12:36 +00:00
gehenna b48ed7ad6d regen 2001-12-30 05:11:29 +00:00
gehenna e9ab191fc3 Add some vendor/product IDs (from FreeBSD) 2001-12-30 05:09:50 +00:00
augustss 5a31e4e8f8 Make the driver a little less talkative on errors. 2001-12-29 20:50:16 +00:00
augustss 3850573d96 Remove garbage. 2001-12-29 18:57:16 +00:00
augustss c19b7e5c1b Be more paranoid about input sizes. 2001-12-29 18:56:52 +00:00
augustss 5db54303c8 Reset global count value properly. 2001-12-29 18:56:20 +00:00
augustss 198e193c28 Don't clear global report values when reporting an item. 2001-12-29 17:48:29 +00:00
augustss 93f9b36aad Add a debug message. 2001-12-29 16:15:42 +00:00
augustss 496dc72437 Add some definitions from the USB OTG (On The Go) spec. 2001-12-29 15:44:11 +00:00
augustss 9dd24c8a92 Regen. 2001-12-29 14:08:02 +00:00
augustss 5f958aabb7 Fix a typo. 2001-12-29 14:07:45 +00:00
augustss 8164bd8bae Move some USB device quirks to the umass_quirk table. 2001-12-29 14:06:18 +00:00
augustss 414b3c7766 Always set the PQUIRK_ONLYBIG quirk for SCSI devices. 2001-12-29 13:52:21 +00:00
augustss 276b009425 Introduce a field, busquirks, in the umass quirk table that is passed
directly to the quirk field for the bus.
2001-12-29 13:46:23 +00:00
augustss 59473972d2 Only pull in HID processing if a driver needs it. 2001-12-29 10:50:55 +00:00
augustss 750a5959b8 Add some missing scan code translations. Docs from Microsoft via Perry Metzger. 2001-12-29 02:53:41 +00:00
augustss 935b0481a9 Introduce an extra driver level for HID devices, uhidev. This uhidev driver
attaches to the hub, and HID drivers (ums, ukbd, and uhid) attach to
uhidev.  The reason for this change is that some HID devices report multiple
components (like a keyboard and a mouse) using the same interface, but with
different report identifiers.  The report identifier can be specified with
a locator for the HID drivers.
Furthermore, change the ukbd driver to handle other formats than the boot
protocol.
2001-12-28 17:32:36 +00:00
augustss f690fc0845 More DIAGNOSTIC. 2001-12-28 00:21:26 +00:00
augustss 3bf49b584d Add some more #defines. 2001-12-28 00:20:24 +00:00
augustss 04ec4ba316 Add some DIAGNOSTIC stuf that I forgot. From Nate Williams. 2001-12-27 18:48:28 +00:00
augustss f8e03bd53c Change some DIAGNOSTIC #defines. 2001-12-27 18:43:46 +00:00
augustss 0df9b7654d ANSIfy. 2001-12-27 11:28:01 +00:00
augustss d0f9a76506 Update a comment. 2001-12-27 11:27:11 +00:00
augustss 1f003f1c43 Name collection types. 2001-12-27 11:25:47 +00:00
augustss 81b818b421 Add usbd_get_protocol(). 2001-12-27 11:24:42 +00:00
augustss 12560718c5 Files I forgot to remove in last commit. 2001-12-27 11:23:56 +00:00
cjs 80c0f36acc Re-make these after usbdevs update. 2001-12-26 07:18:36 +00:00
cjs 2d1b70cd08 Add ID for memory stick slot in Sony Clie running PalmOS 4.0. This may also
be the same for the PalmOS 3.5 versions, but I can't test that.
2001-12-26 04:32:39 +00:00
augustss 0228f218d3 Add UISDATA_DEBUG. 2001-12-24 21:37:52 +00:00
augustss 213baeaad6 Use the new USB_PRODUCT_ANY match. 2001-12-24 21:36:54 +00:00
augustss bfc3660fb1 Add some more DIAGNOSTIC tests.
Make usb_match_device() match on USB_PRODUCT_ANY.
2001-12-24 21:36:15 +00:00
augustss c33e730dd9 Get rid of the transfer_speed nonsense to calculate the timeout.
We get passed a timeout from the upper layer which is what matters.
2001-12-24 19:24:33 +00:00
augustss ab7b323efa Add a preliminary version of a driver for In-System Designs non-standard
ATA-over-BulkOnly protocol.  The ISD chip can be found, e.g., in the
Archos MP3 player.
The driver still lacks real error handling.
2001-12-24 13:43:24 +00:00
augustss 45fc7e27e9 Regen. 2001-12-24 13:40:50 +00:00
augustss 0d60061a8b Add some more In-System based adapters. 2001-12-24 13:40:31 +00:00
augustss 56b5867371 Make the separation between wire protocol (umass.c) and command protocol
(umass_scsipi.c) more distinct.
It is now possible to add new command protocols with a minimum of change.
The umassbus.[ch] files have been renamed umass_scsipi.[ch] since this
reflects their purpose better.
2001-12-24 13:25:52 +00:00
gehenna e1839209b8 Add new quirk: NO_REQUEST_SENSE
Submit by: Dave Sainty
2001-12-22 13:21:59 +00:00
augustss 3e919c40c7 Regen. 2001-12-21 23:37:41 +00:00
augustss 72d569430d Fix typo, pointed out by Nathan Binkert. 2001-12-21 23:37:18 +00:00
augustss c6107a12f8 Add UIRDA_DEBUG. 2001-12-20 17:41:32 +00:00
augustss b2a9a2993d Move utility routine from uirda.c to usbdi_util.c. 2001-12-18 14:50:01 +00:00
ichiro 57957526e0 Uoo
Make it compile.
2001-12-17 14:34:37 +00:00
ichiro 1b0449d255 support BREAK function,
keep a value of the last LCR.
2001-12-17 14:31:02 +00:00
ichiro d5f3329501 In BREAK, the value of LCR is held. 2001-12-17 14:19:39 +00:00
gehenna 7cd101a6ca Introduce the new umass quirk table.
Discussed with augustss.
2001-12-17 12:16:14 +00:00
ichiro 0a1465a39c handle vendor and product lookup with common routine 2001-12-16 15:11:19 +00:00
augustss c70fc55cba Add a hack for ScanLogic SL11R IDE adapter. From FreeBSD. 2001-12-15 00:26:14 +00:00
augustss 3a31906841 Regen. 2001-12-15 00:25:00 +00:00
augustss 4a4ae0b6b7 YAD. 2001-12-15 00:15:01 +00:00
augustss 18c6adb0b6 YAD (Yet Another Device) 2001-12-15 00:07:45 +00:00
augustss f79701e3fa Regen. 2001-12-14 23:57:00 +00:00
augustss 154a59571d Add SS1001. 2001-12-14 23:56:42 +00:00
augustss 356c54687b Integrate fix from PR 10155.
Add ACCTON SS1001.
2001-12-14 23:56:21 +00:00
augustss 74a0c5db97 Remember to add header byte to length.
Use fewer magic constants.
(The driver works now.)
2001-12-14 15:44:04 +00:00
augustss 342a82f2dd Start read at open.
Don't send new header when nothing changes.
(But uirda is still not working.)
2001-12-14 13:07:33 +00:00
augustss aa89e69702 Don't reallocate I/O buffers. 2001-12-14 12:08:14 +00:00
augustss d787f49ee6 Fix descriptor definition bug.
Clear endpoint stall on error.
2001-12-14 12:02:53 +00:00
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