History log of /src/sys/dev/fdt/gpiokeys.c |
Revision | | Date | Author | Comments |
1.11 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.10 |
| 24-Apr-2021 |
thorpej | branches: 1.10.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.9 |
| 27-Jan-2021 |
thorpej | branches: 1.9.2; Rename of_match_compat_data() to of_compatible_match(). Similarly, rename of_search_compatible() to of_compatible_lookup().
Standardize on of_compatible_match() for driver matching, and adapt all call sites.
|
1.8 |
| 10-May-2018 |
jmcneill | branches: 1.8.16; Emit initial lid switch state event at startup
|
1.7 |
| 28-Apr-2018 |
jmcneill | Add support for lid switch event codes.
|
1.6 |
| 10-Dec-2017 |
bouyer | branches: 1.6.2; 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.
|
1.5 |
| 23-Sep-2017 |
jmcneill | branches: 1.5.2; For known Linux keycodes, report key press events through a wskbd device instead of using sysmon pswitch hotkey events.
|
1.4 |
| 06-Jul-2017 |
jmcneill | Only read gpio pin if the pin is valid
|
1.3 |
| 06-Jul-2017 |
jmcneill | 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.
|
1.2 |
| 16-Dec-2015 |
jmcneill | branches: 1.2.2; 1.2.12; Use of_getprop_bool/of_getprop_uint32
|
1.1 |
| 14-Dec-2015 |
jmcneill | 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.
|
1.2.12.1 |
| 07-Jul-2017 |
martin | Pull up following revision(s) (requested by jmcneill in ticket #101): sys/dev/fdt/gpiokeys.c: revision 1.3 sys/dev/fdt/gpiokeys.c: revision 1.4 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. Only read gpio pin if the pin is valid
|
1.2.2.3 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.2.2.2 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.2.2.1 |
| 16-Dec-2015 |
skrll | file gpiokeys.c was added on branch nick-nhusb on 2015-12-27 12:09:49 +0000
|
1.5.2.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.5.2.1 |
| 23-Sep-2017 |
jdolecek | file gpiokeys.c was added on branch tls-maxphys on 2017-12-03 11:37:01 +0000
|
1.6.2.2 |
| 21-May-2018 |
pgoyette | Sync with HEAD
|
1.6.2.1 |
| 02-May-2018 |
pgoyette | Synch with HEAD
|
1.8.16.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.9.2.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.10.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|