Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef __LINUX_USB_GADGETFS_H |
| 8 | #define __LINUX_USB_GADGETFS_H |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/ioctl.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #include <linux/usb/ch9.h> |
| 12 | enum usb_gadgetfs_event_type { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 13 | GADGETFS_NOP = 0, |
| 14 | GADGETFS_CONNECT, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | GADGETFS_DISCONNECT, |
| 16 | GADGETFS_SETUP, |
| 17 | GADGETFS_SUSPEND, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 18 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | struct usb_gadgetfs_event { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 20 | union { |
| 21 | enum usb_device_speed speed; |
| 22 | struct usb_ctrlrequest setup; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | } u; |
| 24 | enum usb_gadgetfs_event_type type; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | }; |
| 26 | #define GADGETFS_FIFO_STATUS _IO('g', 1) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define GADGETFS_FIFO_FLUSH _IO('g', 2) |
| 28 | #define GADGETFS_CLEAR_HALT _IO('g', 3) |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 29 | #endif |