summaryrefslogtreecommitdiffstats
path: root/sys/dev/adb/adb_mouse.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r261068jhibbits2014-03-011-1/+1
| | | | | | | Properly sort the arguments to mtx_init(9). PR: misc/186020 Submitted by: alfred
* Fix powerpc/161045. ams_poll() needs to return that any data is available, notjhibbits2013-09-281-1/+2
| | | | | | | | just a new packet. PR: powerpc/161045 Approved by: re(marius) MFC after: 1 week
* Use uiomove return value instead of returning 0.kevlo2012-11-131-2/+2
|
* Add support for interpreting taps on ADB touchpads as a button click.nwhitehorn2009-11-281-1/+130
| | | | | Submitted by: Andreas Tobler <andreast-list at fgznet dot ch> MFC after: 2 weeks
* Use si_drv1 to hold the softc for the adb_mouse character device instead ofjhb2009-01-291-1/+2
| | | | | | using devclass_get_softc(). Tested by: nwhitehorn
* Make adb_mouse use dev2unit() instead of minor().ed2009-01-291-1/+1
| | | | | A real fix would be to migrate it to si_drv0 to store the softc directly, but this is the quickest way to fix it right now.
* Fix some nasty race conditions in the VIA-CUDA driver that ended up preventingnwhitehorn2008-12-061-1/+1
| | | | | | my right mouse button and keyboard LEDs from working due to mangled configuration packets. Fixed several other races and associated problems in the main ADB stack that were exposed while fixing this.
* Make the touch pad on my PowerBook G4 12" a little more usable.ed2008-11-021-7/+18
| | | | | | | | | | | | | | | | | | | | | | For an unknown reason the touch pad of my PowerBook generates button 5 events when you operate it. This causes the adb_mouse code to convert them to button 2 events, which is not what we want. Add a new flag, AMS_TOUCHPAD, which is used to distinguish the touch pad. When set, don't convert button events of unknown buttons to the last button. There are still three problems left with respect to user input: - The mouse button events are not properly processed when the touch pad isn't touched. - The arrow keys on the keyboard don't work inside X11. - The power button isn't handled by the kernel, similar to the ACPI power button on i386/amd64. Approved by: nwhitehorn
* Allow a read() on /dev/ams[0-9] to be interrupted.ed2008-11-011-1/+6
| | | | | | | | | | Right now ams_read() uses cv_wait() to wait for new data to arrive on the mouse device. This means that when you run `cat /dev/ams0', it cannot be interrupted directly. After you press ^C, you first need to move the mouse before cat will quit. Make this function use cv_wait_sig(), which allows it to be interrupted directly. Reviewed by: nwhitehorn
* Add ADB support. This provides support for the external ADB bus on the PowerMacnwhitehorn2008-10-261-0/+539
G3 as well as the internal ADB keyboard and mice in PowerBooks and iBooks. This also brings in Mac GPIO support, for which we should eventually have a better interface. Obtained from: NetBSD (CUDA and PMU drivers)
OpenPOWER on IntegriCloud