blob: 04a26285416cf339dbbef58e5565b676bcf7c65a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*****************************************************************************/
2
3/*
4 * usbdevice_fs.h -- USB device file system.
5 *
6 * Copyright (C) 2000
7 * Thomas Sailer (sailer@ife.ee.ethz.ch)
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
Linus Torvalds1da177e2005-04-16 15:20:36 -070025 */
26
27/*****************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#ifndef _LINUX_USBDEVICE_FS_H
29#define _LINUX_USBDEVICE_FS_H
30
David Howells607ca462012-10-13 10:46:48 +010031#include <uapi/linux/usbdevice_fs.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#ifdef CONFIG_COMPAT
Harald Weltece441592005-09-03 11:27:08 +020034#include <linux/compat.h>
Arnd Bergmann637e8a62009-11-14 02:28:05 +010035
36struct usbdevfs_ctrltransfer32 {
37 u8 bRequestType;
38 u8 bRequest;
39 u16 wValue;
40 u16 wIndex;
41 u16 wLength;
42 u32 timeout; /* in milliseconds */
43 compat_caddr_t data;
44};
45
46struct usbdevfs_bulktransfer32 {
47 compat_uint_t ep;
48 compat_uint_t len;
49 compat_uint_t timeout; /* in milliseconds */
50 compat_caddr_t data;
51};
52
53struct usbdevfs_disconnectsignal32 {
54 compat_int_t signr;
55 compat_caddr_t context;
56};
57
Linus Torvalds1da177e2005-04-16 15:20:36 -070058struct usbdevfs_urb32 {
59 unsigned char type;
60 unsigned char endpoint;
61 compat_int_t status;
62 compat_uint_t flags;
63 compat_caddr_t buffer;
64 compat_int_t buffer_length;
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};
Pete Zaitcevc36fc882005-10-17 18:15:54 -070073
74struct usbdevfs_ioctl32 {
75 s32 ifno;
76 s32 ioctl_code;
77 compat_caddr_t data;
78};
Linus Torvalds1da177e2005-04-16 15:20:36 -070079#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070080#endif /* _LINUX_USBDEVICE_FS_H */