Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /*****************************************************************************/ |
| 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | */ |
| 26 | |
| 27 | /*****************************************************************************/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #ifndef _LINUX_USBDEVICE_FS_H |
| 29 | #define _LINUX_USBDEVICE_FS_H |
| 30 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 31 | #include <uapi/linux/usbdevice_fs.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #ifdef CONFIG_COMPAT |
Harald Welte | ce44159 | 2005-09-03 11:27:08 +0200 | [diff] [blame] | 34 | #include <linux/compat.h> |
Arnd Bergmann | 637e8a6 | 2009-11-14 02:28:05 +0100 | [diff] [blame] | 35 | |
| 36 | struct 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 | |
| 46 | struct 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 | |
| 53 | struct usbdevfs_disconnectsignal32 { |
| 54 | compat_int_t signr; |
| 55 | compat_caddr_t context; |
| 56 | }; |
| 57 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 58 | struct 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 Zaitcev | c36fc88 | 2005-10-17 18:15:54 -0700 | [diff] [blame] | 73 | |
| 74 | struct usbdevfs_ioctl32 { |
| 75 | s32 ifno; |
| 76 | s32 ioctl_code; |
| 77 | compat_caddr_t data; |
| 78 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | #endif /* _LINUX_USBDEVICE_FS_H */ |