28 #ifdef SUPPORT_FILE_OP
30 #include <linux/types.h>
31 #include <linux/stat.h>
33 #include <linux/slab.h>
40 #define RTS5139_IOC_MAGIC 0x39
42 #define RTS5139_IOC_SD_DIRECT _IOWR(RTS5139_IOC_MAGIC, 0xA0, int)
43 #define RTS5139_IOC_SD_GET_RSP _IOWR(RTS5139_IOC_MAGIC, 0xA1, int)
53 dir = (cmnd->
cmnd[0] >> 3) & 0x03;
54 cmd12 = (cmnd->
cmnd[0] >> 2) & 0x01;
55 standby = (cmnd->
cmnd[0] >> 1) & 0x01;
56 acmd = cmnd->
cmnd[0] & 0x01;
57 cmd_idx = cmnd->
cmnd[1];
58 arg = ((
u32) (cmnd->
cmnd[2]) << 24) | ((
u32) (cmnd->
cmnd[3]) << 16) |
63 rsp_code = cmnd->
cmnd[9];
74 cmd_idx, standby, acmd,
87 cmd_idx, cmd12, standby, acmd,
88 rsp_code, arg, len, buf,
121 cmd_idx, cmd12, standby, acmd,
122 rsp_code, arg, len, buf,
163 sd_card->
rsp[0], sd_card->
rsp[1], sd_card->
rsp[2],
176 subminor = iminor(inode);
180 RTS51X_DEBUGP(
"%s - error, can't find device for minor %d\n",
186 chip = (
struct rts51x_chip *)usb_get_intfdata(interface);
259 retval = rts51x_sd_direct_cmnd(chip, &cmnd);
274 retval = rts51x_sd_get_rsp(chip, &rsp);