summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_busdma.c
Commit message (Collapse)AuthorAgeFilesLines
* Style change.hselasky2011-11-121-7/+7
| | | | | | | | | | | | - 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. MFC after: 1 week
* Remove unneeded includes of <sys/linker_set.h>. Other headers that usejhb2011-01-111-1/+0
| | | | | | it internally contain nested includes. Reviewed by: bde
* Use saner nsegments and maxsegsz parameters when creating certain DMA tags;marius2010-09-141-2/+2
| | | | | tags for 1-byte allocations cannot possibly be split across 2 segments and maxsegsz must not exceed maxsize.
* Remove overuse of exclamation marks in kernel printfs, there mere fact athompsa2009-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.
* Add a reminder comment to optimize bus_dmamap_sync calls.alfred2009-08-241-0/+6
| | | | Submitted by: hps
* Fix USB cache sync operations for platforms with non-coherent DMA.raj2009-08-191-4/+3
| | | | | | | | | | | | | | | | | - usb_pc_cpu_invalidate() is called between [consecutive] reads from a device, so a sequence of BUS_DMASYNC_POSTREAD and _PREREAD should be used. Note we cannot use or'ed shorthand ( _POSTREAD | _PREREAD) for BUS_DMASYNC flags, as the low level bus dma sync operation is implementation dependent and we cannot assume the required order of operations to be guaranteed. - usb_pc_cpu_flush() is called before writing to a device, so BUS_DMASYNC_PREWRITE should be used. Submitted by: Grzegorz Bernacki Reviewed by: HPS, arm@, usb@ ML Tested by: HPS, Mike Tancsa Approved by: re (kib) Obtained from: Semihalf
* MFp4:marcel2009-07-121-1/+2
| | | | | | | | | | | | | | USB CORE: busdma improvement For single segment allocations the boundary field of the BUSDMA tag should be zero. Currently all single segment allocations are less than or equal to 4096 bytes, so the limit does not kick in. If any single segment USB allocations would be greater than 4K, then it would be a problem. Approved by: re (kensmith) Obtained from: HPS
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-3/+23
| | | | - 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-97/+97
|
* Remove usb2_cv_* and just use the kernel condvar implementation, it was neededthompsa2009-06-151-5/+5
| | | | | earlier since condition variables didnt work with Giant but this was fixed 10 months ago.
* Revert the size_t part of the last commit for the moment, this blows up thethompsa2009-05-301-8/+8
| | | | USB_ADD_BYTES macro.
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-291-27/+27
|
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-281-53/+53
|
* Unifdef __NetBSD__ here, the usb stack as a whole doesnt support NetBSD and itthompsa2009-05-261-396/+1
| | | | obsfucates the code.
* - rename usb2_mode to usb_mode [1]thompsa2009-05-211-1/+1
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* MFp4 //depot/projects/usb @159431,159437,159438thompsa2009-03-201-35/+36
| | | | | | | - 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-20/+32
| | | | | | 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
* Move the new USB stack into its new home.thompsa2009-02-231-0/+1426
OpenPOWER on IntegriCloud