summaryrefslogtreecommitdiffstats
path: root/sys/sys/gpio.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 /sys/sys/gpio.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 'sys/sys/gpio.h')
-rw-r--r--sys/sys/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/gpio.h b/sys/sys/gpio.h
index b1f3ba8..c8724cb 100644
--- a/sys/sys/gpio.h
+++ b/sys/sys/gpio.h
@@ -93,5 +93,6 @@ struct gpio_req {
#define GPIOGET _IOWR('G', 3, struct gpio_req)
#define GPIOSET _IOW('G', 4, struct gpio_req)
#define GPIOTOGGLE _IOWR('G', 5, struct gpio_req)
+#define GPIOSETNAME _IOW('G', 6, struct gpio_pin)
#endif /* __GPIO_H__ */
OpenPOWER on IntegriCloud