Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2020 15:25:41 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359805 - head/usr.sbin/gpioctl
Message-ID:  <202004111525.03BFPfXK055454@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 },
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004111525.03BFPfXK055454>