1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef __LINUX_USB_GADGETFS_H 7 #define __LINUX_USB_GADGETFS_H 8 #include <linux/types.h> 9 #include <linux/ioctl.h> 10 #include <linux/usb/ch9.h> 11 enum usb_gadgetfs_event_type { 12 GADGETFS_NOP = 0, 13 GADGETFS_CONNECT, 14 GADGETFS_DISCONNECT, 15 GADGETFS_SETUP, 16 GADGETFS_SUSPEND, 17 18 }; 19 struct usb_gadgetfs_event { 20 union { 21 22 23 enum usb_device_speed speed; 24 25 struct usb_ctrlrequest setup; 26 } u; 27 enum usb_gadgetfs_event_type type; 28 }; 29 #define GADGETFS_FIFO_STATUS _IO('g', 1) 30 #define GADGETFS_FIFO_FLUSH _IO('g', 2) 31 #define GADGETFS_CLEAR_HALT _IO('g', 3) 32 #endif 33