Go to the documentation of this file.
29 #ifndef _UAPI_LINUX_USBDEVICE_FS_H
30 #define _UAPI_LINUX_USBDEVICE_FS_H
32 #include <linux/types.h>
33 #include <linux/magic.h>
66 #define USBDEVFS_MAXDRIVERNAME 255
78 #define USBDEVFS_URB_SHORT_NOT_OK 0x01
79 #define USBDEVFS_URB_ISO_ASAP 0x02
80 #define USBDEVFS_URB_BULK_CONTINUATION 0x04
81 #define USBDEVFS_URB_NO_FSBR 0x20
82 #define USBDEVFS_URB_ZERO_PACKET 0x40
83 #define USBDEVFS_URB_NO_INTERRUPT 0x80
85 #define USBDEVFS_URB_TYPE_ISO 0
86 #define USBDEVFS_URB_TYPE_INTERRUPT 1
87 #define USBDEVFS_URB_TYPE_CONTROL 2
88 #define USBDEVFS_URB_TYPE_BULK 3
129 #define USBDEVFS_CAP_ZERO_PACKET 0x01
130 #define USBDEVFS_CAP_BULK_CONTINUATION 0x02
131 #define USBDEVFS_CAP_NO_PACKET_SIZE_LIM 0x04
132 #define USBDEVFS_CAP_BULK_SCATTER_GATHER 0x08
137 #define USBDEVFS_DISCONNECT_CLAIM_IF_DRIVER 0x01
139 #define USBDEVFS_DISCONNECT_CLAIM_EXCEPT_DRIVER 0x02
148 #define USBDEVFS_CONTROL _IOWR('U', 0, struct usbdevfs_ctrltransfer)
149 #define USBDEVFS_CONTROL32 _IOWR('U', 0, struct usbdevfs_ctrltransfer32)
150 #define USBDEVFS_BULK _IOWR('U', 2, struct usbdevfs_bulktransfer)
151 #define USBDEVFS_BULK32 _IOWR('U', 2, struct usbdevfs_bulktransfer32)
152 #define USBDEVFS_RESETEP _IOR('U', 3, unsigned int)
153 #define USBDEVFS_SETINTERFACE _IOR('U', 4, struct usbdevfs_setinterface)
154 #define USBDEVFS_SETCONFIGURATION _IOR('U', 5, unsigned int)
155 #define USBDEVFS_GETDRIVER _IOW('U', 8, struct usbdevfs_getdriver)
156 #define USBDEVFS_SUBMITURB _IOR('U', 10, struct usbdevfs_urb)
157 #define USBDEVFS_SUBMITURB32 _IOR('U', 10, struct usbdevfs_urb32)
158 #define USBDEVFS_DISCARDURB _IO('U', 11)
159 #define USBDEVFS_REAPURB _IOW('U', 12, void *)
160 #define USBDEVFS_REAPURB32 _IOW('U', 12, __u32)
161 #define USBDEVFS_REAPURBNDELAY _IOW('U', 13, void *)
162 #define USBDEVFS_REAPURBNDELAY32 _IOW('U', 13, __u32)
163 #define USBDEVFS_DISCSIGNAL _IOR('U', 14, struct usbdevfs_disconnectsignal)
164 #define USBDEVFS_DISCSIGNAL32 _IOR('U', 14, struct usbdevfs_disconnectsignal32)
165 #define USBDEVFS_CLAIMINTERFACE _IOR('U', 15, unsigned int)
166 #define USBDEVFS_RELEASEINTERFACE _IOR('U', 16, unsigned int)
167 #define USBDEVFS_CONNECTINFO _IOW('U', 17, struct usbdevfs_connectinfo)
168 #define USBDEVFS_IOCTL _IOWR('U', 18, struct usbdevfs_ioctl)
169 #define USBDEVFS_IOCTL32 _IOWR('U', 18, struct usbdevfs_ioctl32)
170 #define USBDEVFS_HUB_PORTINFO _IOR('U', 19, struct usbdevfs_hub_portinfo)
171 #define USBDEVFS_RESET _IO('U', 20)
172 #define USBDEVFS_CLEAR_HALT _IOR('U', 21, unsigned int)
173 #define USBDEVFS_DISCONNECT _IO('U', 22)
174 #define USBDEVFS_CONNECT _IO('U', 23)
175 #define USBDEVFS_CLAIM_PORT _IOR('U', 24, unsigned int)
176 #define USBDEVFS_RELEASE_PORT _IOR('U', 25, unsigned int)
177 #define USBDEVFS_GET_CAPABILITIES _IOR('U', 26, __u32)
178 #define USBDEVFS_DISCONNECT_CLAIM _IOR('U', 27, struct usbdevfs_disconnect_claim)