summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_mem.c
Commit message (Collapse)AuthorAgeFilesLines
* Move usb to a graveyard location under sys/legacy/dev, it is intended that thethompsa2009-02-231-297/+0
| | | | | | | new USB2 stack will fully replace this for 8.0. Remove kernel modules, a subsequent commit will update conf/files. Unhook usbdevs from the build.
* s/logprintf/printf/gimp2007-06-201-2/+2
| | | | Approved by: re@
* Remove more __OtherBSD__ ifdefs that don't make sense, and haven't forimp2007-06-131-5/+0
| | | | some time.
* Remove compat ifdefs for FreeBSD versions < 500014, makes the codebrueffer2007-05-121-7/+0
| | | | | | | quite a bit easier to read. Approved by: rwatson (mentor) MFC after: 1 weeks
* s/Static/static/gimp2006-09-061-9/+9
| | | | | | | | | | s/device_ptr_t/device_t/g No md5 changes in the .o's # Note to the md5 tracking club: $FreeBSD$ changes md5 after every commit # so you need to checkout -kk to get $FreeBSD$ instead of the actual value # of the keyword.
* Use the limited scatter-gather capabilities of ehci, ohci and uhciiedowse2006-05-281-1/+1
| | | | | | | | | | | | | | | host controllers to avoid the need to allocate any multi-page physically contiguous memory blocks. This makes it possible to use USB devices reliably on low-memory systems or when memory is too fragmented for contiguous allocations to succeed. The USB subsystem now uses bus_dmamap_load() directly on the buffers supplied by USB peripheral drivers, so this also avoids having to copy data back and forth before and after transfers. The ehci and ohci controllers support scatter/gather as long as the buffer is contiguous in the virtual address space. For uhci the hardware cannot handle a physical address discontinuity within a USB packet, so it is necessary to copy small memory fragments at times.
* Don't use the ALLOCNOW flag for tags that will only be used for staticscottl2006-01-101-2/+2
| | | | allocations.
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* When searching for a suitable block of memory on the free list,iedowse2004-08-021-1/+2
| | | | | | | | skip blocks that are too big by a factor of two or greater. This avoids some cases of extremely inefficient memory use that can occur when large (e.g. 64k) blocks on the free list get used when allocating a 4k chunk of 64-byte fragments. Because fragments have their own free list, the 60k difference got lost forever every time.
* Make it easier to run this code on RELENG_4.joe2003-10-041-1/+9
| | | | Submitted by: luoqi
* fix another bus_dma leak due to not having a size param for our bus_dmajmg2003-07-291-0/+2
| | | | | | | allocation function. With this patch, it prevents continous growth of the devbuf memory pool. Tested with ssh <host> dd of=/dev/null < /dev/zero and vmstat -m | grep devbuf
* Fix a 64 bit bug lost in the inline warning noise. sizeof is not alwayspeter2003-07-221-1/+1
| | | | an int. Do not printf() it as though it were.
* override the tag. usb_block_allocmem allocates a new tag, which when wejmg2003-07-211-1/+5
| | | | | | | | | go looking for free fragments won't match. Since we never free this, we can "throw away" the tag. This is very dirty, and needs to be reimplemented properly, but fixes performance problems with uhci. Also assert that when we overlay a structure on some space, that the space is large enough for the structure.
* make usb bus_dma aware.jmg2003-07-151-0/+294
Reviewed by: joe among others
OpenPOWER on IntegriCloud