summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.h
Commit message (Collapse)AuthorAgeFilesLines
* 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