summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* * if we got an undercoverable error, set the dying flagjakemsr2010-12-061-1/+7
| | | | | | * check the dying flag in timeout and interrupt handlers fixes crash when disconnecting cardbus usb adapters
* as in ehci and ohci, delete the interrupt timeout in the detachjakemsr2010-12-061-1/+6
| | | | routine
* Properly handle when uhci_alloc_sqh() fails to allocate memory inmatthew2010-11-211-7/+15
| | | | | | uhci_device_setintr(). ok jakemsr@
* Do not allow malloc() to wait in uhci_device_setintr(), instead check formiod2010-11-191-2/+4
| | | | | failure and return USBD_NOMEM, callers will do TRT. ok jakemser@ deraadt@ kettenis@ tedu@
* create another kthread to run xfer abort tasks. xfer abort tasks cannotjakemsr2010-10-231-2/+3
| | | | | | | | | | | be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xfer to be aborted blocks the abort of that task). as there are now three types of usb tasks, add an argument to usb_init_task() and another member to struct usb_task to specify the task type. fixes boot hangs that are showing up because we now use usb tasks to attach/detach usb devices.
* If during resume we get an interrupt, sure, be a bit noisy about itderaadt2010-09-201-2/+1
| | | | | | for now. But since it is not being handled, do not ack it on the chip. Discussed with kettenis a while back
* Fix unitialised variable access in the suspend/resume casejsg2010-09-201-1/+3
| | | | | | that crept in with rev 1.77, spotted by the clang static analyser. ok deraadt@
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-19/+2
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}deraadt2010-09-061-4/+4
|
* sort DVACT_ actions according to the order likely to be usedderaadt2010-08-311-5/+5
|
* uhci is apparently is unaware that it could be on a shared interruptderaadt2010-08-311-7/+2
| | | | | It is OK to return 0 in that case, but it is not OK to print a diagnostic.
* Change powerhooks into activate functions, and provide stub powerhookderaadt2010-08-301-77/+58
| | | | | functions ok kettenis
* kill PWR_STANDBY (apm can use PWR_SUSPEND instead). While here, renumberderaadt2010-08-271-2/+1
| | | | | | | PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME} so that we can eventually (many more steps...) kill the powerhook garbage and use the activate mechanism. no objections
* put the read macros into functions so gcc4 doesn't whinge.jsg2010-05-011-4/+22
| | | | ok marco@ oga@ miod@
* Call the existing power functions with our activate function forderaadt2009-11-261-1/+7
| | | | | the suspend and resume operations ok kettenis
* Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.kettenis2009-11-041-7/+1
| | | | ok jsing@, miod@
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-2/+2
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* timeout_add -> timeout_add_msecblambert2009-07-241-3/+3
| | | | ok krw@
* ehci_alloc_sqtd_chain() was doing signed math on len, thus the great codederaadt2009-06-021-10/+11
| | | | | | | | curlen -= curlen % mps; can for very large transfers result in an intermediate variable growing larger than it should. Probably can't really happen in the real world. Do the same u_int repairs to the other matching drivers ok blambert kjell miod kettenis
* if interrupt register is all 1s, we know we are dead; ok dlgderaadt2008-11-211-1/+5
|
* add usb2.0 to usb1.1(ohci/uchi) handover request to usb subsystem.yuo2008-06-291-1/+5
| | | | | | | | | | | add new quirk entry for uvideo which is required isoc transfer. Some usb2.0 devices use isochronous transfer but current usb subsystem does not support isoc transfer in ehci(usb2.0) bus. This patch introduce new psuedo usb hub request UHF_PORT_DISOWN_TO_1_1 to handover the device to ehci to usb1.1 bus(ohci or uhci). ok mglocker@ deraadt@ fgsch@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* correct function names on some debug and panics.fgsch2008-06-221-21/+21
|
* fix probable cut and paste error when for the virtual QH link.fgsch2008-06-211-2/+2
| | | | from netbsd via dragonfly. pointed by theo. ok by many.
* spelling fixes, from Martynas Venckus;jmc2007-11-251-2/+2
|
* KNFgilles2007-09-111-2/+2
| | | | prompted and "much better" by marco@, ok pyr@
* more M_ZERO usage.fgsch2007-09-101-3/+2
|
* Don't show debug output when an interrupt is not for us.mbalmer2007-07-201-5/+5
| | | | | | From Marc Winiger <mw@msys.ch> ok dlg, claudio.
* Replace the USB_USE_SOFTINTR macro with __HAVE_GENERIC_SOFT_INTTERUPTSmbalmer2007-06-151-7/+7
| | | | | | | | (which was used to define USB_USE_SOFTINTR). No binary changes. ok dlg, mk.
* Move the mstohz macro out of ubs_port.h and to the three places where it ismbalmer2007-06-141-1/+3
| | | | | | used. ok jsg.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-2/+2
| | | | | | No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-12/+12
| | | | | | | (This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
* Remove definitions and usage of usb_callout and related macros. These macrosmbalmer2007-06-101-18/+26
| | | | | | | | were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-103/+103
| | | | | | | and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
* Remove le{16,32}toh macrosjsg2007-05-211-31/+31
|
* Remove ifdef __otherbsd__ mess; no binary change.jsg2007-05-211-41/+1
|
* 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@