33 for (i = 100;
i; i--) {
82 cmd.
arg = write ? 0x80000000 : 0x00000000;
84 cmd.
arg |= (write &&
out) ? 0x08000000 : 0x00000000;
106 *out = (cmd.
resp[0] >> 8) & 0xFF;
108 *out = cmd.
resp[0] & 0xFF;
115 unsigned addr,
u8 in,
u8 *out)
118 return mmc_io_rw_direct_host(card->
host, write, fn, addr, in, out);
122 unsigned addr,
int incr_addr,
u8 *
buf,
unsigned blocks,
unsigned blksz)
141 cmd.
arg = write ? 0x80000000 : 0x00000000;
143 cmd.
arg |= incr_addr ? 0x04000000 : 0x00000000;
144 cmd.
arg |= addr << 9;
146 cmd.
arg |= (blksz == 512) ? 0 : blksz;
148 cmd.
arg |= 0x08000000 | blocks;
153 data.
blocks = blocks ? blocks : 1;