aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/controller/uhci.c
Commit message (Collapse)AuthorAgeFilesLines
* Copy releng/8.3 to release/8.3.0 as part of the 8.3-RELEASE build process.release/8.3.0_cvsKen Smith2012-04-091-1/+1
| | | | | | Approved by: re (implicit) This commit was manufactured to restore the state of the 8.3-RELEASE image.
* MFC r228483, r228640, r228709, r228711, r228723 and r229086:Hans Petter Selasky2012-01-031-27/+29
| | | | | | | | | | | | - Implement better support for USB controller suspend and resume. - Add code to wait for USB shutdown to be executed at system shutdown. - Add sysctl which can be used to skip this waiting. NOTE: All USB controller drivers needs to be re-compiled after this change due to changes in some USB controller only structures. Notes: svn path=/stable/8/; revision=229370
* MFC r227461:Hans Petter Selasky2011-12-031-1/+1
| | | | | | | | | | | | | | Style change. - Make it easier to port the USB code to other platforms by only using one set of memory functions for clearing and copying memory. None of the memory copies are overlapping. This means using bcopy() is not required. - Fix a compile warning when USB_HAVE_BUSDMA=0 - Add missing semicolon in avr32dci. - Update some comments. Notes: svn path=/stable/8/; revision=228229
* MFC 217265:John Baldwin2011-04-271-1/+0
| | | | | | | | | | Remove unneeded includes of <sys/linker_set.h>. Other headers that use it internally contain nested includes. Requested by: hselasky Notes: svn path=/stable/8/; revision=221125
* MFC r212134Andrew Thompson2010-11-191-1/+1
| | | | | | | | | Change argument for usbd_get_dma_delay() from USB bus to USB device, some embedded hardware needs to know exactly which device is in question before it exactly can decide the required delay. Notes: svn path=/stable/8/; revision=215500
* MFC r209443Andrew Thompson2010-11-191-3/+1
| | | | | | | | Add support for LOW speed BULK transfers. This mode is not recommended by the USB 2.0 standard, though some USB devices use it anyway. Notes: svn path=/stable/8/; revision=215482
* MFC r201797Andrew Thompson2010-05-041-27/+0
| | | | | | | Remove unused uhci_dump_qhs(). Notes: svn path=/stable/8/; revision=207633
* MFC r207077Andrew Thompson2010-04-291-17/+17
| | | | | | | | Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this had the illusion of a tunable setting but was always turned on regardless. Notes: svn path=/stable/8/; revision=207399
* MFC r199675Andrew Thompson2009-12-091-0/+4
| | | | | | | | | Provide tunables for some of the usb sysctls that affect boot behaviour. Submitted by: Andriy Gapon Notes: svn path=/stable/8/; revision=200330
* MFC r198151Andrew Thompson2009-10-291-0/+1
| | | | | | | | | | Workaround buggy BIOS code in USB regard. By doing the BIOS to OS handover for all host controllers at the same time, we avoid problems where the BIOS will actually write to the USB registers of all the USB host controllers every time we handover one of them, and consequently reset the OS programmed values. Notes: svn path=/stable/8/; revision=198659
* USB CORE:Alfred Perlstein2009-07-301-0/+1
| | | | | | | | | | | | | | - Add minimum polling support to drive UMASS and UKBD in case of panic. - Add extra check to ukbd probe to fix problem about mouse devices attaching like keyboards. - P4 ID: 166148 Submitted by: hps Approved by: re Notes: svn path=/head/; revision=195960
* - Make struct usb_xfer opaque so that drivers can not access the internalsAndrew Thompson2009-06-231-3/+22
| | | | | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h Notes: svn path=/head/; revision=194677
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.Andrew Thompson2009-06-151-77/+77
| | | | Notes: svn path=/head/; revision=194228
* Rename usb pipes to endpoints as it better represents what they are, and structAndrew Thompson2009-06-071-40/+40
| | | | | | | usb_pipe may be used for a different purpose later on. Notes: svn path=/head/; revision=193644
* s/usb2_/usb_/ on all typedefs for the USB stack.Andrew Thompson2009-05-291-9/+9
| | | | Notes: svn path=/head/; revision=193045
* s/usb2_/usb_/ on all C structs for the USB stack.Andrew Thompson2009-05-281-79/+79
| | | | Notes: svn path=/head/; revision=192984
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.Andrew Thompson2009-05-211-3/+3
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=192502
* - rename usb2_mode to usb_mode [1]Andrew Thompson2009-05-211-2/+2
| | | | | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1] Notes: svn path=/head/; revision=192499
* Make sure the frame list base address is re-programmed after stopping the USBAndrew Thompson2009-05-051-37/+50
| | | | | | | | | | schedule, in case the hardware clears the frame list base address. Submitted by: Hans Petter Selasky Reported by: Chao Shin Notes: svn path=/head/; revision=191826
* Revert part of r191494 which used the udev state to mark suspending, this needsAndrew Thompson2009-05-051-5/+3
| | | | | | | | | | | to be set via two variables (peer_suspended and self_suspended) and can not be merged into one. Submitted by: Hans Petter Selasky Pointy hat: me Notes: svn path=/head/; revision=191824
* Track the usb device state as its powered on, addressed and configured. This ↵Andrew Thompson2009-04-251-3/+3
| | | | | | | | | | | | helps to avoid touching the device when it is not going to respond and would otherwise timeout. Implement the suspend tracking as a udev state too. Notes: svn path=/head/; revision=191494
* MFp4 //depot/projects/usb@160930Andrew Thompson2009-04-221-50/+56
| | | | | | | | | | Change the roothub exec functions to take the usb request and data pointers directly rather than placing them on the parent bus struct. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=191402
* Remove usb_sw_transfer.[ch] which are now empty after r190735.Andrew Thompson2009-04-061-1/+0
| | | | Notes: svn path=/head/; revision=190755
* Provide a better commit log for r190735, forced by making a whitespace change.Andrew Thompson2009-04-061-1/+1
| | | | | | | | | | | | | | | Refactor how we interface with the root HUB. This is achieved by making a direct call from usb2_do_request to the host controller for root hub requests, this call will perform the controller specific register read/writes and return the error code. This cuts out a lot of code in the host controller files and saves one thread per USB bus. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190754
* MFp4 //depot/projects/usb@159946Andrew Thompson2009-04-051-8/+0
| | | | | | | | | | Some cancelable flags are always true. Substitute these away. These cancelable flags were mostly useful with the root HUB which is now handled differently. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190738
* MFp4 //depot/projects/usb@159922Andrew Thompson2009-04-051-180/+29
| | | | | | | | | | Refactor how we interface with the root HUB. This cuts around 1200 lines of code totally and saves one thread per USB bus. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190735
* MFp4 //depot/projects/usb @159479,159502,159516,159522,159529Andrew Thompson2009-03-201-25/+45
| | | | | | | | | | | Workaround for buggy USB hardware not handling new SETUP packet before STATUS stage is complete, this allows xfers to endpoint0 to return a short frame. Submitted by: Hans Petter Selasky Reported by: me Notes: svn path=/head/; revision=190183
* MFp4 //depot/projects/usb @159431,159437,159438Andrew Thompson2009-03-201-2/+3
| | | | | | | | | | - start using the new USB typedefs in the USB core - Remove usage of USB_ADD_BYTES() Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190181
* MFp4 //depot/projects/usb @159430Andrew Thompson2009-03-201-2/+1
| | | | | | | | | | | | | - Move tunable defines into usb_core.h and dependancy towards usb_defs.h - Leave hardcoded defines in "usb_defs.h". - Allow overriding all tunable defines. - Add more customisable typedefs. - Correct maximum device number. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190174
* MFp4 //depot/projects/usb@157853Andrew Thompson2009-02-241-31/+8
| | | | | | | | | | Clean up old way of polling the USB hardware. The existing polling support was a bit hackish. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=188983
* Move the new USB stack into its new home.Andrew Thompson2009-02-231-0/+3381
Notes: svn path=/head/; revision=188942