• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __LINUX_USB_GADGETFS_H
8 #define __LINUX_USB_GADGETFS_H
9 #include <linux/types.h>
10 #include <linux/ioctl.h>
11 #include <linux/usb/ch9.h>
12 enum usb_gadgetfs_event_type {
13   GADGETFS_NOP = 0,
14   GADGETFS_CONNECT,
15   GADGETFS_DISCONNECT,
16   GADGETFS_SETUP,
17   GADGETFS_SUSPEND,
18 };
19 struct usb_gadgetfs_event {
20   union {
21     enum usb_device_speed speed;
22     struct usb_ctrlrequest setup;
23   } u;
24   enum usb_gadgetfs_event_type type;
25 };
26 #define GADGETFS_FIFO_STATUS _IO('g', 1)
27 #define GADGETFS_FIFO_FLUSH _IO('g', 2)
28 #define GADGETFS_CLEAR_HALT _IO('g', 3)
29 #endif
30