Commit Graph

1009 Commits

Author SHA1 Message Date
augustss 4f325f2674 Implement what in Intel-speech is known as "bandwidth reclamation".
It means that we continously poll USB devices that have a pending transfer
instead of polling just once every ms.  This speeds up some transfers
at the expense of using more PCI bandwidth.
2000-08-13 16:18:09 +00:00
augustss 8cfcd021bd Take away some, add some. 2000-08-12 23:26:10 +00:00
augustss be1aad52d8 Regen. 2000-08-12 14:58:20 +00:00
augustss 807228a4d8 Make attach message correct for non-umass devices.
Handle RBC (a SCSI subset).
2000-08-12 14:52:44 +00:00
augustss 3fff1255ea Add some more vendors and devices. 2000-08-12 14:51:01 +00:00
augustss 124bec855a Minor whitespace change. 2000-08-12 14:35:20 +00:00
tv 2b3a50d3de %b -> bitmask_snprintf()
Because this code is shared, add a macro for bitmask_snprintf() that
should expand to the equivalent snprintf() on non-NetBSD systems.  This is
only used in ?HCI_DEBUG cases anyway.
2000-08-08 19:51:46 +00:00
drochner 78fa2d7e41 fix interrupt priority botch 2000-08-07 17:34:41 +00:00
augustss daff45a51a Regen. 2000-08-04 11:57:59 +00:00
augustss c54b0fde7a Add ATEN serial adapter. 2000-08-04 11:57:34 +00:00
augustss a119131555 Be a little more explicit and careful about setting links in TDs and QHs. 2000-07-23 19:43:37 +00:00
augustss 3aacf9101a Regen. 2000-07-17 13:07:21 +00:00
augustss 82b491eecc Some more products (from FreeBSD). 2000-07-17 13:06:54 +00:00
augustss 555fde1163 Fix reversed test in umass_activate(). Probably fixes PR 10520. 2000-07-06 07:11:18 +00:00
augustss feb8219648 Regen. 2000-07-03 01:07:25 +00:00
augustss 3c9acfbb29 Add some Alcor products. 2000-07-03 01:07:04 +00:00
mrg 261538ecac remove include of <vm/vm.h> 2000-06-28 16:39:25 +00:00
thorpej 6a6fdc8681 Kill SPLUSBCHECK -- it's not portable, and quite annoying on some
platforms which otherwise function just fine.
2000-06-24 04:12:53 +00:00
augustss 4f82723a61 Regen. 2000-06-19 14:58:37 +00:00
augustss e38812aaad Add XTNDAccess IrDA. 2000-06-19 14:58:02 +00:00
augustss 88e928528c Unswap functiona arguments that got swapped during ANSIfication. Now
mixer controls work again.
2000-06-19 11:43:48 +00:00
augustss fca2f40972 Regen. 2000-06-15 17:58:45 +00:00
augustss 032bdde358 Add Compaq's Personal Jukebox (I got one as a birtday present!) 2000-06-15 17:58:14 +00:00
thorpej 23ef490928 Deal with the fact that tsleep() may be a macro. 2000-06-07 00:33:51 +00:00
augustss 1c94b92bc4 Initialize pointer before doing free of it. 2000-06-06 11:36:21 +00:00
augustss c6ddc6009b Make it compile with USB_DEBUG. 2000-06-01 15:51:26 +00:00
augustss fff66007d9 Reorder a little. 2000-06-01 15:43:32 +00:00
augustss 5218e2a490 Improve some portability items. 2000-06-01 14:37:51 +00:00
augustss ed9486e158 Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.
2000-06-01 14:28:57 +00:00
augustss 7173e7efaf Add a comment. 2000-05-31 16:16:49 +00:00
augustss ca8d562f6e Be more careful when setting the alternate interface. 2000-05-31 16:15:49 +00:00
augustss 18cd73168e Be more careful when setting the alternate interface so we don't end up with
nothing set at all if it fails.
2000-05-31 16:14:42 +00:00
augustss 6731216c72 Rename a define. 2000-05-31 16:13:31 +00:00
augustss cedf73b36a Regen. 2000-05-31 16:12:29 +00:00
augustss b9406eb3e2 Add a Chuntex hub. 2000-05-31 16:12:08 +00:00
augustss d86618eb5a Implement the scsipi_getgeom method and guess the geometry of floppies
based on the number of sectors.
2000-05-31 09:17:13 +00:00
augustss 382a7af237 Don't print anything when detecting resume. 2000-05-30 16:56:54 +00:00
augustss 4f72f2f97d Regen. 2000-05-30 15:18:30 +00:00
augustss 6b0aea9254 Add TEAC floppy. 2000-05-30 15:17:18 +00:00
augustss 53f83c5533 Use attribute packed for on-the-wire data structures. 2000-05-30 10:10:17 +00:00
augustss e4217da6d0 As a safety, check that the controller is not suspended when we get
an interrupt.
2000-05-30 09:26:06 +00:00
augustss ea5a174495 Massage the SCSI commands when using the UFI protocol in a better way.
Now the Y-E Data Flashbuster floppy seems to work.

