summaryrefslogtreecommitdiffstats
path: root/lib/libgpio/libgpio.h
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2015-03-08 00:47:50 +0000
committerloos <loos@FreeBSD.org>2015-03-08 00:47:50 +0000
commit04b6b93c321f5a42487486a30ffb1183f7b034f7 (patch)
tree9ddab736a8f0c968e0fae8da4325fc5853cdb54d /lib/libgpio/libgpio.h
parent96f62b87a8330b4d580a8b2c483ca25bf80a3217 (diff)
downloadFreeBSD-src-04b6b93c321f5a42487486a30ffb1183f7b034f7.zip
FreeBSD-src-04b6b93c321f5a42487486a30ffb1183f7b034f7.tar.gz
Add a new ioctl to allow the setting of GPIO pin names.
When a gpiobus child is added, use its name to identify the mapped pin names. Make the respective changes to libgpio. Add a new '-n' flag to gpioctl(8) to set the pin name. Differential Revision: https://reviews.freebsd.org/D2002 Reviewed by: rpaulo Requested by: many
Diffstat (limited to 'lib/libgpio/libgpio.h')
-rw-r--r--lib/libgpio/libgpio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libgpio/libgpio.h b/lib/libgpio/libgpio.h
index b7486eb..a832234 100644
--- a/lib/libgpio/libgpio.h
+++ b/lib/libgpio/libgpio.h
@@ -71,6 +71,11 @@ int gpio_pin_list(gpio_handle_t, gpio_config_t **);
*/
int gpio_pin_config(gpio_handle_t, gpio_config_t *);
/*
+ * Sets the GPIO pin name. The pin number and pin name to be set are passed
+ * as parameters.
+ */
+int gpio_pin_set_name(gpio_handle_t, gpio_pin_t, char *);
+/*
* Sets the GPIO flags on a specific GPIO pin. The pin number and the flags
* to be set are passed through the gpio_config_t structure.
*/
OpenPOWER on IntegriCloud