summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-07-06 19:27:52 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:38:08 -0800
commitc8dd1f016042964dd98835318be1b690ebbbac2b (patch)
tree97ab13963f305e7de909e4d94a90d2b99280868a /include
parent6ded0836700c26575d397226c35a717ed8c8c235 (diff)
USB: gadget: f_mtp: Add ioctl for sending events via the interrupt endpoint
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/f_mtp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/usb/f_mtp.h b/include/linux/usb/f_mtp.h
index c1c9aeff25fd..426c6b5cc06a 100644
--- a/include/linux/usb/f_mtp.h
+++ b/include/linux/usb/f_mtp.h
@@ -32,6 +32,13 @@ struct mtp_file_range {
size_t length;
};
+struct mtp_event {
+ /* size of the event */
+ size_t length;
+ /* event data to send */
+ void *data;
+};
+
/* 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.
@@ -40,5 +47,7 @@ struct mtp_file_range {
#define MTP_RECEIVE_FILE _IOW('M', 1, struct mtp_file_range)
/* Sets the driver mode to either MTP or PTP */
#define MTP_SET_INTERFACE_MODE _IOW('M', 2, int)
+/* Sends an event to the host via the interrupt endpoint */
+#define MTP_SEND_EVENT _IOW('M', 3, struct mtp_event)
#endif /* __LINUX_USB_F_MTP_H */