svn commit: r359805 - head/usr.sbin/gpioctl
Emmanuel Vadot
manu at FreeBSD.org
Sat Apr 11 15:25:41 UTC 2020
Author: manu
Date: Sat Apr 11 15:25:40 2020
New Revision: 359805
URL: https://svnweb.freebsd.org/changeset/base/359805
Log:
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.
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D24133
Modified:
head/usr.sbin/gpioctl/gpioctl.c
Modified: head/usr.sbin/gpioctl/gpioctl.c
==============================================================================
--- head/usr.sbin/gpioctl/gpioctl.c Sat Apr 11 09:38:45 2020 (r359804)
+++ head/usr.sbin/gpioctl/gpioctl.c Sat Apr 11 15:25:40 2020 (r359805)
@@ -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