Commit Graph

6 Commits

Author SHA1 Message Date
bouyer 404d04cdb7 Factor out bus-independant HID code so that it can be shared by USB, bluetooth
and i2c.
dev/usb/ukbdmap.c is renamed to dev/hid/hidkbdmap.c
dev/usb/hid.[ch] moved to dev/hid/
usage pages moved from dev/usb/usbhid.h moved to dev/hid/hid.h,
and updated with OpenBSD entries.
bus-independant code moved from dev/usb/ums.c to dev/hid/hidms.c
(the same should be done for keyboard and touchpad drivers)

Needed for the upcoming HID over I2C support, proposed on tech-kern@
on Dec, 1.
2017-12-10 17:03:07 +00:00
jmcneill b6e9d7090f For known Linux keycodes, report key press events through a wskbd device
instead of using sysmon pswitch hotkey events.
2017-09-23 23:54:30 +00:00
jmcneill 78659f085b Only read gpio pin if the pin is valid 2017-07-06 14:26:00 +00:00
jmcneill c9d3de5c30 Read the initial key state at startup so we only trigger events on state
changes. Prevents a misconfigured power button from shutting us down at
boot.
2017-07-06 14:01:38 +00:00
jmcneill 37b4dc38d1 Use of_getprop_bool/of_getprop_uint32 2015-12-16 19:33:55 +00:00
jmcneill 0fbc3295f4 Add driver for device tree "gpio-keys" device. Each GPIO key is mapped to
a sysmon pswitch; code KEY_POWER is a power button, KEY_SLEEP is a sleep
button, and everything else is treated as a hotkey button.
2015-12-14 20:58:45 +00:00