aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gpio.h
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <loos@FreeBSD.org>2015-03-08 00:47:50 +0000
committerLuiz Otavio O Souza <loos@FreeBSD.org>2015-03-08 00:47:50 +0000
commitd752f0f69de80ecb93e4d64e8353218edbdbdccf (patch)
tree9ddab736a8f0c968e0fae8da4325fc5853cdb54d /sys/sys/gpio.h
parentbf5d6cf0a970449cac82786a0dbd6c7e31adb181 (diff)
downloadsrc-d752f0f69de80ecb93e4d64e8353218edbdbdccf.tar.gz
src-d752f0f69de80ecb93e4d64e8353218edbdbdccf.zip
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
Notes
Notes: svn path=/head/; revision=279761
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 b1f3ba8f8890..c8724cbe6e89 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__ */