summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/hid.c
Commit message (Collapse)AuthorAgeFilesLines
* Move usb to a graveyard location under sys/legacy/dev, it is intended that thethompsa2009-02-231-469/+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.
* Fix a typo: According to the hid spec, Global item #3kaiw2008-08-181-1/+1
| | | | | | is Physical Minimum. MFC after: 3 days
* In the hid parser, if a INPUT/OUTPUT/FEATURE item is skipped, itskaiw2008-08-181-3/+12
| | | | | | | | | | | | | | | | | | | | | | | corresponding USAGE should be skipped as well. For example, below is a report desc fragment of some mouse: COLLECTION ... USAGE TWHEEL FEATURE ... ... USAGE WHEEL INPUT ... ... END COLLECTION "USAGE TWHEEL" should be consumed after the FEATURE item is skipped, otherwise, the INPUT item will be assigned to "USAGE TWHEEL" later, other than "USAGE WHEEL". Tested by: Grzegorz Blach PR: usb/125941
* s/logprintf/printf/gimp2007-06-201-2/+2
| | | | Approved by: re@
* First pass at removing __OtherBSD__. We can't blindly remove all ofimp2007-06-121-3/+0
| | | | | | them in bulk because there is at least one feature that's unimplemented on FreeBSD that needs to be done and these are good placeholders.
* s/Static/static/gimp2006-09-061-2/+2
| | | | | | | | | | 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.
* Correct the calculation of the report size and only look at reportsiedowse2006-03-221-4/+12
| | | | | | | | | that have the specified kind, instead of assuming that there is only one report of the right kind in the report descriptor. Submitted by: Morten Johansen Obtained from: NetBSD (indirectly) PR: usb/77604
* Fix problem with some logitec usb wireless mice.obrien2005-02-061-1/+1
| | | | | Submitted by: Markus <mw@kpnqwest.ch> Tested by: Randy Bush <randy@psg.com>
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* WARNING: white space diffjmg2003-07-041-13/+13
| | | | | | 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.
* Back out M_* changes, per decision of the TRB.imp2003-02-191-2/+2
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-2/+2
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Replace the FOO_DEBUG definitions with USB_DEBUG, and switch thejoe2002-07-311-1/+1
| | | | | | debugging levels to off by default. Now that debug levels can be tweaked by sysctl we don't need to go through hoops to get the different usb parts to produce debug data.
* MFNetBSD: hid.c (1.22), uhci.c (1.150), usb_subr.c (1.97)joe2002-04-071-2/+1
| | | | | date: 2002/01/14 13:23:37; author: tsutsui; Call malloc(9) with M_ZERO flag instead of memset() after malloc().
* Sync with NetBSD (1.16 - 1.17)joe2001-12-291-32/+13
| | | | | "Bring the coding style into the 80s, i.e., get rid of __P and use ANSI prototypes and declarations."
* Remove __P prototypes to reduce diffs between the NetBSD and FreeBSDn_hibma2000-07-171-1/+1
| | | | versions.
* Sync with NetBSD:n_hibma2000-05-141-4/+4
| | | | | | | Fix the saving of the location at pop properly. Only save the position and not the complete locator. (sp? s/sav/saf/g if appropriate)
* Change Lennart's e-mail address.n_hibma2000-05-141-1/+1
|
* OpenBSD has a broken debugger that does not grok static. Use an_hibma2000-04-031-2/+2
| | | | | | #define Static static that the OpenBSD folks can define it to be empty if they like.
* Sync with NetBSD: Keep the bit position even when the report descriptor says ↵n_hibma2000-04-021-2/+5
| | | | POP.
* Synchronisation with NetBSD as of 1999/11/16:n_hibma1999-11-171-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove superfluous header file includes.n_hibma1999-11-081-3/+2
| | | | Pushed-By: phk
* Major synchronisation with the NetBSD USB stack:n_hibma1999-10-071-3/+3
| | | | | | | | | | | - 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
* 1) Make debugging more selective.n_hibma1999-04-111-3/+3
| | | | | | | 2) create function usbd_errstr which turns a usbd_status into a sensible error message 3) Change the printf in DPRINTF to logprintf which is a define for log(KERN_DEBUG, x)
* Textual changesn_hibma1999-01-221-1/+1
|
* Sync with NetBSD sources. Almost there. Mostly style fixes.n_hibma1999-01-101-3/+3
|
* Major synchronisation with NetBSD USB coden_hibma1999-01-071-8/+10
|
* Added UCLASS_CDC definitions to usb.hn_hibma1998-12-151-4/+3
|
* Added Id to all filesn_hibma1998-12-141-0/+1
|
* Initial commit of ported NetBSD USB stackn_hibma1998-11-261-0/+469
OpenPOWER on IntegriCloud