FreeBSD/sys/boot/arm/at91/libat91/sd-card.c
//*----------------------------------------------------------------------------
//* \fn    MCI_SDCard_GetCID
//* \brief Asks to the SDCard on the chosen slot to send its CID
//*----------------------------------------------------------------------------
\fn    MCI_SDCard_GetCID
\brief Asks to the SDCard on the chosen slot to send its CID
\ fn MCI_SDCard_GetCID \ brief Asks to the SDCard on the chosen slot to send its CID
static int
MCI_SDCard_GetCID(unsigned int *response)
{
	if (MCI_SendCommand(ALL_SEND_CID_CMD, AT91C_NO_ARGUMENT))
		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_SDCard_GetCID ( unsigned int * response ) { if ( MCI_SendCommand ( ALL_SEND_CID_CMD , AT91C_NO_ARGUMENT ) ) 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_SDCard_GetCID
\brief Asks to the SDCard on the chosen slot to send its CID
\ fn MCI_SDCard_GetCID \ brief Asks to the SDCard on the chosen slot to send its CID