18cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/****************************************************************************
28cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************
38cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
48cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   This header was automatically generated from a Linux kernel header
58cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   of the same name, to make information necessary for userspace to
68cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   call into the kernel available to libc.  It contains only constants,
78cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   structures, and macros generated from the original header, and thus,
88cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   contains no copyrightable information.
98cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
108cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   To edit the content of this header, modify the corresponding
118cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   source file (e.g. under external/kernel-headers/original/) then
128cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   run bionic/libc/kernel/tools/update_all.py
138cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
148cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   Any manual change here will be lost the next time this script will
158cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***   be run. You've been warned!
168cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ***
178cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************
188cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes ****************************************************************************/
198cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#ifndef _UAPI_LINUX_USB_F_MTP_H
208cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define _UAPI_LINUX_USB_F_MTP_H
218cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#include <linux/ioctl.h>
228cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#include <linux/types.h>
238cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
248cb52b056cfc302e05304d847c4228dff15715cfElliott Hughesstruct mtp_file_range {
25d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int fd;
26d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  loff_t offset;
27d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  int64_t length;
288cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  uint16_t command;
30d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  uint32_t transaction_id;
318cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes};
328cb52b056cfc302e05304d847c4228dff15715cfElliott Hughesstruct mtp_event {
338cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  size_t length;
35d7db594b8d1dab36b711bd887a9dd21675c87243Tao Bao  void * data;
368cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes};
378cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define MTP_SEND_FILE _IOW('M', 0, struct mtp_file_range)
388cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
398cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define MTP_RECEIVE_FILE _IOW('M', 1, struct mtp_file_range)
408cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define MTP_SEND_EVENT _IOW('M', 3, struct mtp_event)
418cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#define MTP_SEND_FILE_WITH_HEADER _IOW('M', 4, struct mtp_file_range)
428cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes#endif
438cb52b056cfc302e05304d847c4228dff15715cfElliott Hughes/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44