usbdevice_fs.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // SPDX-License-Identifier: GPL-2.0+
  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
  25. */
  26. /*****************************************************************************/
  27. #ifndef _LINUX_USBDEVICE_FS_H
  28. #define _LINUX_USBDEVICE_FS_H
  29. #include <uapi/linux/usbdevice_fs.h>
  30. #ifdef CONFIG_COMPAT
  31. #include <linux/compat.h>
  32. struct usbdevfs_ctrltransfer32 {
  33. u8 bRequestType;
  34. u8 bRequest;
  35. u16 wValue;
  36. u16 wIndex;
  37. u16 wLength;
  38. u32 timeout; /* in milliseconds */
  39. compat_caddr_t data;
  40. };
  41. struct usbdevfs_bulktransfer32 {
  42. compat_uint_t ep;
  43. compat_uint_t len;
  44. compat_uint_t timeout; /* in milliseconds */
  45. compat_caddr_t data;
  46. };
  47. struct usbdevfs_disconnectsignal32 {
  48. compat_int_t signr;
  49. compat_caddr_t context;
  50. };
  51. struct usbdevfs_urb32 {
  52. unsigned char type;
  53. unsigned char endpoint;
  54. compat_int_t status;
  55. compat_uint_t flags;
  56. compat_caddr_t buffer;
  57. compat_int_t buffer_length;
  58. compat_int_t actual_length;
  59. compat_int_t start_frame;
  60. compat_int_t number_of_packets;
  61. compat_int_t error_count;
  62. compat_uint_t signr;
  63. compat_caddr_t usercontext; /* unused */
  64. struct usbdevfs_iso_packet_desc iso_frame_desc[];
  65. };
  66. struct usbdevfs_ioctl32 {
  67. s32 ifno;
  68. s32 ioctl_code;
  69. compat_caddr_t data;
  70. };
  71. #endif
  72. #endif /* _LINUX_USBDEVICE_FS_H */