Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux/mmc
File: ioctl.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef LINUX_MMC_IOCTL_H
[1] Fix | Delete
#define LINUX_MMC_IOCTL_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/types.h>
[4] Fix | Delete
[5] Fix | Delete
struct mmc_ioc_cmd {
[6] Fix | Delete
/* Implies direction of data. true = write, false = read */
[7] Fix | Delete
int write_flag;
[8] Fix | Delete
[9] Fix | Delete
/* Application-specific command. true = precede with CMD55 */
[10] Fix | Delete
int is_acmd;
[11] Fix | Delete
[12] Fix | Delete
__u32 opcode;
[13] Fix | Delete
__u32 arg;
[14] Fix | Delete
__u32 response[4]; /* CMD response */
[15] Fix | Delete
unsigned int flags;
[16] Fix | Delete
unsigned int blksz;
[17] Fix | Delete
unsigned int blocks;
[18] Fix | Delete
[19] Fix | Delete
/*
[20] Fix | Delete
* Sleep at least postsleep_min_us useconds, and at most
[21] Fix | Delete
* postsleep_max_us useconds *after* issuing command. Needed for
[22] Fix | Delete
* some read commands for which cards have no other way of indicating
[23] Fix | Delete
* they're ready for the next command (i.e. there is no equivalent of
[24] Fix | Delete
* a "busy" indicator for read operations).
[25] Fix | Delete
*/
[26] Fix | Delete
unsigned int postsleep_min_us;
[27] Fix | Delete
unsigned int postsleep_max_us;
[28] Fix | Delete
[29] Fix | Delete
/*
[30] Fix | Delete
* Override driver-computed timeouts. Note the difference in units!
[31] Fix | Delete
*/
[32] Fix | Delete
unsigned int data_timeout_ns;
[33] Fix | Delete
unsigned int cmd_timeout_ms;
[34] Fix | Delete
[35] Fix | Delete
/*
[36] Fix | Delete
* For 64-bit machines, the next member, ``__u64 data_ptr``, wants to
[37] Fix | Delete
* be 8-byte aligned. Make sure this struct is the same size when
[38] Fix | Delete
* built for 32-bit.
[39] Fix | Delete
*/
[40] Fix | Delete
__u32 __pad;
[41] Fix | Delete
[42] Fix | Delete
/* DAT buffer */
[43] Fix | Delete
__u64 data_ptr;
[44] Fix | Delete
};
[45] Fix | Delete
#define mmc_ioc_cmd_set_data(ic, ptr) ic.data_ptr = (__u64)(unsigned long) ptr
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* struct mmc_ioc_multi_cmd - multi command information
[49] Fix | Delete
* @num_of_cmds: Number of commands to send. Must be equal to or less than
[50] Fix | Delete
* MMC_IOC_MAX_CMDS.
[51] Fix | Delete
* @cmds: Array of commands with length equal to 'num_of_cmds'
[52] Fix | Delete
*/
[53] Fix | Delete
struct mmc_ioc_multi_cmd {
[54] Fix | Delete
__u64 num_of_cmds;
[55] Fix | Delete
struct mmc_ioc_cmd cmds[0];
[56] Fix | Delete
};
[57] Fix | Delete
[58] Fix | Delete
#define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd)
[59] Fix | Delete
/*
[60] Fix | Delete
* MMC_IOC_MULTI_CMD: Used to send an array of MMC commands described by
[61] Fix | Delete
* the structure mmc_ioc_multi_cmd. The MMC driver will issue all
[62] Fix | Delete
* commands in array in sequence to card.
[63] Fix | Delete
*/
[64] Fix | Delete
#define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1, struct mmc_ioc_multi_cmd)
[65] Fix | Delete
/*
[66] Fix | Delete
* Since this ioctl is only meant to enhance (and not replace) normal access
[67] Fix | Delete
* to the mmc bus device, an upper data transfer limit of MMC_IOC_MAX_BYTES
[68] Fix | Delete
* is enforced per ioctl call. For larger data transfers, use the normal
[69] Fix | Delete
* block device operations.
[70] Fix | Delete
*/
[71] Fix | Delete
#define MMC_IOC_MAX_BYTES (512L * 1024)
[72] Fix | Delete
#define MMC_IOC_MAX_CMDS 255
[73] Fix | Delete
#endif /* LINUX_MMC_IOCTL_H */
[74] Fix | Delete
[75] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function