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
This commit is contained in:
parent
62d95afacb
commit
19602a3869
@ -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 },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user