Thanks to Y-E Data for giving one to the project when I couldn't find
one easily.
2000-05-30 01:12:51 +00:00
jhawk 6513ba6e74 Make this compile with UHCI_DEBUG in the presence of
-Werror: uhci_dump is no longer static.
2000-05-28 22:02:05 +00:00
castor 9816b43753 regen 2000-05-20 06:30:13 +00:00
castor 773f9bb009 Add Geocast's vendor ID 2000-05-20 06:29:50 +00:00
thorpej f636538446 NULL != 0 2000-05-19 04:34:39 +00:00
soren 22ead9a824 Regen. 2000-05-14 15:18:33 +00:00
soren a2c48b9c79 Add a few devices. 2000-05-14 15:18:16 +00:00
thorpej 622e87734a Quiet some uninitialized variable warnings that do in fact look legitimate. 2000-05-08 18:28:46 +00:00
augustss 26f708a5a3 Handle the Linksys USB100H1 like the other Linksys adapters.
Restructure the code a little.
2000-05-06 20:38:59 +00:00
augustss fd58a6ae12 Regen. 2000-05-06 18:28:36 +00:00
augustss 13d8353ffc Add Linksys USB100H1, an Ethernet and HomePNA adapter. 2000-05-06 18:28:01 +00:00
mycroft d0d92c23d0 Use USBD_NORMAL_COMPLETION in the previous. 2000-05-03 18:21:36 +00:00
mycroft ffe599486c When emulating UHF_PORT_POWER for the internal hub, make sure to initialize
the status return value.
2000-05-03 18:14:49 +00:00
augustss 23bcab075a Don't request sense after INQUIRY. From FreeBSD & OpenBSD. 2000-04-28 21:34:05 +00:00
augustss 30c20f930f Change my email address. 2000-04-27 15:26:44 +00:00
augustss 91878e8679 Reorder some #defines. 2000-04-27 15:25:36 +00:00
augustss df70862e8c Insert (very conservative!) bus_space_barrier() calls at all register accesses.
The bus_space(9) man page says you've gotta have them...
2000-04-25 14:28:13 +00:00
augustss 74beeca710 Move the size of the mapped bus_space region into the bus independent softc. 2000-04-25 09:20:54 +00:00
augustss 4d0217d2c1 Remove item. 2000-04-23 23:21:32 +00:00
augustss 007a7dbfd8 Update with new files. 2000-04-23 23:19:36 +00:00
augustss 0e5c7f55af Regen. 2000-04-23 19:35:35 +00:00
augustss 23f3c0074f Sync with FreeBSD: add two more adapters. 2000-04-23 19:03:45 +00:00
augustss b12ed6c03b Make it possible to move a device to its unconfigured state by
using config #0.
2000-04-23 00:46:59 +00:00
augustss bc5e86601e Add an item. 2000-04-22 22:52:15 +00:00
augustss 3a27942ba8 Add a clarifying comment. 2000-04-22 22:50:44 +00:00
augustss 84f24d3c29 The D-link serial adapter lies about being self powered. It's obviously
bus powered.  How can we do power budgeting when the devices lie?
2000-04-21 21:02:44 +00:00
augustss 60bb0d050d Add some comments. 2000-04-21 20:58:56 +00:00
augustss 46fb8de93a Use a 255 ms interrupt interval even if the descriptor in the hub asks
for something else, because the spec says that it should be 255.
2000-04-21 19:51:43 +00:00
augustss 4379f92630 Make sure to read the full hub descriptor (including the deprecated field). 2000-04-21 18:57:40 +00:00
augustss 3d9d091685 Change the exact sequence of commands when a hub is attached to follow
Windoze more closely.  This makes more devices work.

