summaryrefslogtreecommitdiff
path: root/include/uapi/linux/usb/f_mtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/usb/f_mtp.h')
-rw-r--r--include/uapi/linux/usb/f_mtp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/usb/f_mtp.h b/include/uapi/linux/usb/f_mtp.h
index 503291855abd..b48a74b3695c 100644
--- a/include/uapi/linux/usb/f_mtp.h
+++ b/include/uapi/linux/usb/f_mtp.h
@@ -4,6 +4,8 @@
* Copyright (C) 2010 Google, Inc.
* Author: Mike Lockwood <lockwood@android.com>
*
+ * Copyright (C) 2014, NVIDIA CORPORATION. All rights reserved.
+ *
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
@@ -45,6 +47,17 @@ struct mtp_event {
void *data;
};
+#ifdef CONFIG_COMPAT
+struct mtp_event_32 {
+ /* size of the event */
+ compat_size_t length;
+ /* event data to send */
+ compat_uptr_t data;
+};
+
+#define MTP_SEND_EVENT_32 _IOW('M', 3, struct mtp_event_32)
+#endif
+
/* Sends the specified file range to the host */
#define MTP_SEND_FILE _IOW('M', 0, struct mtp_file_range)
/* Receives data from the host and writes it to a file.