| Mike Lockwood | 42f160d | 2010-07-15 12:33:44 -0400 | [diff] [blame] | 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 |  **************************************************************************** | 
 | 11 |  ****************************************************************************/ | 
 | 12 | #ifndef __LINUX_USB_F_MTP_H | 
 | 13 | #define __LINUX_USB_F_MTP_H | 
 | 14 |  | 
 | 15 | #define MTP_INTERFACE_MODE_MTP 0 | 
 | 16 | #define MTP_INTERFACE_MODE_PTP 1 | 
 | 17 |  | 
 | 18 | struct mtp_file_range { | 
 | 19 |  | 
 | 20 |  int fd; | 
 | 21 |  | 
 | 22 |  loff_t offset; | 
 | 23 |  | 
| Mike Lockwood | 88fb10f | 2010-11-16 17:33:50 -0500 | [diff] [blame] | 24 |  int64_t length; | 
| Mike Lockwood | 42f160d | 2010-07-15 12:33:44 -0400 | [diff] [blame] | 25 | }; | 
 | 26 |  | 
 | 27 | struct mtp_event { | 
 | 28 |  | 
 | 29 |  size_t length; | 
 | 30 |  | 
 | 31 |  void *data; | 
 | 32 | }; | 
 | 33 |  | 
 | 34 | #define MTP_SEND_FILE _IOW('M', 0, struct mtp_file_range) | 
 | 35 |  | 
 | 36 | #define MTP_RECEIVE_FILE _IOW('M', 1, struct mtp_file_range) | 
 | 37 |  | 
 | 38 | #define MTP_SET_INTERFACE_MODE _IOW('M', 2, int) | 
 | 39 |  | 
 | 40 | #define MTP_SEND_EVENT _IOW('M', 3, struct mtp_event) | 
 | 41 |  | 
 | 42 | #endif |