summaryrefslogtreecommitdiff
path: root/sys/dev/usb/controller/usb_controller.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Use enums for speed and rev data types.Andrew Thompson2009-05-211-1/+1
| | | | Notes: svn path=/head/; revision=192500
* MFp4 //depot/projects/usb@160706Andrew Thompson2009-04-221-0/+8
| | | | | | | | | Resolve possible device side mode deadlock by creating another thread. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=191400
* Revert r190676,190677Andrew Thompson2009-04-101-1/+1
| | | | | | | | | | The geom and CAM changes for root_hold are the wrong solution for USB design quirks. Requested by: scottl Notes: svn path=/head/; revision=190878
* 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@159922Andrew Thompson2009-04-051-50/+1
| | | | | | | | | | 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@159909Andrew Thompson2009-04-051-1/+14
| | | | | | | | | | | | | | | | - make usb2_power_mask_t 16-bit - remove "usb2_config_sub" structure from "usb2_config". To compensate for this "usb2_config" has a new field called "usb_mode" which select for which mode the current xfer entry is active. Options are: a) Device mode only b) Host mode only (default-by-zero) c) Both modes. This change was scripted using the following sed script: "s/\.mh\././g". - the standard packet size table in "usb_transfer.c" is now a function, hence the code for the function uses less memory than the table itself. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190734
* MFp4 //depot/projects/usb@159866Andrew Thompson2009-04-051-2/+2
| | | | | | | | | | | - memory usage reduction by only allocating the required USB pipes and USB interfaces. - cleanup some USB parsing functions to be more flexible. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190730
* MFp4 //depot/projects/usb@159700Andrew Thompson2009-04-051-6/+3
| | | | | | | | | Get rid of the last CALLOUT_RETURNUNLOCKED reference. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190724
* Add a how argument to root_mount_hold() so it can be passed NOWAIT and be calledAndrew Thompson2009-04-031-1/+1
| | | | | | | in situations where sleeping isnt allowed. Notes: svn path=/head/; revision=190676
* MFp4 //depot/projects/usb@159392Andrew Thompson2009-03-201-11/+15
| | | | | | | | | Add ifdefs for making parts of usb conditional. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=190180
* MFp4 //depot/projects/usb @159430Andrew Thompson2009-03-201-1/+0
| | | | | | | | | | | | | - 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
* Fix a possible NULL pointer access at controller attach.Andrew Thompson2009-03-111-1/+2
| | | | | | | Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=189676
* Move the new USB stack into its new home.Andrew Thompson2009-02-231-0/+620
Notes: svn path=/head/; revision=188942