• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef LINUX_MMC_IOCTL_H
8 #define LINUX_MMC_IOCTL_H
9 #include <linux/types.h>
10 #include <linux/major.h>
11 struct mmc_ioc_cmd {
12   int write_flag;
13   int is_acmd;
14   __u32 opcode;
15   __u32 arg;
16   __u32 response[4];
17   unsigned int flags;
18   unsigned int blksz;
19   unsigned int blocks;
20   unsigned int postsleep_min_us;
21   unsigned int postsleep_max_us;
22   unsigned int data_timeout_ns;
23   unsigned int cmd_timeout_ms;
24   __u32 __pad;
25   __u64 data_ptr;
26 };
27 #define mmc_ioc_cmd_set_data(ic,ptr) ic.data_ptr = (__u64) (unsigned long) ptr
28 struct mmc_ioc_multi_cmd {
29   __u64 num_of_cmds;
30   struct mmc_ioc_cmd cmds[];
31 };
32 #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd)
33 #define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1, struct mmc_ioc_multi_cmd)
34 #define MMC_IOC_MAX_BYTES (512L * 1024)
35 #define MMC_IOC_MAX_CMDS 255
36 #endif
37