usbdevice_fs.h 2.1 KB

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