summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the new USB stack into its new home.thompsa2009-02-231-0/+619
|
* Move usb to a graveyard location under sys/legacy/dev, it is intended that thethompsa2009-02-231-708/+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.
* Add a reset device command to ugen.c.n_hibma2008-11-131-0/+1
| | | | | This is needed to make some devices work that require a firmware upload and a USB reset afterwards.
* Add isochronous transfer support for USB 2.0kevlo2008-08-181-0/+2
| | | | Obtained from: NetBSD
* Add definition for UIPROTO_MOUSE.imp2007-06-301-0/+1
| | | | Approved by: re@
* Remove usb_port.h from usb.h, except for one or two useful things thatimp2007-06-181-2/+4
| | | | don't belong there (these moved into usb.h).
* Move PWR_* from usb_port.h to usb.himp2007-06-141-0/+8
|
* Move malloc definitions to usb.h.imp2007-06-141-4/+3
| | | | | | | Also, remove usb_malloc_type: it was unused. Remove METHODS_NONE: it was unused. Move include of opt_usb.h from usb_port.h to usb.h, since usb_port.h is going away (there will be a usb_compat.h for out-of-tree drivers that want it).
* Remove more __OtherBSD__ ifdefs that don't make sense, and haven't forimp2007-06-131-4/+0
| | | | some time.
* Remove compat ifdefs for version < 500014 from the rest of the USB files.brueffer2007-06-071-4/+0
| | | | | Approved by: rwatson (mentor) MFC after: 1 week
* s/Static/static/gimp2006-09-061-0/+8
| | | | | | | | | | 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.
* Add support for Xbox 360 gamepads. They are HID-capable devices, butmux2005-12-311-0/+2
| | | | | | | | | | lack a report descriptor and don't use the standard interface class. This patch works around these deficiencies so that the uhid(4) driver can recognize and use those broken devices. PR: usb/90141 Submitted by: Ed Schouten <ed@fxq.nl> (with minor mods from me) MFC after: 1 week
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Packed structures are defined differently in older gcc's, like the onejoe2002-11-061-0/+4
| | | | | currently in -stable. Put the exception into usb.h instead of having it hard coded in the sound code.
* MFNetBSD: Increasre the reset recovery time. (rev 1.69)joe2002-09-271-3/+3
|
* MFNetBSD: Update class codes. (rev 1.68)joe2002-09-271-5/+13
|
* MFNetBSD: Add Bluetooth related classes etc. (rev 1.67)joe2002-09-271-5/+12
|
* MFNetBSD: revision 1.66joe2002-09-271-6/+6
| | | | Get rid of trailing white space.
* s/__attribute__((__packed__))/__packed/galfred2002-09-231-1/+1
|
* Revert part of the last commit. A couple of defines were removedjoe2002-02-261-0/+4
| | | | by NetBSD because they don't use them (they've no usbd), but we do.
* Merge from NetBSD:joe2002-02-261-16/+4
| | | | | | | | | | | | | usb.h (rev 1.61): date: 2002/01/01 14:23:37; author: augustss; Add a missing subclass definition. usb.h (rev 1.63) and usb_port.h (rev 1.52): date: 2002/02/25 00:46:37; author: augustss; Some portability improvement. Add define for usb.h version.
* Prefix structure members to protect them against clashes with eg.alfred2002-02-201-48/+48
| | | | | | | | | c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
* Merge from NetBSD:joe2002-02-161-1/+4
| | | | | | Pave the way for USB2, by replacing 'lowspeed' with 'speed', so that it can take the values USB_SPEED_LOW, USB_SPEED_FULL or in time USB_SPEED_HIGH.
* Merge from NetBSD.joe2002-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | uhub.c: revision 1.37 usb.4: revision 1.30 usb.c: revision 1.38 usb.h: revision 1.40 usb_port.h: revision 1.21 usb_subr.c: revision 1.65 usbdi.h: revision 1.40 Split the attach/detach events up into device, driver and controller attach and detach events. The commit message from NetBSD was: date: 2000/02/02 07:34:00; author: augustss; state: Exp; Change the USB event mechanism to include more information about devices and drivers. Partly from FreeBSD. Also rework usbd to take these new event types into account.
* Sync usb.h with NetBSD, apart from usb_device_info.speed, whichjoe2002-01-021-58/+144
| | | | | requires logic changes. For now leave it as usb_device_info.lowspeed. It will get addressed when the usb.c code is sync'd.
* Revert part of the last commit. UIPROTO_MASS_BBB was renamed tojoe2002-01-021-2/+2
| | | | UIPROTO_MASS_BULK _after_ the previous change was made in NetBSD.
* Sync with NetBSD:joe2002-01-021-50/+72
| | | | | | date: 2000/02/29 21:37:01; author: augustss; state: Exp; Distinguish between device and interface classes. (I finally found a document that said that they were different.)
* Don't check for ohci/uhci to be loaded, check for the usb module.n_hibma2000-09-021-3/+2
|
* From NetBSD:n_hibma2000-08-131-0/+3
| | | | | | | | | | | | | | Make it possible to move a device to its unconfigured state by using config #0. Add some comments. Change error reporting in port reset function. usbd_devinfo_vp(): search the know devs array also if the device doesn't return product description (e.g. Kye's Genius NetScroll mouse returns vendor, but not product); the strings returned by device are still preferred to those in the array, though
* Sync with NetBSD:n_hibma2000-05-141-0/+2
| | | | | Make the behaviour more similar to what the Microsoft uhub driver does.
* Sync with NetBSD:n_hibma2000-05-141-0/+3
| | | | | | Add USB_SET_REPORT ioctl. Add FIOASYNC, TIOCSPGRP ioctl. Change some debugging output
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* if USB support is not compiled into the kernel,jmb2000-04-021-0/+4
| | | | | | | | and has not been loaded via a kldload, running usbd(8) will autoload the "usb.ko" kld. thanks to Peter Wemm for enlightening me on the differences between kldfind(2) and modfind(2).
* The completely rewritten USB Mass Storage driver. It supports the followingn_hibma2000-03-181-2/+2
| | | | | | | | | | | | devices: Tested: Zip 100 USB drive Y-E Data USB floppy drive Untested: (let me know whether or not it works!) TEAC USB floppy drive Zip 250 USB drive
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-12-291-2/+2
| | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
* Add devnames, the device names the drivers attached to for usbd.n_hibma1999-11-281-1/+5
| | | | | 0 -> NULL changes. Add realloc (for OpenBSD)
* Addition of new fields to the usb_devinfo struct to enable the newn_hibma1999-11-211-10/+14
| | | | | | | | | | | | | | | | | | and shiny usbd daemon to handle events. usb_port.h: - Add a macro to retrieve the unit number from a USBBASEDEVICE usb.h, usb_subr.c: - Add fields to the device_info struct. usb_subr.c: - Fill in the new fields. - Remove the notification of the event up a bit to make sure all the information is still available to fill the usb_devinfo struct. This requires recompilation of usbdevs (src/usr.sbin/usbdevs) and the ezdownload/ezupload (ports/misc/ezload) utilities in any case.
* Synchronisation with NetBSD as of 1999/11/16:n_hibma1999-11-171-9/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-61/+69
| | | | | | | | | | | - 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
* Add the semi-official Bulk protocol id 'P'n_hibma1999-07-031-1/+6
|
* Replace UE_GET_IN with UE_GET_DIRn_hibma1999-05-031-1/+2
|
* Add defines for Mass Storage Bulk-Only and COmmun. Class devices.n_hibma1999-04-201-19/+37
|
* 1) Add the defines for the Mass Storage classn_hibma1999-04-051-10/+23
| | | | | 2) Add comments 3) Add UE_DIR to replace the querying of UE_IN directly
* Textual changesn_hibma1999-01-221-1/+1
|
* Sync with NetBSD sources. Almost there. Mostly style fixes.n_hibma1999-01-101-2/+2
|
* Major synchronisation with NetBSD USB coden_hibma1999-01-071-42/+143
|
* Added UCLASS_CDC definitions to usb.hn_hibma1998-12-151-1/+3
|
* Added Id to all filesn_hibma1998-12-141-0/+1
|
* Fixed warning in usr.sbin/usbdn_hibma1998-12-121-0/+2
|
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-0/+387
OpenPOWER on IntegriCloud