summaryrefslogtreecommitdiff
path: root/sys/dev/usb/template
Commit message (Collapse)AuthorAgeFilesLines
* MFC r246616 and r246759:Hans Petter Selasky2013-02-211-26/+39
| | | | | | | | | | | | | | | | | - Move scratch data from the USB bus structure to the USB device structure so that simultaneous access cannot happen. Protect scratch area using the enumeration lock. - Reduce stack usage in usbd_transfer_setup() by moving some big stack members to the scratch area. This saves around 200 bytes of stack. - Fix a whitespace. - Protect control requests using the USB device enumeration lock. - Make sure all callers of usbd_enum_lock() check the return value. - Remove the control transfer specific lock. - Bump the FreeBSD version number, hence external USB modules may need to be recompiled due to a USB device structure change. Notes: svn path=/stable/9/; revision=247090
* MFC r233774:Hans Petter Selasky2012-05-041-1/+1
| | | | | | | | Fix compiler warnings, mostly signed issues, when USB modules are compiled with WARNS=9. Notes: svn path=/stable/9/; revision=235000
* MFC 228304:Hans Petter Selasky2011-12-314-10/+10
| | | | | | | Correct some bInterval USB template descriptor values. Notes: svn path=/stable/9/; revision=229103
* MFC r227461:Hans Petter Selasky2011-12-311-2/+2
| | | | | | | | Style change. Use memxxx() functions instead of bxxx() functions. Notes: svn path=/stable/9/; revision=229080
* - Add some comments about the origin of some USB descriptors.Hans Petter Selasky2011-06-233-1/+10
| | | | | | | MFC after: 7 days Notes: svn path=/head/; revision=223472
* - Add more USB templates for various USB device classesHans Petter Selasky2011-06-239-11/+1155
| | | | | | | | | | - Add basic template support for USB 3.0 - Export definition of template sysctl numbers through usb_ioctl.h MFC after: 7 days Notes: svn path=/head/; revision=223467
* Minor cleanup:Hans Petter Selasky2011-02-091-1/+1
| | | | | | | | | | | - use device_printf() instead of printf() to give more accurate warnings. - use memcpy() instead of bcopy(). - add missing #if's for non-FreeBSD compilation. Approved by: thompsa (mentor) Notes: svn path=/head/; revision=218475
* Remove unneeded includes of <sys/linker_set.h>. Other headers that useJohn Baldwin2011-01-114-4/+0
| | | | | | | | | it internally contain nested includes. Reviewed by: bde Notes: svn path=/head/; revision=217265
* isochronous endpoint descriptors should have two more bytes which are zero byAndrew Thompson2010-03-111-7/+16
| | | | | | | | | default. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=205033
* - make the usb_temp_setup() and usb_temp_unsetup() functions public so thatAndrew Thompson2010-03-113-21/+17
| | | | | | | | | | | | other modules can generate USB descriptors. - extend the vendor specific request function by one length pointer argument, because not all descriptors store the length in the first byte. For example HID descriptors. Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=205030
* Remove overuse of exclamation marks in kernel printfs, there mere fact aAndrew Thompson2009-11-261-3/+3
| | | | | | | | | message has been printed is enough to get someones attention. Also remove the line number for DPRINTF/DPRINTFN, it already prints the funtion name and a unique message. Notes: svn path=/head/; revision=199816
* - Make struct usb_xfer opaque so that drivers can not access the internalsAndrew Thompson2009-06-234-19/+91
| | | | | | | - 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-155-130/+130
| | | | Notes: svn path=/head/; revision=194228
* 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-285-149/+149
| | | | Notes: svn path=/head/; revision=192984
* Use enums for speed and rev data types.Andrew Thompson2009-05-211-8/+8
| | | | Notes: svn path=/head/; revision=192500
* MFp4 //depot/projects/usb@160930Andrew Thompson2009-04-221-3/+4
| | | | | | | | | | 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
* 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
* Also use proper capitalisation of FreeBSD in other source files.Ed Schouten2009-02-244-4/+4
| | | | | | | Approved by: thompsa Notes: svn path=/head/; revision=189002
* Move the new USB stack into its new home.Andrew Thompson2009-02-235-0/+2167
Notes: svn path=/head/; revision=188942