After two years of doing USB work I've finally access to a USB protocol
analyzer.  Which means I should be able to mimic what Windoze does in
certain cases instead of just following the specs.  Following the specs
is not enough since the devices often don't.
2000-04-21 16:05:50 +00:00
augustss 878deae672 Add a define for some slack port power up time. 2000-04-21 16:01:31 +00:00
augustss 9fb474fcf0 Regen. 2000-04-21 15:59:43 +00:00
augustss f791a72b9c Change error reporting in port reset function. 2000-04-21 15:58:55 +00:00
augustss 3f08804668 Pretend we know how to turn on port power (it's always on). 2000-04-21 15:40:01 +00:00
augustss fdeba432d2 Add a comment about a non-obvious use of a #define. 2000-04-21 15:38:55 +00:00
augustss d744db2ea9 Add D-link serial adapter (made by someone else :). 2000-04-21 15:37:50 +00:00
augustss e1950d4ffa regen. 2000-04-20 23:40:27 +00:00
augustss 3e4e60beeb Add Zip 250. 2000-04-20 23:39:50 +00:00
augustss 173c535a95 Add one, remove some. 2000-04-19 16:17:45 +00:00
augustss 876b21e514 Add more items and reorganize. 2000-04-16 18:38:44 +00:00
augustss 6d6ad52fd4 Regen. 2000-04-15 15:57:59 +00:00
augustss f6b73a654c Add another camera. 2000-04-15 15:57:27 +00:00
augustss b6ef06e018 Add a file I forgot. 2000-04-14 18:15:47 +00:00
augustss 2ed37fcf5d Add driver for FTDI FT8U100AX serial adapter.
XXX This is still experimental and needs more work.
2000-04-14 14:51:22 +00:00
augustss 219f3c9ccf More debug. 2000-04-14 14:41:35 +00:00
augustss 1767c08cba Add a capability for pre/post processing on write/read. 2000-04-14 14:21:55 +00:00
augustss 3149043619 Add a driver for the Rio 500 MP3 player.
XXX This driver might go away again, since you can do it all with ugen.
XXX But this driver is compatible with the Linux driver so there are
XXX programs for it.
2000-04-14 14:20:02 +00:00
augustss 0839e2a0d9 Regen. 2000-04-14 14:15:41 +00:00
augustss 471d06cfbc Rename FUTURE to FTDI.
Add the funky little D-Link radio.
2000-04-14 14:14:48 +00:00
augustss 017ca78459 Make attach of ugen work as it should so product&vendor locators can be used. 2000-04-14 14:13:56 +00:00
augustss e44f0f1147 Support for SIGIO. 2000-04-14 14:12:47 +00:00
augustss eaaf682603 Fix a typo in a comment. 2000-04-14 14:12:11 +00:00
augustss e1f94170e5 Generate a diagnistic dump on "Host Controller Halted". 2000-04-14 14:11:36 +00:00
itojun ecb5f2e56a revisit in6_ifattach().
- be persistent on initializing interfaces, even if there's manually-
  assigned linklocal, multicast/whatever initialization is necessary.
- do not cache mac addr in the kernel.  grab mac addr from existing cards
  (this is important when you swap ethernet cards back and forth)
now ppp6 works just fine!

call in6_ifattach() on ATM PVC interface to assign link-local, using
hardware MAC address as seed.

(the change is in sync with kame tree).
2000-04-12 10:36:38 +00:00
augustss 40b25953db Add driver for Prolific PL2301/PL2302 host-to-host adapter. 2000-04-09 18:23:23 +00:00
augustss 8fb6cb9b81 Remove usused field. 2000-04-08 20:54:38 +00:00
augustss 2d88a5d886 Regen. 2000-04-08 20:35:13 +00:00
augustss e75e18b138 Add another ISD IDE adapter. 2000-04-08 20:14:00 +00:00
itojun d65678850d fix build of ucom. (static/non-static) 2000-04-08 01:22:26 +00:00
augustss ef57f37442 Regen. 2000-04-07 19:00:17 +00:00
augustss 4ca1044eb8 Add Prolific host-host adapter.
I'll write a driver in a few days.
2000-04-07 18:59:58 +00:00
augustss 3b05a69aa2 Remove a couple of Static that shouldn't be there. 2000-04-07 12:40:16 +00:00
augustss 9355847b78 Fix typos in comments. 2000-04-06 23:44:20 +00:00
augustss af0c0d535a Fix a bug in HID Pop handling. From UCHIYAMA Yasushi. 2000-04-06 22:58:32 +00:00
augustss 7859835446 Add another #if NATAPIBUS > 0 in case there is no atapibus attached. 2000-04-06 13:52:04 +00:00
augustss cf248f12dd Add some, remove some. 2000-04-06 13:33:47 +00:00
augustss a302716de4 Let the parent device of a ucom decide what size the read and write
buffers should be since it knows about the speed.
Increase the buffer size of uvisor.
XXX The uvisor is still pitifully slow.  There must be a problem somewhere.
2000-04-06 13:32:28 +00:00
augustss 1acb380bf7 Make it compile without USB_DEBUG. From Chris Jones. 2000-04-05 21:24:11 +00:00
augustss 1b535c32fc Make this driver actually work.
(Noone did any testing for me, so I had to buy a Handspring Visor myself.)
2000-04-05 11:12:48 +00:00
augustss 8b5373dd2e Use reference counting on the softc so detach doesn't blow it away prematurely. 2000-04-05 11:11:33 +00:00
augustss 36b5d25ca8 Make protocol message more accurate. 2000-04-04 20:16:47 +00:00
augustss a94b555441 Put a ratecheck on error messages from the interrupt pipe. 2000-04-04 20:16:19 +00:00
augustss 358b947b7b Correct a typo. 2000-04-03 13:40:05 +00:00
augustss d063047593 Enable QIC157 command set. Untested. 2000-04-03 12:31:34 +00:00
augustss dc3ce0b35e Enable UFI protocol. Still untested in NetBSD. Used by, e.g., Y-E Data
floppies.
2000-04-03 12:12:38 +00:00
augustss b9d50c36a7 Regen. 2000-04-03 12:10:04 +00:00
augustss e0b4887adf Add more vendors and devices. From FreeBSD and Nick Hibma. 2000-04-03 12:09:43 +00:00
enami 6442efb498 Make this file compiles under some condition:
- #if 0'ed out the umass_reset for now.
- some atapibus specific code is conditionalized by NATAPIBUS.
2000-04-03 03:56:49 +00:00
augustss e126f0d1b3 New and shiny version of the umass driver. This is a port of the new
FreeBSD umass driver by Nick Hibma <n_hibma@freebsd.org> and
MAEKAWA Masahide <bishop@rr.iij4u.or.jp>.
Improvements:
  uses asynchronous USB requests
  supports more transport protocols (Bulk-only and CBI)
  supports more command sets (SCSI and ATAPI)
Tested with Zip100 and Imation Superdisk.
2000-04-02 23:46:53 +00:00
augustss 60057aca5c Allow atapibus to be attached to umass. 2000-04-02 23:40:41 +00:00
augustss 0a425e1f3d Generate an error message if starting a transfer fails. 2000-04-02 21:25:41 +00:00
augustss 7311856f29 Add a delay before reading the number of ports from the controller to
avoid getting 0 from it.
2000-04-01 09:27:35 +00:00
hubertf ca4c16d936 Note that the Handspring Visor is a Palmpilot compatible PDA. 2000-03-31 13:08:01 +00:00
augustss d3908431bb Turn on UVISOR_DEBUG with USB_DEBUG. 2000-03-30 17:04:47 +00:00
augustss e8f6613abe Add driver for the Handspring Visor.
This code probably doesn't work, because it has not been tested.
Despite several pleas for testing there doesn't seem to be any Visor owners
out there.  Perhaps it will get tested if it's in -current?

Anyway, the code can at least serve as a template for how to make a USB driver
that shows up as a tty.
2000-03-30 16:56:19 +00:00
augustss 2c3137dc38 Add forgotten OpenBSD fix. 2000-03-30 16:38:55 +00:00
augustss 4fe9287221 Two more OpenBSD fixes. 2000-03-30 08:53:30 +00:00
augustss dd7160dcba Afew more OpenBSD portability fixes. 2000-03-30 00:18:17 +00:00
augustss 1b57fb1495 Remove some unused prototypes. 2000-03-29 18:55:36 +00:00
augustss 96806cb7ea Fix a buglet. 2000-03-29 18:30:46 +00:00
augustss a25e27e1eb Some OpenBSD portability fixes. 2000-03-29 18:24:52 +00:00
simonb 365daa37be Remove redundant decl of cold - it's in <sys/kernel.h>. 2000-03-29 03:59:43 +00:00
augustss 023c506a5e Take off an item. 2000-03-29 02:17:42 +00:00
augustss 61db1b8e46 *SIGH* Revert back to the old method of aborting xfers.
I had tested the new stuff for two months now, but as soon as I commited
it the problems started to appear.  Murphy, no doubt...
2000-03-29 01:49:13 +00:00
augustss 9a386a047a Do not use all xfers at the same time, this can cause problems in the HC
drivers.
2000-03-29 01:47:25 +00:00
augustss 7e7ceecd2b A first stab at support for isochronous transfers. 2000-03-29 01:46:26 +00:00
augustss 5e754a177b Do not accept new xfers for queuing while a pipe is aborting. 2000-03-29 01:45:20 +00:00
augustss f606c26834 Be more defensive in a DIAGNOSTIC test. 2000-03-28 17:07:04 +00:00
augustss 37e4821c88 The list is growing... 2000-03-28 10:54:35 +00:00
augustss c2f90d0d43 Correct a debug message. 2000-03-28 10:53:59 +00:00
augustss 9609f4caa2 Add a comment. 2000-03-28 09:48:25 +00:00
augustss 3316da3988 Another patch for xfer abort...
XXX The current xfer queueing and aborting semantics should really
XXX be changed.  It cannot be implemented in a sane way on UHCI.
XXX One day when I have lots of time I'll redesign it...
2000-03-28 09:47:10 +00:00
augustss 28a87e2fdb Use default timeout for transfers. 2000-03-27 22:44:01 +00:00
augustss 568b4d8190 Be a little more careful when aborting.
Preallocate some TDs for large buffers.
2000-03-27 22:42:57 +00:00
augustss 8456fa4709 Add a flag for umass debugging. 2000-03-27 22:40:48 +00:00
augustss fc72e72d7d Change (almost) all static to Static. The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
augustss 2341e5679e Don't mess with QH in bulk abort for the moment. 2000-03-27 09:41:36 +00:00
augustss 8e7f7d2d69 Keep free block statistics. 2000-03-27 08:27:03 +00:00
augustss 9e5b3b729c Remove some debug nonsense. 2000-03-27 08:01:09 +00:00
augustss 9ffe849791 Make it compile without DIAGNOSTIC. 2000-03-27 07:39:48 +00:00
augustss a52e96b1eb Fix typo. Found by Aaron Campbell <aaron@cs.dal.ca>. 2000-03-26 21:42:54 +00:00
augustss a9643a2075 Regen & adjust name. 2000-03-26 15:08:43 +00:00
augustss 59310c8294 Adjust the name of the Kawasaki Ethernet adapter. 2000-03-26 15:08:02 +00:00
augustss 5018b862c1 Remove one, add one. 2000-03-25 18:12:20 +00:00
augustss 3fded57690 Rename and move around callout handles to make it more sane.
Add some DIAGNOSTIC.
Fix buglet in isoc abort on UHCI.
2000-03-25 18:02:32 +00:00
augustss b7eeb17414 Change the test for cold boot slightly to avoid a long busy wait with UHCI. 2000-03-25 17:59:34 +00:00
augustss 34bd644399 The Wacom CT0405U delivers strings, but they are wrong. Don't use them. 2000-03-25 17:30:00 +00:00
augustss 9893633d57 Improve uhci_dump_ii(). 2000-03-25 07:23:12 +00:00
augustss df370f0e48 More DIAGNOSTIC.
Initialize a callout handle I forgot.
2000-03-25 07:13:05 +00:00
augustss cefdf1aee3 Add more DIAGNOSTIC when aborting isoc. 2000-03-25 00:11:21 +00:00
augustss 6aeaa39b1b GC an unsued field and add some DIAGNOSTIC in xfer. 2000-03-25 00:10:19 +00:00
augustss df8025fec8 Two major changes:
Make each xfer have its own intr_info.  This is necessary if we want
to queue multiple xfers on an endpoint.  This should get rid of the
(mostly harmless) DIAGNOSTICs about intr_infos (not) being done.

  Change (again!) how xfers are aborted.  Aborting a TD is a nightmare
on the braindead UHCI controller.  (Unless you stop the HC, thereby
losing isoc traffic.)  Hopefully I got it right this time.
2000-03-24 22:57:58 +00:00
augustss 67113875f3 Rearrange to indicate what should be done before 1.5 2000-03-24 22:17:56 +00:00
augustss 81c03592ef Rename bulk only protocol (following FreeBSD). 2000-03-24 22:16:42 +00:00
augustss c06b1c683d Remove unused macros. 2000-03-24 22:13:23 +00:00
augustss 0069eba19b Some cleanup and renaming of the callouts used in USB drivers. 2000-03-24 22:03:28 +00:00
augustss a01d316027 General code cleanup. 2000-03-24 13:08:28 +00:00
augustss 1c6f9cbdf4 Fix a comment. 2000-03-24 13:03:21 +00:00
augustss 2e85384321 Some more debug when selecting sample rate. 2000-03-24 13:02:00 +00:00
thorpej 6a6358ed5c Shake out some bugs from the callout changes. 2000-03-23 18:59:10 +00:00
thorpej fc96443d15 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
augustss 0ef19aad57 Regen. 2000-03-20 01:31:29 +00:00
augustss 06bb856348 Some new devices. From FreeBSD. 2000-03-20 01:31:10 +00:00
augustss ebd6f5f498 Add another item. 2000-03-20 00:42:21 +00:00
augustss 9a34877094 Clean up code a little. 2000-03-20 00:41:55 +00:00
augustss eb6e78ce98 Make sure all packets (except the last) have the maximum packet size even
when using multiple TDs.
2000-03-20 00:37:00 +00:00
augustss 89de970942 Switch method for determing if we are cold booting. The driver now works
with OHCI adapters.
2000-03-20 00:27:11 +00:00
augustss 94afb61b8b Remove some items! 2000-03-19 22:28:02 +00:00
augustss 9762d78a52 Make control transfer of over 8K possible by using a chain of TDs. 2000-03-19 22:24:57 +00:00
augustss c6eb2d324c Add ioctl USB_SET_REPORT for uhid. This will allow manipulating the
feature items.
2000-03-19 22:23:28 +00:00
augustss 670d533d54 Keep the bit position even when the report descriptor says POP. 2000-03-17 18:09:17 +00:00
augustss cdc4484e47 Regen. 2000-03-16 21:51:45 +00:00
augustss 94f5fe4392 Add Altec ADA70 speakers and have them recognized despite announcing an
old rev of the USB audio spec.
2000-03-16 21:51:23 +00:00
uch 34329d9139 regen. 2000-03-16 18:28:11 +00:00
uch 348fff03fb add I/O DATA USB-ET/TX USB ethernet adapter. 2000-03-16 18:27:21 +00:00
tsutsui 6e0e3d609f Replace LE() macro with le32toh()/le32toh(). 2000-03-16 12:40:51 +00:00
augustss c99c03da4d Make the USB event queue longer. Mine overflows before the (user-land)
event handler has started.  But then I have about 25 devices connected. :)
2000-03-16 00:46:38 +00:00
augustss 1a9f0619fd Fix thinko in the handling of FORCE_SHORT_XFER so that it actually
transfers a 0 length package instead on munging the whole transfer.
The aue driver works now.
2000-03-16 00:41:50 +00:00
augustss 499e5cba01 Fix some uninitialized variables. From Krister Walfridsson <cato@df.lth.se> 2000-03-15 22:40:30 +00:00
augustss 1e1f1f3b3b Make sure the USB event thread discovers all devices first time it call
usb_discover().
It should now be possible to have the root NFS mounted over a USB Ethernet
adapter.
2000-03-14 23:13:12 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
augustss e2850da406 Regen. 2000-03-13 21:17:32 +00:00
augustss 9f0c40cff1 Add Palm serial adapter. 2000-03-13 17:14:27 +00:00
nathanw a7f01b4816 Fix DMAADDR():
Return the mapped address of the block, not the kernel address.
A uhci device now finds devices on my pc164.
2000-03-12 23:10:29 +00:00
augustss b8b53d87db Avoid accessing the device if it is dying. 2000-03-12 21:57:50 +00:00
augustss e0d3ede01c Get the status right when a polled transfer times out. 2000-03-08 15:34:10 +00:00
augustss 07574c3239 Add a debug message. 2000-03-08 15:33:38 +00:00
augustss 45f32a77f5 Clean up code a little and add some more debug messages. 2000-03-08 15:33:24 +00:00
thorpej a6f861574a No longer necessary to futz with ifp->if_baudrate here. 2000-03-06 21:02:00 +00:00
augustss 41aade98ba Generate better error codes on bulk write. 2000-03-06 20:59:17 +00:00
augustss 119a2a3a80 Remove irrelevant comment. 2000-03-06 20:58:39 +00:00
augustss e0cb11e30e Use macros from usb.h instead masking out bit explicitely. 2000-03-06 20:58:18 +00:00
augustss 2dda67d4a2 Fix typo in argument to ratecheck(). 2000-03-02 15:49:29 +00:00
augustss d6c4ac7ff2 Use ratecheck() to limit error messages on disconnect.
Break out some common functionality.
2000-03-02 12:37:50 +00:00
augustss 3218dd992d Protect the use of bpf_mtap so bpf isn't needed.
aue: Limit the number of error messages at disconnect by using ratecheck().
2000-03-01 19:00:51 +00:00
augustss 7d05674ba7 Distinguish between device and interface classes.
(I finally found a document that said that they were different.)
2000-02-29 21:37:00 +00:00
hubertf a6a5be8ccf This driver also handles the 3COM 3COM HomeConnect Ethernet USB Adapter
(3C460), rev 1.00/2.05
2000-02-29 19:08:09 +00:00
hubertf b95fbdaeb7 Regen 2000-02-29 19:07:33 +00:00
hubertf eff003f7ce add product ID for 3COM 3COM HomeConnect Ethernet USB Adapter (3C460),
rev 1.00/2.05
2000-02-29 19:06:40 +00:00
augustss 10d9610df8 Make this driver actually work in NetBSD. From Castor Fu <castor@geocast.com> 2000-02-27 22:15:24 +00:00
augustss 739151c214 Regen. 2000-02-27 20:44:22 +00:00
augustss 741c59a303 Add the QuickShot Strikepad game-pad. 2000-02-27 20:43:53 +00:00
augustss 9651e60835 Fix typos in my last commit that caused the driver to panic.
Change some (unrelated) debug messages.
2000-02-22 22:59:49 +00:00
augustss 009856b631 Save and restore a couple ofregisters in the power hook in case BIOS doesn't. 2000-02-22 16:03:42 +00:00
augustss 9056664327 Prepare a little for having USB interrupt processing done outside the hard
interrupt level (in a thread or a softintr).
No real soft processing done yet.
2000-02-22 11:30:54 +00:00
augustss 6cc37002ad Fix (mostly harmless) typo. 2000-02-22 11:25:06 +00:00
augustss 2eda3cf829 Better debug info. 2000-02-22 11:24:22 +00:00
jdolecek 5f0b3b1510 usbd_devinfo_vp(): search the know devs array also if the device
doesn't return product description (e.g. Kye's Genius NetScroll
	mouse returns vendor, but not product); the strings
	returned by device are still preferred to those in the array, though
