aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/mmc/ioctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/mmc/ioctl.h')
-rw-r--r--include/uapi/linux/mmc/ioctl.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/uapi/linux/mmc/ioctl.h b/include/uapi/linux/mmc/ioctl.h
index 1f5e68923929..7e385b83b9d8 100644
--- a/include/uapi/linux/mmc/ioctl.h
+++ b/include/uapi/linux/mmc/ioctl.h
@@ -45,8 +45,24 @@ struct mmc_ioc_cmd {
45}; 45};
46#define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr 46#define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr
47 47
48#define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd) 48/**
49 * struct mmc_ioc_multi_cmd - multi command information
50 * @num_of_cmds: Number of commands to send. Must be equal to or less than
51 * MMC_IOC_MAX_CMDS.
52 * @cmds: Array of commands with length equal to 'num_of_cmds'
53 */
54struct mmc_ioc_multi_cmd {
55 __u64 num_of_cmds;
56 struct mmc_ioc_cmd cmds[0];
57};
49 58
59#define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd)
60/*
61 * MMC_IOC_MULTI_CMD: Used to send an array of MMC commands described by
62 * the structure mmc_ioc_multi_cmd. The MMC driver will issue all
63 * commands in array in sequence to card.
64 */
65#define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1, struct mmc_ioc_multi_cmd)
50/* 66/*
51 * Since this ioctl is only meant to enhance (and not replace) normal access 67 * Since this ioctl is only meant to enhance (and not replace) normal access
52 * to the mmc bus device, an upper data transfer limit of MMC_IOC_MAX_BYTES 68 * to the mmc bus device, an upper data transfer limit of MMC_IOC_MAX_BYTES
@@ -54,4 +70,5 @@ struct mmc_ioc_cmd {
54 * block device operations. 70 * block device operations.
55 */ 71 */
56#define MMC_IOC_MAX_BYTES (512L * 256) 72#define MMC_IOC_MAX_BYTES (512L * 256)
73#define MMC_IOC_MAX_CMDS 255
57#endif /* LINUX_MMC_IOCTL_H */ 74#endif /* LINUX_MMC_IOCTL_H */