FreeBSD/sys/boot/arm/at91/libat91/sd-card.c
//*----------------------------------------------------------------------------
//* \fn    MCI_read
//* \brief Legacy read function, takes byte offset and length but was always
//*  used to read full blocks; interface preserved for existing boot code.
//*----------------------------------------------------------------------------
\fn    MCI_read
\brief Legacy read function, takes byte offset and length but was always
used to read full blocks; interface preserved for existing boot code.
\ fn MCI_read \ brief Legacy read function takes byte offset and length but was always used to read full blocks ; interface preserved for existing boot code .
int
MCI_read(char* dest, unsigned byteoffset, unsigned length)
{
	return MCI_readblocks(dest, 
	    byteoffset/SD_BLOCK_SIZE, length/SD_BLOCK_SIZE);
}
int MCI_read ( char * dest , unsigned byteoffset , unsigned length ) { return MCI_readblocks ( dest , byteoffset / SD_BLOCK_SIZE , length / SD_BLOCK_SIZE ) ; }
\fn    MCI_read
\brief Legacy read function, takes byte offset and length but was always
used to read full blocks; interface preserved for existing boot code.
\ fn MCI_read \ brief Legacy read function takes byte offset and length but was always used to read full blocks ; interface preserved for existing boot code .