summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/atmegadci.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve device mode (gadget) stall handling.thompsa2009-05-211-1/+2
| | | | | | | | | Some hardware easily comes out of sync with regard to whether the current or the next control transfer should be stalled, if a stall command is always issued before receiving the SETUP packet. After this patch the stall command will only be issued when a transfer should actually be stalled. Submitted by: Hans Petter Selasky
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-211-2/+2
| | | | Submitted by: Hans Petter Selasky
* - rename usb2_mode to usb_mode [1]thompsa2009-05-211-4/+4
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* - Add new register definitionsthompsa2009-05-201-10/+29
| | | | | | - Enable the controller and wait for the PLL to start Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@160930thompsa2009-04-221-42/+48
| | | | | | | 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
* MFp4 //depot/projects/usb@160708thompsa2009-04-221-8/+9
| | | | | | | Need to check Read/Write allowed before writing any data for non-control transfers. Submitted by: Hans Petter Selasky
* Remove usb_sw_transfer.[ch] which are now empty after r190735.thompsa2009-04-061-1/+0
|
* Provide a better commit log for r190735, forced by making a whitespace change.thompsa2009-04-061-3/+2
| | | | | | | | | | | | 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
* MFp4 //depot/projects/usb@159946thompsa2009-04-051-4/+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
* MFp4 //depot/projects/usb@159926thompsa2009-04-051-138/+24
| | | | | | Minor code factorisation in atmegadci.c Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159922thompsa2009-04-051-170/+18
| | | | | | | 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
* MFp4 //depot/projects/usb@159674thompsa2009-04-051-1/+4
| | | | | | Fix more corner cases around reception of SETUP packets. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159673thompsa2009-04-051-8/+11
| | | | | | Fix a corner case around stalling SETUP packets in device side mode. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159671thompsa2009-04-051-6/+9
| | | | | | Fix interrupt register setting on the atmegadci controller. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb @159479,159502,159516,159522,159529thompsa2009-03-201-32/+41
| | | | | | | | 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
* MFp4 //depot/projects/usb @159431,159437,159438thompsa2009-03-201-1/+1
| | | | | | | - start using the new USB typedefs in the USB core - Remove usage of USB_ADD_BYTES() Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159392thompsa2009-03-201-1/+1
| | | | | | Add ifdefs for making parts of usb conditional. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb @159430thompsa2009-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
* MFp4 //depot/projects/usb 158981,159016,159024thompsa2009-03-111-23/+62
| | | | | | Sync support for ATMEGA DCI parts. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@157853thompsa2009-02-241-13/+2
| | | | | | | Clean up old way of polling the USB hardware. The existing polling support was a bit hackish. Submitted by: Hans Petter Selasky
* Move the new USB stack into its new home.thompsa2009-02-231-0/+2327
OpenPOWER on IntegriCloud