summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_compat_linux.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unneeded includes of <sys/linker_set.h>. Other headers that usejhb2011-01-111-1/+0
| | | | | | it internally contain nested includes. Reviewed by: bde
* Add missing MODULE_VERSION() definitions, this resolves problems aroundthompsa2010-09-011-0/+1
| | | | | | | | duplicate module loads. PR: usb/125736 Submitted by: danger, mm Reviewed by: hselasky
* Use a more obvious prefix for the USB control (endpoint 0) transfers ratherthompsa2010-04-221-1/+1
| | | | than default_*.
* Make sure the bsd_urb_list gets initialised and that new URB's are queued atthompsa2010-03-281-1/+2
| | | | | | the end of the list. Submitted by: Hans Petter Selasky
* - Add usb_fill_bulk_urb() and usb_bulk_msg() linux compat functions [1]thompsa2009-11-011-7/+73
| | | | | | | | - Don't write actual length if the actual length pointer is NULL [2] - correct Linux Compatibility error codes for short isochronous IN transfers and make status field signed. Submitted by: Leunam Elebek [1], Manuel Gebele [2]
* Temporarily revert the new-bus locking for 8.0 release. It will bejhb2009-08-201-7/+20
| | | | | | reintroduced after HEAD is reopened for commits by re@. Approved by: re (kib), attilio
* Make the newbus subsystem Giant free by adding the new newbus sxlock.attilio2009-08-021-20/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The newbus lock is responsible for protecting newbus internIal structures, device states and devclass flags. It is necessary to hold it when all such datas are accessed. For the other operations, softc locking should ensure enough protection to avoid races. Newbus lock is automatically held when virtual operations on the device and bus are invoked when loading the driver or when the suspend/resume take place. For other 'spourious' operations trying to access/modify the newbus topology, newbus lock needs to be automatically acquired and dropped. For the moment Giant is also acquired in some key point (modules subsystem) in order to avoid problems before the 8.0 release as module handlers could make assumptions about it. This Giant locking should go just after the release happens. Please keep in mind that the public interface can be expanded in order to provide more support, if there are really necessities at some point and also some bugs could arise as long as the patch needs a bit of further testing. Bump __FreeBSD_version in order to reflect the newbus lock introduction. Reviewed by: ed, hps, jhb, imp, mav, scottl No answer by: ariff, thompsa, yongari Tested by: pho, G. Trematerra <giovanni dot trematerra at gmail dot com>, Brandon Gooch <jamesbrandongooch at gmail dot com> Sponsored by: Yahoo! Incorporated Approved by: re (ksmith)
* USB CORE - compat Linux:alfred2009-07-301-18/+58
| | | | | | | | | - Patch request from Tim Borgeaud: - add automatic locking - add refcount for killing URB's Submitted by: hps Approved by: re
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-31/+47
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.thompsa2009-06-151-31/+31
|
* Remove usb2_cv_* and just use the kernel condvar implementation, it was neededthompsa2009-06-151-4/+4
| | | | | earlier since condition variables didnt work with Giant but this was fixed 10 months ago.
* Free the correct memory pointer.thompsa2009-06-121-1/+1
| | | | Submitted by: Tim Borgeaud (via HPS)
* Rename usb pipes to endpoints as it better represents what they are, and structthompsa2009-06-071-10/+10
| | | | usb_pipe may be used for a different purpose later on.
* Revert the size_t part of the last commit for the moment, this blows up thethompsa2009-05-301-5/+5
| | | | USB_ADD_BYTES macro.
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-291-14/+14
|
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-281-82/+58
|
* - rename usb2_mode to usb_mode [1]thompsa2009-05-211-2/+2
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* Remove USB shutdown methods from device drivers as its the host controllersthompsa2009-05-051-19/+0
| | | | | | | responsibility to detach the bus. PR: usb/133896 Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159909thompsa2009-04-051-11/+11
| | | | | | | | | | | | | - 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
* MFp4 //depot/projects/usb @159431,159437,159438thompsa2009-03-201-12/+12
| | | | | | | - 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 @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
* Rename the ushub device class back to uhub as it was in the old usb stack,thompsa2009-03-021-1/+1
| | | | | | moused(8) looks for "uhub/ums" to decide if needs to load the module. Reported by: Garrett Cooper
* Move the new USB stack into its new home.thompsa2009-02-231-0/+1653
OpenPOWER on IntegriCloud