kernel - cyapa driver operational in PS/2 mode
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 7 Jan 2014 20:41:41 +0000 (12:41 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 7 Jan 2014 20:41:41 +0000 (12:41 -0800)
commit06fa7260659f6e023ef3e6effa4d6afac76693cc
treed17dc12680ebe8bc3563df3bec1049f292164290
parent9678c01f43a3e188462eff7e04f605594b729f1b
kernel - cyapa driver operational in PS/2 mode

* For now don't try to emulate the event infrastructure or trackpad
  infrastructure.

* Requires ig4 for chrome.  Include this in /boot/loader.conf for now:

    ig4_load="YES"
    cyapa_load="YES"

* Implement a character device interface that is compatible with PS/2.
  The X configuation would thus be something like this:

    Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "ps/2"
    Option      "Device" "/dev/cyapa0-67"
    EndSection

* Implement simple left/middle/right button emulation depending on where
  on the trackpad you push the button.

* Do not implement simple-touch for buttons, that creates all sorts of
  false positives.  The trackpad has an actual button (the whole pad) if
  you push hard enough.
sys/dev/smbus/cyapa/Makefile
sys/dev/smbus/cyapa/cyapa.c