summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uts.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Nuke all occurrences of usbd_abort_pipe() if it gets called rightmglocker2020-07-311-3/+1
| | | | | | | | | | before usbd_close_pipe(), since usbd_close_pipe() already takes care about aborting non-empty pipes. As investigated by gerhard@ usbdi.c rev. 1.57 did add usbd_abort_pipe() to usbd_close_pipe(), but the drivers didn't get cleaned up afterwards. ok gerhard@
* Make udl(4) and uts(4) compile again in debug mode by fixing IOCGROUPmglocker2019-11-061-3/+3
| | | | and IOCPARM_LEN macros types.
* Remove unused struct member.kevlo2018-03-151-3/+1
| | | | ok deraadt@
* A pile of sizes to free(9). In test for a few days in snapshots.deraadt2017-04-081-3/+3
| | | | | Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
* Avoid calling usbd_set_config_index() in *_attach() and let the stackmpi2016-09-021-11/+1
| | | | | | | do it instead. If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
* Use the new input functions of wsmouse in mouse and touchscreen drivers.bru2016-06-051-4/+2
| | | | ok stsp@ kettenis@
* Permit negative x and y coordinates in mouse.scale for uts and ums.guenther2016-02-101-3/+3
| | | | | | Needed by some touchscreens. no objection matthieu@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Use <sys/endian.h> instead of <machine/endian.h>guenther2014-12-191-2/+2
| | | | ok dlg@ mpi@ bcook@ millert@ miod@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* Do not define per-driver DEBUG variable when USB_DEBUG is defined. It'smpi2014-03-071-5/+1
| | | | | really impossible to debug the USB stack when any single device you plug in your machine starts to vomit its own poetry,
* Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().pirofti2013-11-071-9/+8
| | | | Okay mpi@
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-8/+8
| | | | | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-4/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* Prevent division-by-zero when scaling down to the screen resolution. Makekettenis2011-03-031-2/+6
| | | | | | | the WSMOUSEIO_SCALIBCOORDS fail with EINVAL if the settings would cause a division-by-zero. ok deraadt@
* garbage collect "usb events". without /dev/usb there is no way to accessjakemsr2011-01-251-5/+1
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* remove dying flag in detach() function.yuo2010-09-241-3/+1
| | | | | | The dying flag will be set in activate()/DEACTIVATE. ok deraadt@
* Ignore HID devices that have the same vendor and product ids thanmatthieu2009-12-051-1/+7
| | | | | devices actually supported by this device. The Linux driver confirms they exist. ok miod@ jsg@.
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-3/+3
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* remove dead assignments and newly created unused variables.chl2009-02-141-3/+2
| | | | | | Found by LLVM/Clang Static Analyzer. ok fgsch@ krw@
* typomiod2008-12-291-2/+2
|
* treat usb vendor/product names as a locator, and have usbd_print handle it,deraadt2007-10-111-8/+1
| | | | | | so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
* Do not return from uts_intr() without restoring spl if it has been changed,miod2007-09-181-21/+22
| | | | | also clean up uts_get_pos() interface while there; spotted by and joint work with fgsch@, ok matthieu@ robert@
* some style(9). no binary change.fgsch2007-09-161-41/+38
|
* Return pressure as absolute z axis on ITM touchscreens. Other modelsmatthieu2007-09-061-8/+11
| | | | | just return 0 or 1 on this axis, depending on the contact. Ok robert@ miod@.
* don't swap X and Y coordinates while in raw mode. ok robert@matthieu2007-08-301-3/+4
|
* Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andmbalmer2007-06-141-2/+17
| | | | | | | | USB_DECLARE_DRIVER macros. No binary change. ok dlg.
* Apply some KNF after the recent removal of macros and type definitions.mbalmer2007-06-131-2/+2
| | | | | | No binary change. ok ray.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-3/+3
| | | | | | No binary change. ok mk.
* usbd_devinfo_alloc() uses M_WAITOK so don't check return value.jsg2007-06-111-5/+4
| | | | From Karl Sjödahl <dunceor@gmail.com>
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-11/+11
| | | | | | | (This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
* Remove the definition and use of the USBDEV macro. It only created confusionmbalmer2007-06-101-3/+3
| | | | | | | | and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
* Mechanical removal of USBBASEDEVICE. No binary change.mk2007-06-061-2/+2
| | | | | | Tested by thib and myself. ok mbalmer jsg
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-10/+10
| | | | | | | and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
* add Gunze USB Touch Panel supportrobert2007-05-311-7/+25
|
* Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.jsg2007-05-271-15/+17
| | | | ok deraadt@ krw@ mbalmer@
* fix the check of wsmouse_calibcoords values androbert2007-05-181-5/+7
| | | | | invert the X or Y coordinates to make the top left corner (0,0).
* Make use of struct wsmouse_calibcoords and add ioctl supportrobert2007-05-081-24/+65
| | | | | | | | for getting and passing calibration values. Move the scale struct to uts_softc so that each device can have it's own values instead of using the global one. ok miod@
* USB device lists do not need a terminating sentinel, so don't provide any;miod2007-04-261-3/+2
| | | | | | | this should prevent phantom devices from attaching axe or uberry on some machines. ok deraadt@
* Add suport for printing debug information like coordinates if UTS_DEBUGrobert2007-04-251-9/+25
| | | | | | is defined and make sure that we are calling wsmouse_input every time the screen gets touched on different types of touchscreens. Some minor cleanups while here.
* Add support for a fourth axis on wsmouse devices, e.g. on the Apple Mightmiod2007-04-101-2/+2
| | | | | | Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
* the input length is different on the eGalax and ITM screens,robert2007-03-231-4/+7
| | | | | so let's adapt the code by specifing the corrent length and and move the check to the correct place.
* uts(4) is a driver for USB Touchscreens;robert2007-03-161-0/+402
currently the driver only support touchscreens made by eGalax and Future Technology Devices (ITM) ok deraadt@