diff options
Diffstat (limited to 'media/mtp/f_mtp.h')
-rw-r--r-- | media/mtp/f_mtp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/media/mtp/f_mtp.h b/media/mtp/f_mtp.h index c1c9aef..426c6b5 100644 --- a/media/mtp/f_mtp.h +++ b/media/mtp/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 */ |