aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_ioctl.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2011-11-12 08:40:52 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2011-11-12 08:40:52 +0000
commit17c78d345c9c227479712f4e291473301e024689 (patch)
tree147cb461c64862e6cad250f2d50040d0d9d14f77 /sys/dev/usb/usb_ioctl.h
parent2648cd35d80c23ccf80a56664053bd09bc806b45 (diff)
downloadsrc-17c78d345c9c227479712f4e291473301e024689.tar.gz
src-17c78d345c9c227479712f4e291473301e024689.zip
- This patch adds custom IOCTLs to read and write the 4 GPIO pins on the
cp2103 usb-to-serial chip. - This patch also makes the line status polling asynchronous, to reduce the time needed to change the GPIO pins. Submitted by: JD Louw MFC after: 1 week
Notes
Notes: svn path=/head/; revision=227463
Diffstat (limited to 'sys/dev/usb/usb_ioctl.h')
-rw-r--r--sys/dev/usb/usb_ioctl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_ioctl.h b/sys/dev/usb/usb_ioctl.h
index d35fa1038e5a..9af6ee5c7af7 100644
--- a/sys/dev/usb/usb_ioctl.h
+++ b/sys/dev/usb/usb_ioctl.h
@@ -289,6 +289,10 @@ struct usb_gen_quirk {
#define USB_GET_CM_OVER_DATA _IOR ('U', 180, int)
#define USB_SET_CM_OVER_DATA _IOW ('U', 181, int)
+/* GPIO control */
+#define USB_GET_GPIO _IOR ('U', 182, int)
+#define USB_SET_GPIO _IOW ('U', 183, int)
+
/* USB file system interface */
#define USB_FS_START _IOW ('U', 192, struct usb_fs_start)
#define USB_FS_STOP _IOW ('U', 193, struct usb_fs_stop)