lib/sw_services/xilloader/src/xloader_sd.c
static u8 XLoader_GetDrvNumSD(u8 DeviceFlags)
{
	u8 DrvNum;
	/*
	 * If design has both SD0 and SD1, select drive number based on bootmode
	 * If design has ONLY SD0 or ONLY SD1, drive number should be "0"
	 */
#ifdef XPAR_XSDPS_1_DEVICE_ID
	if ((DeviceFlags == XLOADER_PDI_SRC_SD0) ||
		(DeviceFlags == XLOADER_PDI_SRC_EMMC0)) {
		DrvNum = XLOADER_SD_DRV_NUM_0;
	}
	else {
		/*
		 * For XLOADER_SD1_BOOT_MODE or XLOADER_SD1_LS_BOOT_MODE
		 * or XLOADER_EMMC_BOOT_MODE
		 */
		DrvNum = XLOADER_SD_DRV_NUM_5;
	}
#else
	(void)DeviceFlags;
	DrvNum = XLOADER_SD_DRV_NUM_0;
#endif

	return DrvNum;
}
/*****************************************************************************/
/**
 * @brief	This function is used to obtain drive number based on design
 * and boot mode.
 *
 * @param       DeviceFlags contain boot mode information
 *
 * @return      Drive number
 *
 *****************************************************************************/
@brief       This function is used to obtain drive number based on design
and boot mode.

@param       DeviceFlags contain boot mode information

@return      Drive number
@brief This function is used to obtain drive number based on design and boot mode . @param DeviceFlags contain boot mode information @return Drive number
static u8 XLoader_GetDrvNumSD(u8 DeviceFlags)
{
	u8 DrvNum;
#ifdef XPAR_XSDPS_1_DEVICE_ID
	if ((DeviceFlags == XLOADER_PDI_SRC_SD0) ||
		(DeviceFlags == XLOADER_PDI_SRC_EMMC0)) {
		DrvNum = XLOADER_SD_DRV_NUM_0;
	}
	else {
		DrvNum = XLOADER_SD_DRV_NUM_5;
	}
#else
	(void)DeviceFlags;
	DrvNum = XLOADER_SD_DRV_NUM_0;
#endif
	return DrvNum;
}
static u8 XLoader_GetDrvNumSD ( u8 DeviceFlags ) { u8 DrvNum ; #ifdef XPAR_XSDPS_1_DEVICE_ID if ( ( DeviceFlags == XLOADER_PDI_SRC_SD0 ) || ( DeviceFlags == XLOADER_PDI_SRC_EMMC0 ) ) { DrvNum = XLOADER_SD_DRV_NUM_0 ; } else { DrvNum = XLOADER_SD_DRV_NUM_5 ; } #else ( void ) DeviceFlags ; DrvNum = XLOADER_SD_DRV_NUM_0 ; #endif return DrvNum ; }
@brief       This function is used to obtain drive number based on design
 and boot mode.
@brief This function is used to obtain drive number based on design and boot mode .
/*
	 * If design has both SD0 and SD1, select drive number based on bootmode
	 * If design has ONLY SD0 or ONLY SD1, drive number should be "0"
	 */ /*
		 * For XLOADER_SD1_BOOT_MODE or XLOADER_SD1_LS_BOOT_MODE
		 * or XLOADER_EMMC_BOOT_MODE
		 */