summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_mem.h
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* eliminate casts from the DMAADDR macro. This depends upon bus_addr_t beingjmg2003-09-011-1/+1
| | | | | | | a type that you can do arithmetic with. This eliminates many warnings when compiling with PAE. Various by: scottl
* make usb bus_dma aware.jmg2003-07-151-35/+10
| | | | Reviewed by: joe among others
* WARNING: white space diffjmg2003-07-041-1/+1
| | | | | | This code reduces the number of trailing white space to be more in line w/ NetBSD. I don't regenerate usbdevs, saving that for when it really changes.
* NetBSD have adopted our usage of the DMAADDR macro:joe2002-05-281-10/+8
| | | | | | | | date: 2002/05/28 12:42:39; author: augustss; Change DMAADDR macro slightly. Update the $NetBSD$ tags to reflect this and make slight changes to usb_mem.h so that we're in sync with each other.
* Reflect some changes in the NetBSD code path, and sligh adjustments to ours.joe2002-05-231-4/+7
| | | | (Non-functional changes).
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDn_hibma2000-07-171-2/+2
| | | | versions.
* Back out the previous change to the queue(3) interface.jake2000-05-261-1/+1
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-1/+1
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* Separate the struct bio related stuff out of <sys/buf.h> intophk2000-05-051-0/+1
| | | | | | | | | | | | | | | <sys/bio.h>. <sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall not be made a nested include according to bdes teachings on the subject of nested includes. Diskdrivers and similar stuff below specfs::strategy() should no longer need to include <sys/buf.> unless they need caching of data. Still a few bogus uses of struct buf to track down. Repocopy by: peter
* Correctly handle the conversion from virtual to physical addresses. Then_hibma2000-02-101-5/+5
| | | | | | | | | | | | problem was basically (for offset > 4096): vtophys(addr) + offset != vtophys(addr + offset) Also, use TD's with a maximum size of 4k instead of 8kb for OHCI controllers. This problem occurs in drivers that use large transfer sizes: umass, host2host and ethernet with jumbo frames.
* Synchronisation with NetBSD as of 1999/11/16:n_hibma1999-11-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleaning up the code: - Declare many functions static - Change variable names to make them more self explanatory - Change usbd_request_handle -> usbd_xfer_handle - Syntactical changes - Remove some unused code - Other KNF changes Interrupt context handling - Change delay to usbd_delay_ms were possible (takes polling mode into account) - Change detection mechanism for interrupt context Add support for pre-allocation DMA-able memory by device driver Add preliminary support for isochronous to the UHCI driver (not for OHCI yet). usb.c, uhci.c, ohci.c - Initial attempt at detachable USB host controllers - Handle the use_polling flag with a lttle more care and only set it if we are cold booting. usb.c, uhci.c ohci.c, usbdi.c usbdi_util.c usb_subr.c - Make sure an aborted pipe is marked as not running. - Start queued request in the right order. - Insert some more DIAGNOSTIC sanity checks. - Remove (almost) unused definitions USBD_XFER_OUT and USBD_XFER_IN. usb.c, usb_subr.c - Add an event mechanism so that a userland process can watch devices come and go. ohci.c - Handle the case when a USB transfer is so long that it crosses two page (4K) boundaries. OHCI cannot do that with a single TD so we make a chain. ulpt.c - Use a bigger buffer when transferring data. - Pre-allocate the DMA buffer. This makes the driver slightly more efficient. - Comment out the GET_DEVICE_ID code, because for some unknown reason it causes printing to fail sometimes. usb.h - Add a macro to extract the isoc type. - Add a macro to check whether the routine has been entered after splusb and if not, complain. usbdi.c - Fix a glitch in dequeueing and aborting requests on interrupt pipes. - Add a flag in the request to determine if the data copying is done by the driver or the usbdi layer.
* Major synchronisation with the NetBSD USB stack:n_hibma1999-10-071-12/+5
| | | | | | | | | | | - Some cleanup and improvements in the uhci and ohci drivers - Support for plugging and unplugging devices improved - Now available is bulk transport over OHCI controllers - Resume and suspend have been temporarily been disabled again. Proper support for it is available in the uhci.c and ohci.c files but I have not yet spent the brain cycles to use it. - OpenBSD now uses the USB stack as well - Add FreeBSD tags
* Fix DMA macros to work on alpha.dfr1999-08-261-0/+4
|
* Textual changesn_hibma1999-01-221-1/+1
|
* Sync with NetBSD sources. Almost there. Mostly style fixes.n_hibma1999-01-101-4/+2
|
* Major synchronisation with NetBSD USB coden_hibma1999-01-071-5/+7
|
* Added Id to all filesn_hibma1998-12-141-0/+1
|
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-0/+91
OpenPOWER on IntegriCloud