diff options
author | Mike Lockwood <lockwood@android.com> | 2010-07-06 19:27:52 -0400 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:09 -0700 |
commit | 1de4d4d8df6703c2af229c3a8a3c1ec4b14eabab (patch) | |
tree | a85eb1aeb6e2817ce6eb4d7dfd2a818b8a7dcc72 /include/linux/usb | |
parent | 7aea3853329a1af39519b5e22e06baba7fdfa1bd (diff) | |
download | kernel_samsung_crespo-1de4d4d8df6703c2af229c3a8a3c1ec4b14eabab.zip kernel_samsung_crespo-1de4d4d8df6703c2af229c3a8a3c1ec4b14eabab.tar.gz kernel_samsung_crespo-1de4d4d8df6703c2af229c3a8a3c1ec4b14eabab.tar.bz2 |
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/linux/usb')
-rw-r--r-- | include/linux/usb/f_mtp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/usb/f_mtp.h b/include/linux/usb/f_mtp.h index c1c9aef..426c6b5 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 */ |