aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbcdc.h
Commit message (Collapse)AuthorAgeFilesLines
* Move usb to a graveyard location under sys/legacy/dev, it is intended that theAndrew Thompson2009-02-231-188/+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. Notes: svn path=/head/; revision=188939
* Sync with 1.9 from NetBSD, this includes:Maxim Sobolev2005-03-011-8/+26
| | | | | | | | | | | o Add Ethernet descriptor. o Use attribute packed for on-the-wire data structures. MFC after: 3 days Notes: svn path=/head/; revision=142875
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* Merge from NetBSD and arrange for FreeBSD's slight differences inWarner Losh2003-01-091-0/+12
| | | | | | | | | | | ucom. This gets my Sanyo SCP-4900 working. Approved by: joe Notes: svn path=/head/; revision=108986
* Add more CDC defines.Nick Hibma2000-08-131-1/+10
| | | | Notes: svn path=/head/; revision=64617
* Change Lennart's e-mail address.Nick Hibma2000-05-141-1/+1
| | | | Notes: svn path=/head/; revision=60545
* Synchronisation with NetBSD as of 1999/11/16:Nick Hibma1999-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=53313
* Major synchronisation with the NetBSD USB stack:Nick Hibma1999-10-071-20/+20
| | | | | | | | | | | | | | - 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 Notes: svn path=/head/; revision=51991
* Add comments, change variable names to make them consistent (r -> err,Nick Hibma1999-07-251-1/+1
| | | | | | | timo_handle -> timeout_handle, p -> pipe, *pipe -> *rpipe, etc.) Notes: svn path=/head/; revision=49085
* 1) Remove the definition of usb_cdc_generic_descriptor_t. It isNick Hibma1999-05-311-7/+1
| | | | | | | | | equivalent to usb_descriptor_t 2) Rename USB_CDC_CM_CM_OVER_DATA to USB_CDC_CM_OVER_DATA Notes: svn path=/head/; revision=47647
* Add a load of definitionsNick Hibma1999-05-031-10/+24
| | | | Notes: svn path=/head/; revision=46379
* Textual changesNick Hibma1999-01-221-1/+1
| | | | Notes: svn path=/head/; revision=43025
* Sync with NetBSD sources. Almost there. Mostly style fixes.Nick Hibma1999-01-101-0/+141
Notes: svn path=/head/; revision=42490