summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhcivar.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not pass an xfer pointer to the timeout routine checking for root hubmpi2014-05-181-4/+3
| | | | | | | | | | status changes because it might be freed when detaching the root uhub(4). Also do not reschedule a timeout if the pipe is being aborted. Finally do not add more code to retrieve the 'bInterval' value of the root hub endpoint descriptor since this value is hardcoded in the uhci(4) driver.
* There is no need to remember which usb(4) device is the child of an USBmpi2014-05-161-4/+2
| | | | host controller because autoconf(9) already does it.
* Get rid of the per-softc freelist of transfer descriptors and use ampi2014-04-291-3/+1
| | | | per-driver pool(9) instead.
* Start de-obfuscating the HC drivers.mpi2014-04-271-3/+1
| | | | | | | | | Since pipe methods have an xfer argument, always use it to get acces to various data structure (pipe, bus, device) instead of having a different way to get a pointer to these descriptors in every function. Also kill the {E,U}XFER() macro and use a consistent name accross all the methods for {e,u}hci_xfer.
* Instead of matching root hubs with a custom address, that only worksmpi2014-03-251-2/+1
| | | | | | | because USB_START_ADDR is defined to 0 and the softc is M_ZERO'd, assume that root hubs are the only devices with a depth of 0. Root hubs can now happily be detached and reattached.
* Reduce the differences with ehci(4)'s transfer decriptors. This is ampi2013-11-011-12/+6
| | | | | | | first step to merge the code of our controllers that deal with usbd transfers. Tested with miod@
* Move the abort_task storage to the generic USB xfer structure insteadmpi2013-11-011-2/+1
| | | | of defining it in every controller specific structure.
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-3/+1
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-33/+33
| | | | | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
* use the dying flag in struct usbd_bus instead of a private dying flagjakemsr2010-12-141-2/+1
| | | | | | in *hci_softc ok miod@, krw@
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-2/+1
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.kettenis2009-11-041-3/+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@.
* 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@
* Replace the USB_USE_SOFTINTR macro with __HAVE_GENERIC_SOFT_INTTERUPTSmbalmer2007-06-151-3/+3
| | | | | | | | (which was used to define USB_USE_SOFTINTR). No binary changes. ok dlg, mk.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-3/+3
| | | | | | No binary change. ok mk.
* Remove definitions and usage of usb_callout and related macros. These macrosmbalmer2007-06-101-2/+2
| | | | | | | | were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
* Last part of FreeBSD/NetBSD sepcific code removal.mbalmer2007-06-041-4/+1
| | | | ok jsg@
* Sync USB code with NetBSD.nate2003-07-081-3/+8
| | | | This includes numerous fixes and paves the way for usb 2.0 support.
* get rid of trailing whitespacenate2002-07-251-4/+4
|
* Meant to commit only ulpt and committed everything. Most things weren't readynate2002-05-071-4/+2
|
* Sync ulpt driver with NetBSDnate2002-05-071-2/+4
|
* interrupts cannot happen beforemickey2001-06-121-1/+2
| | | | | | | | | | | | | | *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. Too many changes to mention. For now I have skippedaaron2000-11-081-8/+12
| | | | umass.c and ukbd.c as the diffs are a bit hairier.
* sync with NetBSD... well almost. someone w/ the hw should check umass.fgsch2000-07-041-2/+3
|
* Sync with NetBSD.aaron2000-04-141-8/+9
|
* Much cleaner sync with NetBSD. Some #if defined() magic has been sent in theaaron2000-03-281-13/+15
| | | | | | 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).
* Sync with NetBSD.aaron2000-03-261-16/+24
|
* sync with NetBSD.fgsch1999-11-071-17/+3
|
* Sync with NetBSD.fgsch1999-09-271-7/+7
|
* Sync with NetBSD;fgsch1999-08-271-20/+26
| | | | | | | 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. Mostly FreeBSD related changes.fgsch1999-08-161-6/+3
| | | | Diffs sent to augustsson.
* From NetBSD; USB support.fgsch1999-08-131-0/+185