blob: a9e37c249cd15f530c525bf31be0bcd9dfdfa17b [file] [log] [blame]
Mike Lockwood42f160d2010-07-15 12:33:44 -04001/****************************************************************************
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
18struct mtp_file_range {
19
20 int fd;
21
22 loff_t offset;
23
Mike Lockwood88fb10f2010-11-16 17:33:50 -050024 int64_t length;
Mike Lockwood42f160d2010-07-15 12:33:44 -040025};
26
27struct 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