svn commit: r362395 - stable/12/usr.sbin/gpioctl
Emmanuel Vadot
manu at FreeBSD.org
Fri Jun 19 17:56:06 UTC 2020
Author: manu
Date: Fri Jun 19 17:56:05 2020
New Revision: 362395
URL: https://svnweb.freebsd.org/changeset/base/362395
Log:
MFC r359805:
gpioctl: Print interrupts capabilities
GPIO drivers who supports interrupts report them in the caps
(obtain via the getcaps method) but gpioctl doesn't know
how to interpret this and print "UNKNOWN" for each one of them.
Even if we don't have userland gpio interrupts support for now
let gpioctl print the supported caps.
Modified:
stable/12/usr.sbin/gpioctl/gpioctl.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/usr.sbin/gpioctl/gpioctl.c
==============================================================================
--- stable/12/usr.sbin/gpioctl/gpioctl.c Fri Jun 19 17:52:48 2020 (r362394)
+++ stable/12/usr.sbin/gpioctl/gpioctl.c Fri Jun 19 17:56:05 2020 (r362395)
@@ -62,6 +62,11 @@ static struct flag_desc gpio_flags[] = {
{ "II", GPIO_PIN_INVIN },
{ "IO", GPIO_PIN_INVOUT },
{ "PULSE", GPIO_PIN_PULSATE },
+ { "INTRLL", GPIO_INTR_LEVEL_LOW},
+ { "INTRLH", GPIO_INTR_LEVEL_HIGH},
+ { "INTRER", GPIO_INTR_EDGE_RISING},
+ { "INTREF", GPIO_INTR_EDGE_FALLING},
+ { "INTREB", GPIO_INTR_EDGE_BOTH},
{ NULL, 0 },
};
More information about the svn-src-all
mailing list