• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __LINUX_USB_TMC_H
20 #define __LINUX_USB_TMC_H
21 #define USBTMC_STATUS_SUCCESS 0x01
22 #define USBTMC_STATUS_PENDING 0x02
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define USBTMC_STATUS_FAILED 0x80
25 #define USBTMC_STATUS_TRANSFER_NOT_IN_PROGRESS 0x81
26 #define USBTMC_STATUS_SPLIT_NOT_IN_PROGRESS 0x82
27 #define USBTMC_STATUS_SPLIT_IN_PROGRESS 0x83
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define USBTMC_REQUEST_INITIATE_ABORT_BULK_OUT 1
30 #define USBTMC_REQUEST_CHECK_ABORT_BULK_OUT_STATUS 2
31 #define USBTMC_REQUEST_INITIATE_ABORT_BULK_IN 3
32 #define USBTMC_REQUEST_CHECK_ABORT_BULK_IN_STATUS 4
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define USBTMC_REQUEST_INITIATE_CLEAR 5
35 #define USBTMC_REQUEST_CHECK_CLEAR_STATUS 6
36 #define USBTMC_REQUEST_GET_CAPABILITIES 7
37 #define USBTMC_REQUEST_INDICATOR_PULSE 64
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define USBTMC488_REQUEST_READ_STATUS_BYTE 128
40 #define USBTMC488_REQUEST_REN_CONTROL 160
41 #define USBTMC488_REQUEST_GOTO_LOCAL 161
42 #define USBTMC488_REQUEST_LOCAL_LOCKOUT 162
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define USBTMC_IOC_NR 91
45 #define USBTMC_IOCTL_INDICATOR_PULSE _IO(USBTMC_IOC_NR, 1)
46 #define USBTMC_IOCTL_CLEAR _IO(USBTMC_IOC_NR, 2)
47 #define USBTMC_IOCTL_ABORT_BULK_OUT _IO(USBTMC_IOC_NR, 3)
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define USBTMC_IOCTL_ABORT_BULK_IN _IO(USBTMC_IOC_NR, 4)
50 #define USBTMC_IOCTL_CLEAR_OUT_HALT _IO(USBTMC_IOC_NR, 6)
51 #define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7)
52 #define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char)
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define USBTMC488_IOCTL_READ_STB _IOR(USBTMC_IOC_NR, 18, unsigned char)
55 #define USBTMC488_IOCTL_REN_CONTROL _IOW(USBTMC_IOC_NR, 19, unsigned char)
56 #define USBTMC488_IOCTL_GOTO_LOCAL _IO(USBTMC_IOC_NR, 20)
57 #define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21)
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define USBTMC488_CAPABILITY_TRIGGER 1
60 #define USBTMC488_CAPABILITY_SIMPLE 2
61 #define USBTMC488_CAPABILITY_REN_CONTROL 2
62 #define USBTMC488_CAPABILITY_GOTO_LOCAL 2
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define USBTMC488_CAPABILITY_LOCAL_LOCKOUT 2
65 #define USBTMC488_CAPABILITY_488_DOT_2 4
66 #define USBTMC488_CAPABILITY_DT1 16
67 #define USBTMC488_CAPABILITY_RL1 32
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define USBTMC488_CAPABILITY_SR1 64
70 #define USBTMC488_CAPABILITY_FULL_SCPI 128
71 #endif
72