2000-02-20 14:45:05 +00:00
jdolecek 6b93b03665 regen 2000-02-20 14:39:28 +00:00
jdolecek e710e0dfa1 Add Kye's Genius NetScroll mouse
XXX Should the name be just "NetScroll mouse" ? Kye seems to be manufacturer
XXX for the mouse licenced from Genius.
2000-02-20 14:37:48 +00:00
augustss 6fa8665eeb Handle detach that happens before attach has finished. (Reported by mycroft.) 2000-02-17 18:42:21 +00:00
augustss 1955c335af Regen. 2000-02-17 16:30:44 +00:00
augustss 536b31a5c8 Add Sony PCGA-UMS1 mouse. 2000-02-17 16:30:11 +00:00
mycroft f7ad1af2b5 Use bpf_mtap() correctly. 2000-02-17 05:41:41 +00:00
augustss b223c00cee Avoid linker error if no PHY is attached. 2000-02-14 20:29:54 +00:00
augustss 9558d7b27b Regen. 2000-02-13 23:10:22 +00:00
augustss a39279da39 Add a bunch of devices. 2000-02-13 23:10:02 +00:00
augustss 0b2e81991d Avoid panic when a non-working hub is detached. 2000-02-12 23:44:16 +00:00
augustss d3fb7161d2 Regen. 2000-02-12 22:02:01 +00:00
augustss b4fac8c7d0 Add Microsoft Internet Keyboard Pro. 2000-02-12 22:01:31 +00:00
augustss 523d157a05 Regen. 2000-02-12 15:02:56 +00:00
augustss a79d73d045 Add Corega FEther adapter. From PR 9394. 2000-02-12 15:02:21 +00:00
augustss 76c14cd322 Don't stall the control pipe on error. 2000-02-08 18:46:03 +00:00
augustss e922214fb2 Use NULL instead of 0. 2000-02-08 18:45:27 +00:00
augustss e0c519464a Add methods for ucom to call back on open/close. 2000-02-08 09:18:01 +00:00
augustss de5a3532be Fiddle with some PHY bits on the D-Link adapter as well. From FreeBSD. 2000-02-02 20:06:55 +00:00
thorpej eed75dbc26 Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass
flags down from the parent to child vi mii_attach().
2000-02-02 17:09:38 +00:00
augustss cee0dfa2d5 Add rnd_source. 2000-02-02 13:22:07 +00:00
augustss c9d8358135 Generate usb events on attach and detach.
Clean up detach a little.
2000-02-02 13:21:25 +00:00
augustss 3a1229e779 Generate usb events on attach and detach. 2000-02-02 13:20:59 +00:00
augustss aae9ac7e11 Generate usb events on attach and detach.
Handle rnd stuff correctly.
2000-02-02 13:19:44 +00:00
augustss 4b93911b25 Generate usb events on attach and detach. 2000-02-02 13:18:45 +00:00
augustss b10d6a6fc0 Support detach. 2000-02-02 11:42:29 +00:00
thorpej 84dc99fdea Bring some order to the chaos which was the MII code function naming
"conventions".
2000-02-02 08:05:26 +00:00
augustss 481e8339dc Change the USB event mechanism to include more information about devices
and drivers.  Partly from FreeBSD.
2000-02-02 07:33:59 +00:00
thorpej db8dc44033 Add support for detaching the interface. 2000-02-01 22:53:14 +00:00
augustss e7f114ba6d Make sure to use delay() in usb_delay_ms() while cold booting. 2000-02-01 17:46:17 +00:00
augustss 6393288539 Put some #ifdefs around power and shutdown hooks. 2000-02-01 05:42:52 +00:00
augustss daa36b1b58 Rename TAILMASK to HEADMASK, since it really masks the head pointer.
From FreeBSD.
2000-01-31 22:35:13 +00:00