aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/usb
diff options
context:
space:
mode:
authorDave Penkler <dpenkler@gmail.com>2016-01-27 13:25:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 16:54:06 -0500
commit379d3d33c83b667b0edad0110693567306463882 (patch)
tree9a42ed42b6c3ac7b94a285ccc933c680e08b620a /include/uapi/linux/usb
parent29779d89fd049bfc6c07f19aaf9b8d19fe2ecc8c (diff)
Add ioctls to enable and disable local controls on an instrument
These ioctls provide support for the USBTMC-USB488 control requests for REN_CONTROL, GO_TO_LOCAL and LOCAL_LOCKOUT Signed-off-by: Dave Penkler <dpenkler@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/usb')
-rw-r--r--include/uapi/linux/usb/tmc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/usb/tmc.h b/include/uapi/linux/usb/tmc.h
index b512fb2d403e..2e59d9c50b8d 100644
--- a/include/uapi/linux/usb/tmc.h
+++ b/include/uapi/linux/usb/tmc.h
@@ -33,6 +33,9 @@
33#define USBTMC_REQUEST_GET_CAPABILITIES 7 33#define USBTMC_REQUEST_GET_CAPABILITIES 7
34#define USBTMC_REQUEST_INDICATOR_PULSE 64 34#define USBTMC_REQUEST_INDICATOR_PULSE 64
35#define USBTMC488_REQUEST_READ_STATUS_BYTE 128 35#define USBTMC488_REQUEST_READ_STATUS_BYTE 128
36#define USBTMC488_REQUEST_REN_CONTROL 160
37#define USBTMC488_REQUEST_GOTO_LOCAL 161
38#define USBTMC488_REQUEST_LOCAL_LOCKOUT 162
36 39
37/* Request values for USBTMC driver's ioctl entry point */ 40/* Request values for USBTMC driver's ioctl entry point */
38#define USBTMC_IOC_NR 91 41#define USBTMC_IOC_NR 91
@@ -44,6 +47,9 @@
44#define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7) 47#define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7)
45#define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char) 48#define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char)
46#define USBTMC488_IOCTL_READ_STB _IOR(USBTMC_IOC_NR, 18, unsigned char) 49#define USBTMC488_IOCTL_READ_STB _IOR(USBTMC_IOC_NR, 18, unsigned char)
50#define USBTMC488_IOCTL_REN_CONTROL _IOW(USBTMC_IOC_NR, 19, unsigned char)
51#define USBTMC488_IOCTL_GOTO_LOCAL _IO(USBTMC_IOC_NR, 20)
52#define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21)
47 53
48/* Driver encoded usb488 capabilities */ 54/* Driver encoded usb488 capabilities */
49#define USBTMC488_CAPABILITY_TRIGGER 1 55#define USBTMC488_CAPABILITY_TRIGGER 1