Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
usbdevice_fs.h
Go to the documentation of this file.
1 /*****************************************************************************/
2 
3 /*
4  * usbdevice_fs.h -- USB device file system.
5  *
6  * Copyright (C) 2000
7  * Thomas Sailer ([email protected])
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  *
23  * History:
24  * 0.1 04.01.2000 Created
25  */
26 
27 /*****************************************************************************/
28 #ifndef _LINUX_USBDEVICE_FS_H
29 #define _LINUX_USBDEVICE_FS_H
30 
32 
33 #ifdef CONFIG_COMPAT
34 #include <linux/compat.h>
35 
36 struct usbdevfs_ctrltransfer32 {
38  u8 bRequest;
39  u16 wValue;
40  u16 wIndex;
41  u16 wLength;
42  u32 timeout; /* in milliseconds */
44 };
45 
46 struct usbdevfs_bulktransfer32 {
47  compat_uint_t ep;
49  compat_uint_t timeout; /* in milliseconds */
51 };
52 
53 struct usbdevfs_disconnectsignal32 {
54  compat_int_t signr;
56 };
57 
58 struct usbdevfs_urb32 {
59  unsigned char type;
60  unsigned char endpoint;
65  compat_int_t actual_length;
66  compat_int_t start_frame;
67  compat_int_t number_of_packets;
68  compat_int_t error_count;
69  compat_uint_t signr;
70  compat_caddr_t usercontext; /* unused */
71  struct usbdevfs_iso_packet_desc iso_frame_desc[0];
72 };
73 
74 struct usbdevfs_ioctl32 {
75  s32 ifno;
76  s32 ioctl_code;
78 };
79 #endif
80 #endif /* _LINUX_USBDEVICE_FS_H */