SD communication protocol
wijnen at debian.org
Fri May 28 02:22:57 EDT 2010
On Thu, May 27, 2010 at 11:29:57PM -0500, Camilo Andres Diaz Botia wrote:
> I want to know how the ben's mmc driver reads the four data lines of the SD
> card. I believe they are read in the function jz4740_mmc_read_data, however
> I haven't managed to find where the function "*readl*" is defined (same as
> writel in function jz4740_mmc_read_data).
Those are deep inside the kernel. They are used to read from and write
(32 bit) to memory-mapped i/o addresses. There is also writew/readw for
16-bit and writeb/readb for 8 bit.
For these sort of questions, you can use the Linux cross-reference,
http://lxr.linux.no/linux/. Searching for writel gives some results;
the only one which isn't for non-mips is
Going from there to __raw_writel sends you to
which is the definition you were looking for.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: Digital signature
More information about the discussion