1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI__LINUX_FUNCTIONFS_H__ 20 #define _UAPI__LINUX_FUNCTIONFS_H__ 21 #include <linux/types.h> 22 #include <linux/ioctl.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #include <linux/usb/ch9.h> 25 enum { 26 FUNCTIONFS_DESCRIPTORS_MAGIC = 1, 27 FUNCTIONFS_STRINGS_MAGIC = 2 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 }; 30 struct usb_endpoint_descriptor_no_audio { 31 __u8 bLength; 32 __u8 bDescriptorType; 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u8 bEndpointAddress; 35 __u8 bmAttributes; 36 __le16 wMaxPacketSize; 37 __u8 bInterval; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 } __attribute__((packed)); 40 struct usb_functionfs_descs_head { 41 __le32 magic; 42 __le32 length; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __le32 fs_count; 45 __le32 hs_count; 46 } __attribute__((packed)); 47 struct usb_functionfs_strings_head { 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __le32 magic; 50 __le32 length; 51 __le32 str_count; 52 __le32 lang_count; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 } __attribute__((packed)); 55 enum usb_functionfs_event_type { 56 FUNCTIONFS_BIND, 57 FUNCTIONFS_UNBIND, 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 FUNCTIONFS_ENABLE, 60 FUNCTIONFS_DISABLE, 61 FUNCTIONFS_SETUP, 62 FUNCTIONFS_SUSPEND, 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 FUNCTIONFS_RESUME 65 }; 66 struct usb_functionfs_event { 67 union { 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 struct usb_ctrlrequest setup; 70 } __attribute__((packed)) u; 71 __u8 type; 72 __u8 _pad[3]; 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 } __attribute__((packed)); 75 #define FUNCTIONFS_FIFO_STATUS _IO('g', 1) 76 #define FUNCTIONFS_FIFO_FLUSH _IO('g', 2) 77 #define FUNCTIONFS_CLEAR_HALT _IO('g', 3) 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define FUNCTIONFS_INTERFACE_REVMAP _IO('g', 128) 80 #define FUNCTIONFS_ENDPOINT_REVMAP _IO('g', 129) 81 #endif 82