diff options
Diffstat (limited to 'drivers/usb/gadget/f_mtp.h')
-rw-r--r-- | drivers/usb/gadget/f_mtp.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_mtp.h b/drivers/usb/gadget/f_mtp.h index 5892e3f..00a30b7 100644 --- a/drivers/usb/gadget/f_mtp.h +++ b/drivers/usb/gadget/f_mtp.h @@ -31,6 +31,7 @@ #define SEND_RESET_ACK 8 #define SET_ZLP_DATA 9 #define GET_HIGH_FULL_SPEED 10 +#define SEND_FILE_WITH_HEADER 11 #define SIG_SETUP 44 /*PIMA15740-2000 spec*/ @@ -53,4 +54,20 @@ struct usb_mtp_ctrlrequest { struct usb_ctrlrequest setup; }; + +struct usb_container_header { + uint32_t Length;/* the valid size, in BYTES, of the container */ + uint16_t Type;/* Container type */ + uint16_t Code;/* Operation code, response code, or Event code */ + uint32_t TransactionID;/* host generated number */ +}; + +struct read_send_info { + int Fd;/* Media File fd */ + uint64_t Length;/* the valid size, in BYTES, of the container */ + uint16_t Code;/* Operation code, response code, or Event code */ + uint32_t TransactionID;/* host generated number */ +}; + + #endif /* __F_MTP_H */ |