Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
gpioevents: Fix build with newer ClangPR: 277422
gpioevents: Fix a typo in a diagnostic output message- s/recieved/received/MFC after: 3 days
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
gpioevents: fix some white-space errorsFixes: 453db42291a3 - gpioevents: add support for pull-down and floating input pins.Approved by: manu (implicit)MFC after: 1 week
gpioevents: add support for pull-down and floating input pins.The pin-mode (ft, pd, pu for floating, pull-down, pull-up) isspecified after the intr-config (no, eb, ef, er) for each pin.Tested on
gpioevents: add support for pull-down and floating input pins.The pin-mode (ft, pd, pu for floating, pull-down, pull-up) isspecified after the intr-config (no, eb, ef, er) for each pin.Tested on my Raspberry Pi 1B.PR: 268504Approved by: manuMFC after: 1 week
Provide userland notification of gpio pin changes ("userland gpio interrupts").This is an import of the Google Summer of Code 2018 project completed byChristian Kramer (and, sadly, ignored by us f
Provide userland notification of gpio pin changes ("userland gpio interrupts").This is an import of the Google Summer of Code 2018 project completed byChristian Kramer (and, sadly, ignored by us for two years now). The goalsstated for that project were: FreeBSD already has support for interrupts implemented in the GPIO controller drivers of several SoCs, but there are no interfaces to take advantage of them out of user space yet. The goal of this work is to implement such an interface by providing descriptors which integrate with the common I/O system calls and multiplexing mechanisms.The initial imported code supports the following functionality: - A kernel driver that provides an interface to the user space; the existing gpioc(4) driver was enhanced with this functionality. - Implement support for the most common I/O system calls / multiplexing mechanisms: - read() Places the pin number on which the interrupt occurred in the buffer. Blocking and non-blocking behaviour supported. - poll()/select() - kqueue() - signal driven I/O. Posting SIGIO when the O_ASYNC was set. - Many-to-many relationship between pins and file descriptors. - A file descriptor can monitor several GPIO pins. - A GPIO pin can be monitored by multiple file descriptors. - Integration with gpioctl and libgpio.I added some fixes (mostly to locking) and feature enhancements on top ofthe original gsoc code. The feature ehancements allow the user to choosebetween detailed and summary event reporting. Detailed reporting providesa record describing each pin change event. Summary reporting provides thetime of the first and last change of each pin, and a count of how many timesit changed state since the last read(2) call. Another enhancement allowsthe recording of multiple state change events on multiple pins between eachcall to read(2) (the original code would track only a single event at a time).The phabricator review for these changes timed out without approval, but Icite it below anyway, because the review contains a series of diffs thatshow how I evolved the code from its original state in Christian's githubrepo for the gsoc project to what is being commited here. (In effect,the phab review extends the VC history back to the original code.)Submitted by: Christian KramerObtained from: https://github.com/ckraemer/freebsd/tree/gsoc2018Differential Revision: https://reviews.freebsd.org/D27398