Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*****************************************************************************/
0003 
0004 /*
0005  *  usbdevice_fs.h  --  USB device file system.
0006  *
0007  *  Copyright (C) 2000
0008  *          Thomas Sailer (sailer@ife.ee.ethz.ch)
0009  *
0010  *  This program is free software; you can redistribute it and/or modify
0011  *  it under the terms of the GNU General Public License as published by
0012  *  the Free Software Foundation; either version 2 of the License, or
0013  *  (at your option) any later version.
0014  *
0015  *  This program is distributed in the hope that it will be useful,
0016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0018  *  GNU General Public License for more details.
0019  *
0020  *  You should have received a copy of the GNU General Public License
0021  *  along with this program; if not, write to the Free Software
0022  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0023  *
0024  *  History:
0025  *   0.1  04.01.2000  Created
0026  */
0027 
0028 /*****************************************************************************/
0029 #ifndef _LINUX_USBDEVICE_FS_H
0030 #define _LINUX_USBDEVICE_FS_H
0031 
0032 #include <uapi/linux/usbdevice_fs.h>
0033 
0034 #ifdef CONFIG_COMPAT
0035 #include <linux/compat.h>
0036 
0037 struct usbdevfs_ctrltransfer32 {
0038         u8 bRequestType;
0039         u8 bRequest;
0040         u16 wValue;
0041         u16 wIndex;
0042         u16 wLength;
0043         u32 timeout;  /* in milliseconds */
0044         compat_caddr_t data;
0045 };
0046 
0047 struct usbdevfs_bulktransfer32 {
0048         compat_uint_t ep;
0049         compat_uint_t len;
0050         compat_uint_t timeout; /* in milliseconds */
0051         compat_caddr_t data;
0052 };
0053 
0054 struct usbdevfs_disconnectsignal32 {
0055         compat_int_t signr;
0056         compat_caddr_t context;
0057 };
0058 
0059 struct usbdevfs_urb32 {
0060     unsigned char type;
0061     unsigned char endpoint;
0062     compat_int_t status;
0063     compat_uint_t flags;
0064     compat_caddr_t buffer;
0065     compat_int_t buffer_length;
0066     compat_int_t actual_length;
0067     compat_int_t start_frame;
0068     compat_int_t number_of_packets;
0069     compat_int_t error_count;
0070     compat_uint_t signr;
0071     compat_caddr_t usercontext; /* unused */
0072     struct usbdevfs_iso_packet_desc iso_frame_desc[];
0073 };
0074 
0075 struct usbdevfs_ioctl32 {
0076     s32 ifno;
0077     s32 ioctl_code;
0078     compat_caddr_t data;
0079 };
0080 #endif
0081 #endif /* _LINUX_USBDEVICE_FS_H */