FreeBSD/sys/boot/arm/at91/libat91/sd-card.c
//*----------------------------------------------------------------------------
//* \fn    MCI_GetCSD
//* \brief Asks to the specified card to send its CSD
//*----------------------------------------------------------------------------
\fn    MCI_GetCSD
\brief Asks to the specified card to send its CSD
\ fn MCI_GetCSD \ brief Asks to the specified card to send its CSD
static int
MCI_GetCSD(unsigned int rca, unsigned int *response)
{
	if (MCI_SendCommand(SEND_CSD_CMD, (rca << 16)))
		return 1;
	response[0] = AT91C_BASE_MCI->MCI_RSPR[0];
	response[1] = AT91C_BASE_MCI->MCI_RSPR[1];
	response[2] = AT91C_BASE_MCI->MCI_RSPR[2];
	response[3] = AT91C_BASE_MCI->MCI_RSPR[3];
	return 0;
}
static int MCI_GetCSD ( unsigned int rca , unsigned int * response ) { if ( MCI_SendCommand ( SEND_CSD_CMD , ( rca << 16 ) ) ) return 1 ; response [ 0 ] = AT91C_BASE_MCI -> MCI_RSPR [ 0 ] ; response [ 1 ] = AT91C_BASE_MCI -> MCI_RSPR [ 1 ] ; response [ 2 ] = AT91C_BASE_MCI -> MCI_RSPR [ 2 ] ; response [ 3 ] = AT91C_BASE_MCI -> MCI_RSPR [ 3 ] ; return 0 ; }
\fn    MCI_GetCSD
\brief Asks to the specified card to send its CSD
\ fn MCI_GetCSD \ brief Asks to the specified card to send its CSD