summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Correct URL to UHCI spec.jsg2007-04-011-2/+2
| | | | From dunceor@gmail.com
* Reapplication of rev 1.49.pascoe2007-03-221-2/+7
| | | | | | | | Save SOF (frame timing adjustment) before the very first host controller reset, rather than at suspend/resume, otherwise any BIOS inserted value is lost immediately. ok dlg@
* Backout pascoe@'s last USB change because it page faults at attachmentmglocker2007-03-181-7/+2
| | | | | | | | | time. Chris; Get your shiz fixed and tested for the next time. We have better todo then wasting our time by backing out untested stuff. OK deraadt, OK ckuethe
* Save SOF (frame timing adjustment) before the very first host controllerpascoe2007-03-181-2/+7
| | | | | | | reset, rather than at suspend/resume, otherwise any BIOS inserted value is lost immediately. ok dlg@
* In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesmiod2006-06-231-2/+2
| | | | | | something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
* Save and restore the data toggle value when a pipe to an endpointpascoe2006-05-311-2/+3
| | | | | | | | | | | | | | is closed and then reopened. This may be necessary now that we no longer clear endpoint stalls every time a pipe is opened. Previously we could assume an initial toggle value of zero because a clear-stall operation resets the device's toggle state. Derived from work in FreeBSD. This is most likely to affect devices like printers, which open pipes for short periods of time and close them again. ok dlg@
* Fix a comment, remove a stray variable assignment.pascoe2006-05-291-3/+2
|
* Only do the software part of an abort if we are dying.pascoe2006-05-291-1/+2
|
* Attach routines can fail before calling *hook_establish(), and theykrw2006-05-221-3/+5
| | | | | | | | often rely on the detach routine for cleanup. So be consistant and careful by checking for a NULL hook before calling *hook_disestablish in detach routines. ok mickey@ brad@ dlg@
* implement outgoing interrupt pipes, lets my creative voip blaster workjolan2006-04-211-4/+15
| | | | from freebsd, ok dlg@
* Allow strings descriptor 0 to be fetched. It's the default language index.brad2005-12-031-1/+4
| | | | | | From augustss NetBSD ok dlg@
* Move contents of sys/select.h to sys/selinfo.h in preparation for amillert2005-11-211-2/+2
| | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
* More typos (especially indicies -> indices), checked with jmc@miod2005-11-151-2/+2
|
* Make sure we don't enable host controller interrupts until allbrad2005-10-041-3/+3
| | | | | | | | initialization is finished. From augustss NetBSD ok dlg@ pascoe@
* fix for isochronous pipes:damien2005-04-191-4/+3
| | | | | | | | xfer's busy_free status can be XFER_ONQU when uhci_device_isoc_done() is called. this happens when the xfer is queued in the driver supplied callback function that is called before uhci_device_isoc_done(). ok dlg@
* Handle all types of interrupts when operating in polled mode.dlg2004-11-111-3/+3
| | | | from Danovitsch@vitsch.net
* from netbsd, uhci.c revision 1.175, 1.179, 1.181dlg2004-08-111-5/+4
| | | | | | | | | | | | log message for 1.175: Tweak a debugging printf(). log message for 1.179: Make one message dependent on ohcidebug, so it doesn't interfere with polled operation; e.g. when entering a root device or in DDB. log message for 1.181: typo in comment
* from netbsd, uhci.c revision 1.180dlg2004-08-111-3/+1
| | | | hcpriv is not actually used here. Remove references to it.
* from netbsd, uhci.c revision 1.178dlg2004-08-111-3/+5
| | | | | Interrupt descriptors might become invalid while being processed in uhci_check_intr - so remember their next pointer before calling it.
* from netbsd, uhci.c revision 1.176dlg2004-08-111-2/+11
| | | | | Ignore a CRCTO error on a SETUP transaction in combination with STALLED or NAK. This fixes problems with the GL641.
* from netbsd via loki@animata.netderaadt2004-07-111-2/+2
| | | | | | uhub.c revision 1.65, ohci.c revision 1.146, uhci.c revision 1.177 Use the correct wValue to get hub desriptors. Also, make wValue checks of root hub codes less strict.
* Remove useless ``elm'' argument from the SIMPLEQ_REMOVE_HEAD macro.grange2004-05-041-3/+3
| | | | | | This matches our SLIST behaviour and NetBSD's SIMPLEQ as well. ok millert krw deraadt
* correct function names; from NetBSD.fgsch2003-08-231-12/+12
| | | | krw@ and tdeval@ ok.
* Sync USB code with NetBSD.nate2003-07-081-103/+258
| | | | This includes numerous fixes and paves the way for usb 2.0 support.
* fix documentation links from netbsdnate2003-05-191-2/+2
|
* Remove more '\n's from panic() statements. Both trailing and leading.krw2002-10-121-7/+7
| | | | Diff generated by Chris Kuethe.
* kill trailing whitespacenate2002-07-091-62/+62
|
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-171/+126
|
* Sync ulpt driver with NetBSDnate2002-05-071-126/+171
|
* Check result from malloc(9) when using M_NOWAIT. nate@ oknordin2002-01-101-1/+3
|
* Synchronize usb code with NetBSD.nate2001-10-311-46/+74
|
* interrupts cannot happen beforemickey2001-06-121-2/+1
| | | | | | | | | | | | | | *hci cannot receive interrupts before it has been initialized. this was changed to accomodate the pcibios strategy change back in pre-2.9 times since *hci_init enables interrupts at it's end and thus unmapped pci interrupt hangs the machine in the endless loop trying to deliver it (and no hci handler to ack it). this new way we disable interrupts by hands before we map 'em on pci and thus ensure that they will not crash an uninitialized *hci which, in turn, will run right after the interrupt map/establish and by the time it enables *hci interrupts all gonna be just fine. please allow us to end this stretched remark for cvs is getting a power outage in less than 20 minutes.
* Sync with NetBSD. Tested with a USB keyboard, USB mouse, and three differentaaron2001-05-031-8/+10
| | | | kue(4) Ethernet devices.
* Avoid dereferencing a null pointercsapuntz2001-03-251-4/+2
|
* Another USB sync with NetBSD. We are still lacking an up-to-date umass(4)aaron2001-01-281-13/+39
| | | | | | driver. I would appreciate it if someone with the hardware looked into it. I also have to take a closer look at changes to the USB Ethernet drivers, as well as import some drivers we are missing (uftdi, if_upl, yap, etc.)
* Avoid repeated 'host controlled halted' messages. (jakob@ ok)ho2000-12-111-3/+4
|
* Change the le32toh() le16toh() macros back to the previous defintion.drahn2000-11-111-15/+1
| | | | | This change is more portable, redefine the macros to use the host letoh32/letoh16 instead of using possibly less efficient bswap routines.
* Sync with NetBSD. Too many changes to mention. For now I have skippedaaron2000-11-081-362/+441
| | | | umass.c and ukbd.c as the diffs are a bit hairier.
* Match Free/Net macros for le32toh/letoh32, define in terms of the other.rahnds2000-09-061-15/+1
|
* sync with NetBSD... well almost. someone w/ the hw should check umass.fgsch2000-07-041-4/+13
|
* Sync with NetBSD.aaron2000-04-141-10/+21
|
* Sync with NetBSD. USB Ethernet drivers should work now.aaron2000-03-301-383/+138
|
* Much cleaner sync with NetBSD. Some #if defined() magic has been sent in theaaron2000-03-281-479/+781
| | | | | | form of a diff to augustss@netbsd.org so that future syncs will be very easy. This commit also adds support for ADMtek AN986 "Pegasus" based USB Ethernet, CATC USB-EL1210A based USB Ethernet, and USB Printers (all untested).
* Fix typos.aaron2000-03-261-4/+4
|
* Fix an obvious typo.aaron2000-03-261-2/+2
|
* Sync with NetBSD.aaron2000-03-261-429/+642
|
* sync with NetBSD.fgsch1999-11-071-35/+76
|
* Sync with NetBSD.fgsch1999-09-271-359/+506
|
* Sync with NetBSD;fgsch1999-08-271-256/+258
| | | | | | | Make sure not to call tsleep() from suspend/resume routine. Move more of the transfer completion processing to HC independent code. Fix some problems with transfer abort & timeout. Merge the soft_{td,qh} with the real {td,qh}. This saves time and space.
* Sync with NetBSD.fgsch1999-08-191-49/+64
|